Eclipse Console Not Showing Logs - android

This may not be a programming question. But any help will be appreciated.
When I launch my android application in emulator, I used to get some kind of log message on console. Like below:
[2014-09-01 18:56:44 - POSStore] ------------------------------
[2014-09-01 18:56:44 - POSStore] Android Launch!
[2014-09-01 18:56:44 - POSStore] adb is running normally.
[2014-09-01 18:56:44 - POSStore] Performing com.POS.Store.LoginActivity activity launch
[2014-09-01 18:56:45 - POSStore] Automatic Target Mode: Preferred AVD 'SamsungGalaxyS' is not available. Launching new emulator.
[2014-09-01 18:56:45 - POSStore] Launching a new emulator with Virtual Device 'SamsungGalaxyS'
[2014-09-01 18:56:54 - POSStore] New emulator found: emulator-5554
[2014-09-01 18:56:54 - POSStore] Waiting for HOME ('android.process.acore') to be launched...
[2014-09-01 18:57:28 - POSStore] HOME is up on device 'emulator-5554'
[2014-09-01 18:57:28 - POSStore] Uploading POSStore.apk onto device 'emulator-5554'
[2014-09-01 18:57:28 - POSStore] Installing POSStore.apk...
[2014-09-01 18:57:43 - POSStore] Success!
[2014-09-01 18:57:43 - POSStore] Starting activity com.POS.Store.LoginActivity on device emulator-5554
[2014-09-01 18:57:44 - POSStore] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.POS.Store/.LoginActivity }
[2014-09-01 18:57:45 - POSStore] Attempting to connect debugger to 'com.POS.Store' on port 8626
But suddenly console stopped showing logs. But application is launched successfully and running.
Why does console stopped showing application logs? I've updated my android version. Does this afects?

Go to Display Selected Console drop down on top right side of your console window. And select Android.

Related

application was not shown in emulator

this is the problem i'm geting guys...my application was not shown in emulator...
wat to do guys
Android Launch!
[2013-08-30 11:00:27 - Resturent1] adb is running normally.
[2013-08-30 11:00:27 - Resturent1] No Launcher activity found!
[2013-08-30 11:00:27 - Resturent1] The launch will only sync the application package on the device!
[2013-08-30 11:00:27 - Resturent1] Performing sync
[2013-08-30 11:00:28 - Resturent1] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'kamal'
[2013-08-30 11:00:28 - Resturent1] Uploading Resturent1.apk onto device 'emulator-5554'
[2013-08-30 11:00:32 - Resturent1] Installing Resturent1.apk...
[2013-08-30 11:00:40 - Resturent1] Success!
[2013-08-30 11:00:40 - Resturent1] \Resturent1\bin\Resturent1.apk installed on device
No Launcher activity found! Have you declared Activity with action:Main and category:Launcher in your Android Manifest File.

How to resolve uploading project.apk onto Device Timeout

I am attempting to launch my application but this is what I get. I am using Eclipse with ADD.I am trying to run this project but it seems it cant get uploaded on the virtual device
any suggestions on how I could resolve this ?
[2012-10-05 04:44:10 - Android_Test] ------------------------------
[2012-10-05 04:44:10 - Android_Test] Android Launch!
[2012-10-05 04:44:10 - Android_Test] adb is running normally.
[2012-10-05 04:44:10 - Android_Test] Performing com.example.android_test.MainActivity activity launch
[2012-10-05 04:44:10 - Android_Test] Automatic Target Mode: launching new emulator with compatible AVD 'TestDevice'
[2012-10-05 04:44:10 - Android_Test] Launching a new emulator with Virtual Device 'TestDevice'
[2012-10-05 04:44:12 - Android_Test] New emulator found: emulator-5554
[2012-10-05 04:44:12 - Android_Test] Waiting for HOME ('android.process.acore') to be launched...
[2012-10-05 04:45:04 - Android_Test] HOME is up on device 'emulator-5554'
[2012-10-05 04:45:04 - Android_Test] Uploading Android_Test.apk onto device 'emulator-5554'
[2012-10-05 04:45:09 - Android_Test] Failed to install Android_Test.apk on device 'emulator-5554': timeout
[2012-10-05 04:45:09 - Android_Test] Launch canceled!
Go to > Window menu >Preferences > Android > DDMS > increase value of ADB connection Time out
if this not works then try..
Reset ADB from DDMS > Devices > Reset ADB (down arrow from right corner)
if this fails then you have to restart your AVD

Could not find gridlayout_v7.apk

