Problem emulating Android app

Asked

Viewed 53 times

0

My eclipse had some problems and I reinstalled the eclipse and sdk, but then when I emulate the app appears the following message on the console:

[2015-06-24 12:26:12 - Superoffer] android launch!

[2015-06-24 12:26:12 - Superoffer] adb is running normally.

[2015-06-24 12:26:12 - Superoffer] No Launcher Activity found!

[2015-06-24 12:26:12 - Superoffer] The Launch will only Sync the package application on the device!

[2015-06-24 12:26:12 - Superoffer] performing Sync

[2015-06-24 12:26:12 - Superoffer] Application already Deployed. No need to reinstall.

[2015-06-24 12:26:12 - Superoffer] Superoffer bin Superoffer.apk installed on device

[2015-06-24 12:26:12 - Superoffer] Done!

But in the LogCat display:

06-24 11:35:05.599: I/Inputdispatcher(539): Dropping Event because there is no Touchable window at (924, 647).

06-24 11:35:05.643: D/Mobiledatastatetracker(539): default: setPolicyDataEnable(enabled=true)

06-24 11:35:20.835: D/Androidruntime(1475): >>>>> Androidruntime START com.android.Internal.os.Runtimeinit <<<<<<

06-24 11:35:20.835: D/Androidruntime(1475): Checkjni is OFF

06-24 11:35:20.843: D/dalvikvm(1475): Trying to load lib libjavacore.so 0x0

06-24 11:35:20.843: D/dalvikvm(1475): Added Shared lib libjavacore.so 0x0

06-24 11:35:20.847: D/dalvikvm(1475): Trying to load lib libnativehelper.so 0x0

06-24 11:35:20.847: D/dalvikvm(1475): Added Shared lib libnativehelper.so 0x0

06-24 11:35:20.847: D/dalvikvm(1475): No Jni_onload found in libnativehelper.so 0x0, Skipping init

06-24 11:35:20.875: D/dalvikvm(1475): Note: class Landroid/app/Activitymanagernative; has 179 unimplemented (Abstract) methods

06-24 11:35:20.939: E/memtrack(1475): Couldn’t load memtrack module (No such file or directory)

06-24 11:35:20.939: E/android.os.Debug(1475): failed to load memtrack module: -2

06-24 11:35:21.063: D/Androidruntime(1475): Calling main entry com.android.Commands.pm.Pm

06-24 11:35:21.067: D/Androidruntime(1475): Shutting down VM

06-24 11:35:21.067: D/dalvikvm(1475): Debugger has Detached; Object Registry had 1 Entries

06-24 11:35:24.463: D/Connectivityservice(539): Sampling interval Elapsed, updating statistics ..

06-24 11:35:24.463: D/Connectivityservice(539): Done. 06-24 11:35:24.467: D/Connectivityservice(539): Setting timer for 720seconds

But it does not run and nothing, always emuiled by my cell phone or genymotion and yes, the eclipse this recognizing both.

Thank you for your attention.

1 answer

2


Diogo, see:

[2015-06-24 12:26:12 - SuperOffer] No Launcher activity found!
[2015-06-24 12:26:12 - SuperOffer] The launch will only sync the application package on the device!

Your file AndroidManifest.xml does not contain the Launcher indicator. Check that they are in <intent-filter>:

<intent-filter>
   <action android:name="android.intent.action.MAIN" />
   <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

Example

AndroidManifest.xml

<application android:label="@string/app_name" android:icon="@drawable/icon">
    <activity android:name="ExampleActivity"
              android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

Obs.: Don’t forget to change ExampleActivity by the name of its main activity.


Something else

06-24 11:35:20.939: E/memtrack(1475): Couldn't load memtrack module (No such file or directory)

Experiment with other emulators, and even on real device .. maybe your own. "Couldn't load memtrack" is related to your emulator. Try changing it in "Run Configuration" and don’t forget to change your API in it too.

  • Look Felipe, forgive the delay and thank you, that was the problem!! Thanks!!

  • kkkk Magina, it was nothing!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.