[Q] AVD does not display exception/error? - Android Q&A, Help & Troubleshooting

I am working on my very first android application. If I installed an invalid application on an AVD, I was expecting it displayed an exception or reason of failure. But the AVD simply displayed the following message. Is it possible to setup an AVD so it could display more useful debug exception/error?
The application HelloTabWidget (process home.net) has stopped unexpectedly. Please try again.
[ ok ]

Try getting a logcat to see why it fc.

Related

[Q] Help me please !!!

hello everyone ,
I'm a new in developing application .
OK , I followed guides how to install the SDK and eclipse now when I'm trying to write application i get theses error(s)
Multiple annotations found at this line:
- The markup in the document following the root element must be well-
formed.
- error: Error parsing XML: junk after document element
"R cannot be resolved to a variable"
please help me to find out a solution !

[Q] Android OS Restarting in Emulaor

Hi all,
I am using Ubuntu 10.04 LTS. I am very much new to android programming. I use Eclipse for development environment. I am using android sdk r21. Whenever i run an application in android emulator through eclipse, the android device restarts, please note that android emulator does not get closed but it restarts. I do not why but after 1 minute it restarts.
I have an AndroidGPSTracking project downloaded from androidhive.info. The author of the project mentions that it is running well for him and other. I have followed every direction mentioned in the website to run the project. When i run the project following console output is generated:
2012-11-28 11:00:42 - AndroidGPSTrackingActivity] New emulator found: emulator-5554
[2012-11-28 11:00:42 - AndroidGPSTrackingActivity] Waiting for HOME ('android.process.acore') to be launched...
[2012-11-28 11:01:09 - AndroidGPSTrackingActivity] HOME is up on device 'emulator-5554'
[2012-11-28 11:01:09 - AndroidGPSTrackingActivity] Uploading AndroidGPSTrackingActivity.apk onto device 'emulator-5554'
[2012-11-28 11:01:10 - AndroidGPSTrackingActivity] Installing AndroidGPSTrackingActivity.apk...
[2012-11-28 11:01:27 - AndroidGPSTrackingActivity] Success!
[2012-11-28 11:01:27 - AndroidGPSTrackingActivity] Starting activity com.example.gpstracking.AndroidGPSTrackingActivity on device emulator-5554
[2012-11-28 11:01:28 - AndroidGPSTrackingActivity] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat= [android.intent.category.LAUNCHER] cmp=com.example.gpstracking/.AndroidGPSTrackingActivity
After i run the project i use DDMS perspective in eclipse to send latitude and logitude information to android emulator.
Please help me. I am unable to undertand whether the problem lies with emulator, sdk or something else.
I have attached herewith the entire project
Regards
Yusuf:crying:

[Q] Could you help me out here?

Ok, so i recently started programig in Eclipse and i have this error when i try to launch it on my phone:
PHP:
Android Launch!
adb is running normally.
Performing com.guzi.cuantofalta.MainActivity activity launch
Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
Uploading CuántoFalta.apk onto device 'S7500ef722d08'
Installing CuántoFalta.apk...
Installation failed due to invalid APK file!
Please check logcat output for more details.
Launch canceled!
I have been searching to fix this error but i couldnt find any.

Browser is able to request URLload, but receiving net::ERR_EMPTY_RESPONSE in android

Phenomenon :
Browser is able to request URLload, but receiving net::ERR_EMPTY_RESPONSE
Error Log:-
■ Exception while accessing Google from browser app in android device (AOSP6)
X509Util: Failed to validate the certificate chain, error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

[DEV][AAOS][GAS] Google Services on Android Automotive OS build

Hello, I'm looking for a way to use Google Automotive Services in my custom ROM.
My aim is to develop an application using privilage/system permissions (android.car.permission.CAR_INFO, android.permission.SYSTEM_ALERT_WINDOW, etc.) and Google API, but I can't see a way to install it on the official emulator.
For a start - I've downloaded 12.1 sources, built an SDK image and created an emulator. Then I've downloaded AAOS 12.1 emulator image with a Play Store.
Side note: I'd like to do the same with AAOS 13, but there is no official AAOS 13 emulator image with GAS so far.
Then I've found all apk packages present in the emulator system img file and absent in my image, sign them all with my platform key and install with adb install with "-g" switch.
The emulator starts but it just pretends to work.
Google Maps starts, but it can't read the GPS signal (I'm in the middle of the ocean )
I still see "The device isn't Play Protect certified" message, even when registered at https://www.google.com/android/uncertified/.
When trying to log into a Google Account, I can see "addAccount(com.google): java.lang.SecurityException: Cannot delegate to Service with different signature." exception thrown.
There are a lot of security-related errors in logs:
GooglePlayServices not available due to error 9
com.google.android.carassistant requires Google Play services, but their signature is invalid
java.lang.SecurityException: UID 10157 is not associated with a first party app!
File error accessing recents directory,
Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:[email protected]
Package com.android.car.activityresolver is not installed for any user, java.lang.UnsatisfiedLinkError: dlopen failed: library "/system/lib64/libbluetooth_jni.so" needed or dlopened by "/apex/com.android.art/lib64/libnativeloader.so" is not accessible for the namespace "classloader-namespace"
java.lang.SecurityException: Caller com.google.android.gms needs to hold android.permission.SCHEDULE_EXACT_ALARM to set exact alarms.
and a lot more....
Side note: I've tried an another way - to install my app as a system one in the official emulator, but repacking those super images beat me .
What else should I do? Is there an easy way, like Open GApps for Automotive or how can I create my own GApps package?

Categories

Resources