I'm trying to make my app switch between two activities with buttons. The first activity comes up and I can click on the button, but then a notification pops up that says "Unfortunately, projectname has stopped."
This is the error that comes up on the console:
[2012-10-18 09:54:46 - gridlayout_v7] Could not find gridlayout_v7.apk!
This is what the rest of the console posts:
[2012-10-18 09:54:38 - PersonalLibrary] Android Launch!
[2012-10-18 09:54:38 - PersonalLibrary] adb is running normally.
[2012-10-18 09:54:38 - PersonalLibrary] Performing com.balaka.personallibrary.LibraryMenu activity launch
[2012-10-18 09:54:38 - PersonalLibrary] Automatic Target Mode: Preferred AVD 'test' is available on emulator 'emulator-5554'
[2012-10-18 09:54:38 - PersonalLibrary] Uploading PersonalLibrary.apk onto device 'emulator-5554'
[2012-10-18 09:54:39 - PersonalLibrary] Installing PersonalLibrary.apk...
[2012-10-18 09:54:46 - PersonalLibrary] Success!
[2012-10-18 09:54:46 - gridlayout_v7] Could not find gridlayout_v7.apk!
[2012-10-18 09:54:46 - PersonalLibrary] Starting activity com.balaka.personallibrary.LibraryMenu on device emulator-5554
[2012-10-18 09:54:48 - PersonalLibrary] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.balaka.personallibrary/.LibraryMenu }
I've tried to find answers others places online but there is no mention of the file.
According to this answer, you need to remove the project dependency to gridlayout_v7 and add the dependency to gridlayout_v7 as an "Android" dependency in project properties. That solved the problem for me.

Debugging with android: "waiting for debugger to attach"

when i tried to debug my android application with eclipse, the emulator started and shows this message: "Application openconnection is waiting for the debugger to attach",and i got this messages in my console:
[2012-04-26 12:12:24 - openconection] ------------------------------
[2012-04-26 12:12:24 - openconection] Android Launch!
[2012-04-26 12:12:24 - openconection] adb is running normally.
[2012-04-26 12:12:24 - openconection] Performing org.anddev.android.getdatafromtheweb.GetDataFromTheWeb activity launch
[2012-04-26 12:12:24 - openconection] Automatic Target Mode: Preferred AVD 'emul' is not available. Launching new emulator.
[2012-04-26 12:12:24 - openconection] Launching a new emulator with Virtual Device 'emul'
[2012-04-26 12:12:33 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error
[2012-04-26 12:12:33 - openconection] New emulator found: emulator-5554
[2012-04-26 12:12:33 - openconection] Waiting for HOME ('android.process.acore') to be launched...
[2012-04-26 12:13:08 - openconection] HOME is up on device 'emulator-5554'
[2012-04-26 12:13:08 - openconection] Uploading openconection.apk onto device 'emulator-5554'
[2012-04-26 12:13:09 - openconection] Installing openconection.apk...
[2012-04-26 12:13:29 - openconection] Success!
[2012-04-26 12:13:29 - openconection] Starting activity org.anddev.android.getdatafromtheweb.GetDataFromTheWeb on device emulator-5554
[2012-04-26 12:13:30 - openconection] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=org.anddev.android.getdatafromtheweb/.GetDataFromTheWeb }
[2012-04-26 12:13:31 - openconection] Attempting to connect debugger to 'org.anddev.android.getdatafromtheweb' on port 8656
[2012-04-26 12:13:51 - openconection] Launch error: Failed to connect to remote VM. Connection timed out.
Is it a problem with port ?
I added this code to my manifest file
<uses-permission android:name="android.permission.SET_DEBUG_APP"></uses-permission>
Edit: i have a default emulator called 'emul' i didn't know why it can be started (by the log )
Automatic Target Mode: Preferred AVD 'emul' is not available. Launching new emulator.
Close your other applications those maybe use your debug port.
If you use eclipse and other SDK, you maybe need to close others.
Good Luck.

HelloAndroid Program

I'm new to android sdk. I started with the HelloAndroid program. I followed all specified instructions, but to my surprise, the emulator is not diplaying the "Hello Android" text.
Instead the emulator looks like the one shown above(You can see "LogCat" at the bottom of the image).
The Console shows msgs like,
[2010-10-28 20:14:59 - HelloAndroid] New emulator found: emulator-5554
[2010-10-28 20:14:59 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched...
[2010-10-28 20:15:34 - HelloAndroid] HOME is up on device 'emulator-5554'
[2010-10-28 20:15:34 - HelloAndroid] Uploading HelloAndroid.apk onto device 'emulator-5554'
[2010-10-28 20:15:35 - HelloAndroid] Installing HelloAndroid.apk...
[2010-10-28 20:16:13 - HelloAndroid] Success!
[2010-10-28 20:16:13 - HelloAndroid] Starting activity com.example.helloandroid.HelloAndroid on device
[2010-10-28 20:16:18 - HelloAndroid] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.helloandroid/.HelloAndroid }
After some 7 min, "request time failed" error message is thrown in "LogCat".
Can someone help, please? Thanks.
You need to "unlock" the emulator. Click and drag the green lock symbol to the right.
What your seeing is the screen that would appear if you had a physical android device and you pushed the power button to turn the screen on after the device had gone to sleep.
If you launching the emulator for the first time, you have to unlock it, just like how you unlock your android phone ( using the mouse instead ).

Categories

Resources