I work on an Android project . I compiled my application on Virtual device and it works fine but when i close the application it vanished from my device and i can't run it again. But it's shown into installed apps when i go to settings and see my apps.
I copy/paste the compiled app-debug.apk to my device and try to install it manually however it install successfully but i am not able to open it.
Related
I have just installed an Android Emulator - which is Pixel 4 API 28 - on my Windows 11 computer. I have a project in Expo and I want to test it on Android Emulator. For this, the Expo needs to install Expo Go on Emulator to load my project. By default, it installs automatically when I request for installation by pressing a on my terminal. It detects the connected and available devices on my computer and installs the application.
But for me this does not happen. Instead of installing automatically, the terminal prints me this:
› Opening on Android...
. Learn more: https://expo.fyi/authorize-android-device_4_API_28
This link leads to a 404 page of Github but if I remove the "_4_API_28" part from hyperlink it leads to "Authorize Android Device" page from fyi. This page guides how to reset USB debug permissions of my device to allow my computer to get debug access. I have already did that on my android emulator but nothing changed, it still prints that message.
Is there anything I can do to solve this issue and install Expo Go on my android emulator property?
I am attempting to debug my application on my android device. running 4.1.2
The app builds and installs correctly but nothing displayed. I get an error message in the debugger that WinJS is undefined. so I check to make sure everything is referenced. and it appears all my scripts and files are not being added to the app package. This only happens when debugging on the android device the app runs fine on the ripple emulator and for windows phone device and windows store.
I have made sure the build tools revision 19 and all drivers are installed.
Please assist
We are currently using Worklight Enterprise Edition running in Windows. We created a mobile application using jQuery Mobile (and another Using Dojo Mobile) but we were unable to deploy it to a the device.
After developing the application we generated the (unsigned) .apk file
We copied it to Samsung Grand (android version 4.1.2) to test it
When we try to open the .apk file, we get the error: There is a problem parsing the package.
Is this the correct procedure to install the .apk file in device?
Try the following:
Make sure the device is setup for development. Follow these instructions to enable so.
Connect your device to the computer using a USB cable
In Eclipse, make sure that the device is recognized in the Devices view (Ctrl+3 and search for "Devices" to add the panel).
Right-click on your Worklight application and choose Run As >> Build All and Deploy
Right-click on the generated Android project (should appear below the Worklight project) and choose Run As >> Android Application
This will generate an unsigned .apk and install it onto the device.
Observe LogCat (Ctrl+3 and search for "LogCat" to add the panel) for errors.
If you cannot connect the device to the computer:
Make sure the enable the option to allow installing applications from "Unknown Sources".
Setup an email account on the device and email the .apk to yourself. Tapping the attached .apk should then install it.
Alternatively, and only if your device is rooted, you can use an app called ADB Wireless, which allows remote installing and debugging of applications.
As a final attempt,
From the Android SDK Mananger, install API Level 8.
Go to the android\native\AndroidManifest.xml file and change minSdkValue to 8.
Build and deploy, install on device.
i have android device, how can i run the application connecting with my system instead running in the emulator.
Connect your device via USB to your computer:
http://developer.android.com/guide/developing/device.html
And then adb should use preferentially the hardware device over the emulator.
http://developer.android.com/guide/developing/building/building-eclipse.html
Automatic and manual target modes
By default, a run configuration uses
the automatic target mode in order to
select an AVD. In this mode, ADT will
select an AVD for the application in
the following manner:
1) If there's a device or emulator already running and its AVD
configuration meets the requirements
of the application's build target, the
application is installed and run upon
it.
2) If there's more than one device or emulator running, each of which meets
the requirements of the build target,
a "device chooser" is shown to let you
select which device to use.
3) If there are no devices or emulators running that meet the
requirements of the build target, ADT
looks at the available AVDs. If there
is an AVD that matches the build
target of the project, ADT chooses
that AVD. If the AVD versions are
newer than the build target of the
project, ADT chooses the oldest
possible version of an AVD that meets
the project's build target
requirement.
4) If there are no suitable AVDs, the application is not installed a console
error warning tells you that there is
no existing AVD that meets the build
target requirements.
However, if a "preferred AVD" is
selected in the run configuration,
then the application will always be
deployed to that AVD. If it's not
already running, then a new emulator
will be launched.
If your run configuration uses manual
mode, then the "device chooser" is
presented every time that your
application is run, so that you can
select which AVD to use.
You have 2 options:
Via ide plugin. Eclipse and IDEA both are able to lauch and debug applications on the real devices, only thing you need is the driver installed for your mobile.
Via apk. Just make an apk, copy it to sdcard, and install it from your device using some file manager like ASTRO.
You can also do it in another way. Attached your .apk file and mail it to your mail account. Then login to your account(account that you send the .apk file) on device, download the .apk file and install it on your device.
I have created a small and simple android app. I tried installing it on an actual android device. But because it won't install, I created an AVD resembling my phone. I tried copying and installing app on that AVD and it still says that error. "Application xxx could not be installed on this phone".
Before I tried installing my app on the phone or AVD I following steps:
1. Exported an unsigned copy of application onto my hard-drive.
2. User jarsigner to sign the app
3. Verified with jarsigner that my app is signed properly.
4. Used zipalign to optimize the app resources.
I do not have an icon assigned to myapp but mandatory properties like version etc. have been specified properly.
I had initially developed app using 2.1 version but because of compatability issues with my phone I reverted code to compile on 1.5 and it still doesn't get installed either on AVD or my phone.
My AVD is on 2.1 though and code is compiled with 1.5.
Is there a place where I can see the logs as to why app is not getting installed. It would be really helpful.
Cheers
This can happen if you have a Debug version installed on the device already (from a USB debug session). Either do adb -d uninstall com.example.yourapp or uninstall in the Preferences->Applications screen on the phone itself.
Try using adb install to see if you get an error.
adb logcat will give you the logs from your device (phone or emulator) so you might find a stacktrace there.