I have imported the sample app given by google in sdk.
I have around 60 images in my project, for testing purpose i have made a zip folder and renamed it as main.2.com.abc.ss.obb. so that i can use this .obb file for testing? Is this the right way to do it?
Now i have not uploaded the sample app given in the sdk in my console to test, before that i want to test it on device, is there any way i can test it?
When i just run the app it says "Downloading failed resource not found"
You can move the extension file manually to the device for example with adb push.
It has to go to the SD card in directory: Android/obb/your.package.name/. Assuming your package name is com.abc.ss a command similar to
adb push main.2.com.abc.ss.obb /sdcard/Android/obb/com.abc.ss/main.2.com.abc.ss.obb
will do the trick. The path to the sdcard may vary depending on device and android version.
Related
I'm building a game for mobile devices with corona sdk, it already run on iOS devices and now I want to install it on android device.
I'm trying to install my app on android device and because my app is large than 50mb, the corona split it into apk and obb files.
apk = 12mb,
obb = 130mb
I copied the both of files into my device and put the obb file under "sdcard/Android/obb/myPackagefolder" folder (according to some guides),
then I launch and install the apk.
now - when i'm trying to open my application it open the download page to try download the data (obb file) from google play and doesn't recognize the file I already put into the obb's folder.
I tried to run it on another devices and I get the same issue.
my build.settings contains the permission "WRITE_EXTERNAL_STORAGE"
my Q: is it even possible to do that ? and what I miss that cause my problem?
please help me, I spend a lot of time on it..
thanks
I address the file like this directly under the SD card and it wirks fine:
local fileName = "/sdcard/coordinates1.txt"
local doc_path = system.pathForFile( fileName )
local contents = doc_path:read( "*a" )
start with something like this and then use other folders.
I am trying to build my project in oculus gear vr using unity5 , but when I deploy my app I get the below error
thread priority security exception make sure the apk is signed
I have even created keystore
any suggestion why I might be facing this error in gear vr
I figure out the answer , to run apps in gear vr , you must have signature file for used device by get device id & use site below
https://developer.oculus.com/osig/
after you get the file , you should put inside your project in this directory
YourProjectName --- > assets --> Plugins ---> android ---> assets
(notice if you don't find this directory make sure your build platform
android , from build setting -- > switch platform)
then what you if you get this error
why this error happen ??
when I work in project I copy signature file with its meta file
so to fix error , just copy signature file without its meta file
UPDATED ANSWER
How you can get device id?
There many ways to approach that but best way to write in terminal
adb devices
You should see a list of attached devices like this:
List of devices attached
ce0551e7 device
or if you are lazy like me use this app its working very well it called
SideloadVR DeviceID
I solved this problem by following the steps as below,
Get the device ID using the adb.
For that, take the command prompt and type adb devices.
Ensure that adb path is added in the environment variables.
Also, you can use SideloadVR app to get the device ID.
Used the device ID to generate the oculus signature file using the service at https://developer.oculus.com/manage/tools/osig-generator/
Copy the signature file generated in step 2 at the following location in your unity project sub folder - Assets / Plugins / Android / assets (Create the folders if that do not exist).
Now build and Run the App on an Android Device.
For more: Oculus Signature File (osig) Generator
The above method didn't work for me, but I found that putting the signature file (osig) into "Project_Name/app/src/main/assets" does work. Within Android Studio you will see the file in your 'assets' folder too.
For example with the GearVRf Cockpit Demo, I put my osig file in:
GearVRf-Demos\gvr-cockpit\app\src\main\assets
Hi i'm new to android my client want to run the app in their on Android Device i go through the many answers through Stack overflow like this:-
How to make .apk file
How to build an APK file in Eclipse?
but i'm unable to make build.
I want to make a build of app in which is usually .apk extension and how i'm able to install this .apk file in my clients android device it doesn't have any eclipse or IDE.
Please suggest me the way or some links regarding this process to build and install the app in clients android device without using eclipse or any IDE.
Thanks in advance.
Eclipse create .apk file of your project by itself and save it in bin folder copy that apk file and send that to client and tell him to save apk on SD card and run directly from SD card. It will work.
the moment you run the app on the emulator or a device, the .apk file is created and put in /%YOUR PROJECT%/bin/app.apk
you can send that to your client...
I wondered what installing apk files into emulator or device means and tried to install manually with eclipse first. I opened file explorer tab in ddms section in eclipse and realized that all files with apk extension are in app folder. I selected app directory and clicked push a file onto device button on the top. With selecting apk file i want it was installed to the emulator. However, i am getting this error when try to run app ,
Is this error about my installation method or caused by something different ?
The only way to install an apk is with
adb install FileName.apk
I think that the installation procedure of an Android application would be more complex than simply putting the apk in the app directory. Various folders have to be created to store application local data, file permissions for the application has to be set, the package manager has to be updated about the new package, and many other scores.
You should really just use the default installer of Android to take care of the installation. And, if you are really curious to know the installation procedure, you can always check out the source code! You can find details in the Getting Started page on how to download the source.
I want to test my build on my device. Please provide some tool/information regarding installation of application on device ?
thanks and regards,
Connect your device with the PC, install the Android SDK (you should have that already) and than: http://developer.android.com/guide/developing/tools/adb.html
Open phone web-browser.
Enter url: file:///sdcard/[nameofyourapkfile].apk
No need for file browser programs.
If you just want to install the apk file on the mobile without the need of any debug information you can simply upload the apk file (which is located in the /bin directory of your project) to a webspace and grab it with the mobile's browser (e.g. http://www.mywebspace.com/myapp.apk)
You can also copy the apk to your phone - SD card or internal memory- and then click on it. This should install the apk in most devices, though some devices may block the installation of non-market apks.
Or download SD Folder or something like that just type SD Folder into Googleplay and then youll be able to simply open apk files or Pics you couldnt access trough the office suit.