Problem emulating Android app

0

My eclipse had problems and I reinstalled eclipse and sdk, but then when I emulate the app the following message appears in 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 application package 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.

     SuperOffer \ superOffer \ bin \ SuperOffer.apk installed on device

[2015-06-24 12:26:12 - SuperOffer]      

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

However, in LogCat it displays:

  

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): Could not 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 rotate and nothing, I always emulated by my cell or genymotion and yes, the eclipse is recognizing both.

Thank you for your attention.

    
asked by anonymous 24.06.2015 / 17:40

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 AndroidManifest.xml file does not contain the launcher flag. Make sure 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 : Do not forget to change ExampleActivity by the name of your main Activity.

Something more

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

Try experimenting with other emulators, and even a real device .. maybe your "Couldn't load memtrack" is related to your emulator. Try changing it in "Run Configuration" and be sure to change your API in it as well.

    
24.06.2015 / 18:35