Starting: Intent {cmp=com.example.com/com.apportable.activity.VerdeActivity(has extras)

2,033 views
Skip to first unread message

Leonardo Pizzoni

unread,
Jul 18, 2013, 12:36:11 PM7/18/13
to apportabl...@googlegroups.com
Hi all,

i tested the sample apps and they runs correctly on the emulator.

i have this problem:

i have tryed to load my app in the emulator but immediatly after the launchimage it stops and goes into black screen.

if can helps here is the manifest:

if i type "apportable load" i receive this error and app doesn't load at all: 

3052 KB/s (33870847 bytes in 10.834s)
    pkg: /data/local/tmp/Lallo-debug.apk
Failure [INSTALL_FAILED_INVALID_APK]
Starting: Intent { cmp=Lallo/com.apportable.activity.VerdeActivity (has extras) }
Error type 3
Error: Activity class {Lallo/com.apportable.activity.VerdeActivity} does not exist.
if i type "APPLICATION_IDENTIFIER=com.example.myapp apportable load" i can see the launchimage and after that black screen and this error:

Starting: Intent { cmp=Lallo/com.apportable.activity.VerdeActivity (has extras) }
here is the manifest:

<?xml version="1.0" encoding="utf-8"?>
<!-- BEGIN_INCLUDE(manifest) -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="Lallo"
          android:sharedUserId="Lallo"
          android:installLocation="auto"
          android:versionCode="1373630001"
          android:versionName="1.1.1">
    <supports-gl-texture android:name="GL_OES_compressed_ETC1_RGB8_texture" />
    <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" />
    <uses-permission android:name="android.permission.INTERNET" />
    <supports-screens android:resizeable="true" android:normalScreens="true" android:largeScreens="true" android:smallScreens="false"/>
    <application android:label="@string/app_name"
                 android:name="com.apportable.app.VerdeApplication"
                 android:hasCode="true"
                 android:icon="@drawable/icon"
                 android:theme="@style/FullScreenActivity"
                 android:debuggable="true"
                 android:largeHeap="false"
                 android:hardwareAccelerated="true">
        <meta-data android:name="android.app.libs" android:value="v cxx System objc ffi pthread_workqueue dispatch Foundation BridgeKit OpenAL verde" />
        <meta-data android:name="android.app.lib_name" android:value="verde" />
        <meta-data android:name="android.app_name" android:value="Lallo" />
        <meta-data android:name="apportable.splash_screen_type" android:value="letterbox" />
        <meta-data android:name="apportable.orientation" android:value="landscape" />
        <meta-data android:name="apportable.opengles2" android:value="true" />
        <meta-data android:name="apportable.opengles.fast_color" android:value="true" />
        <activity android:name="com.apportable.activity.VerdeActivity"
                  android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation|screenSize|smallestScreenSize"
                  android:label="@string/app_name"
                  android:screenOrientation="landscape"
                  android:windowSoftInputMode="adjustPan"
                  android:launchMode="singleTask">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="fb361458087289348"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <service android:enabled="true" android:name="com.apportable.activity.GdbServerService"
            android:label="@string/app_name" android:icon="@drawable/icon">
            <intent-filter >
                <action android:name="Lallo.GdbServerService" />
            </intent-filter>
        </service>
    </application>
</manifest>

Could anyone help me pls?


Leonardo Pizzoni

unread,
Jul 18, 2013, 2:14:45 PM7/18/13
to apportabl...@googlegroups.com
with "apportable debug" i got this message:

warning: Breakpoint address adjusted from 0x40005a53 to 0x40005a52.
0x40037ebc in epoll_wait ()
   from /Users/Leonardo/.apportable/cache/devices/emulator-5554/libs/libc.so
$1 = 0
Breakpoint 1 at 0x4900d390: file /Users/Leonardo/Desktop/androidlallo/Lallo/main.m, line 11.
[New Thread 744]
[Switching to Thread 744]

Breakpoint 1, main (argc=0, argv=0x48b815e0 <_start_method>)
    at /Users/Leonardo/Desktop/androidlallo/Lallo/main.m:11
11 int main(int argc, char *argv[]) { 

Philippe Hausler

unread,
Jul 18, 2013, 2:14:57 PM7/18/13
to Leonardo Pizzoni, apportabl...@googlegroups.com
What is the bundle identifier specified in your info.plist? I have a feeling there is something in there that does not work for Android. (from the failure it looks like it is just allo (which I am not sure that is usable). You can change this by specifying APPLICATION_IDENTIFIER in the configuration.json
--
You received this message because you are subscribed to the Google Groups "Apportable discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apportable-disc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Leonardo Pizzoni

unread,
Jul 19, 2013, 5:16:58 AM7/19/13
to apportabl...@googlegroups.com, Leonardo Pizzoni
which value should i assign to that field?
To unsubscribe from this group and stop receiving emails from it, send an email to apportable-discuss+unsub...@googlegroups.com.

Leonardo Pizzoni

unread,
Jul 19, 2013, 8:26:22 AM7/19/13
to apportabl...@googlegroups.com, Leonardo Pizzoni
i have edited the bundle name in xcode and after that in config.json in Build folder but the error is the same.

Paul Beusterien

unread,
Jul 19, 2013, 11:37:39 AM7/19/13
to Leonardo Pizzoni, apportabl...@googlegroups.com
The package name may need to be something like com.example.Lallo

To unsubscribe from this group and stop receiving emails from it, send an email to apportable-disc...@googlegroups.com.

Leonardo Pizzoni

unread,
Jul 19, 2013, 12:02:23 PM7/19/13
to apportabl...@googlegroups.com, Leonardo Pizzoni
Thanks for the answer.
how can i know the exact value of it?
To unsubscribe from this group and stop receiving emails from it, send an email to apportable-discuss+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Philippe Hausler

unread,
Jul 19, 2013, 12:23:42 PM7/19/13
to Leonardo Pizzoni, apportabl...@googlegroups.com
You can verify what the build system has picked up by looking at the <Project>.approj/targets/<BuildTarget>/<BuildMode>.final (which is a json file). This file will contain the results of merging your configuration with the generated parameters (so editing won't do anything since it will be overwritten the next time you build), in the config section it should have a field named APPLICATION_IDENTIFIER, that should contain a string that specifies the bundle name.

If that is still not a reverse domain format identifier then you likely need to run apportable --generate which will re-emit the Xcode project into the json formats. Else if it is in there and you are still having issues launching the problem is likely somewhere else and we would need to hunt down the issue by looking at exactly what your Xcode project is building and where our build system is not picking up on things correctly.

Another note: when changing items in the config section of the configuration.json I find it is usually a good idea to run apportable clean to ensure that everything is starting from a clean slate.
To unsubscribe from this group and stop receiving emails from it, send an email to apportable-disc...@googlegroups.com.

Leonardo Pizzoni

unread,
Jul 19, 2013, 12:38:00 PM7/19/13
to apportabl...@googlegroups.com, Leonardo Pizzoni
i have checked that file and the identifier is "com.example.Lallo". when i do apportable --generate i can see a Warning called "Library not found for z. Try adding this to the deps array...

Philippe Hausler

unread,
Jul 19, 2013, 12:41:26 PM7/19/13
to Leonardo Pizzoni, apportabl...@googlegroups.com
don't worry about z; that one is actually linked by default but named libz incorrectly (this is an outstanding ticket) 
To unsubscribe from this group and stop receiving emails from it, send an email to apportable-disc...@googlegroups.com.

Leonardo Pizzoni

unread,
Jul 24, 2013, 9:38:47 AM7/24/13
to apportabl...@googlegroups.com, Leonardo Pizzoni
any other advice guys?

Philippe Hausler

unread,
Jul 24, 2013, 4:24:59 PM7/24/13
to Leonardo Pizzoni, apportabl...@googlegroups.com
I was able to take a look at your sample project that you sent us; it seems to be working just fine for me. I would suggest to run apportable clean and then set-aside your approj and let it re-generate.
To unsubscribe from this group and stop receiving emails from it, send an email to apportable-disc...@googlegroups.com.

Leonardo Pizzoni

unread,
Jul 24, 2013, 4:59:47 PM7/24/13
to apportabl...@googlegroups.com, Leonardo Pizzoni
tnx for the reply.
I have removed the approj , i launched clean command and then build and load...
the error is the same:

Debugging...
No mtp compatible devices found: Falling back to slow path
2814 KB/s (33936111 bytes in 11.773s)
pkg: /data/local/tmp/Lallo-debug.apk
Failure [INSTALL_FAILED_MEDIA_UNAVAILABLE]
Starting: Intent { cmp=com.example.Lallo/com.apportable.activity.VerdeActivity (has extras) }
Error type 3
Error: Activity class {com.example.Lallo/com.apportable.activity.VerdeActivity} does not exist.

Error: GDB process not found
scons: *** [Build/android-armeabi-debug/Lallo/Lallo-debug.apk_debug] Explicit exit, status -1
scons: building terminated because of errors.

Philippe Hausler

unread,
Jul 24, 2013, 5:01:10 PM7/24/13
to Leonardo Pizzoni, apportabl...@googlegroups.com
Hmm that looks like a device error, what device are you using?
Does it have an SD card?
have you tried uninstalling any old versions you have on the device?
To unsubscribe from this group and stop receiving emails from it, send an email to apportable-disc...@googlegroups.com.

Leonardo Pizzoni

unread,
Jul 24, 2013, 5:43:26 PM7/24/13
to apportabl...@googlegroups.com
I'm using an emulator

Leonardo Pizzoni

unread,
Jul 24, 2013, 5:43:53 PM7/24/13
to apportabl...@googlegroups.com
And the test apps works on the emulator

Philippe Hausler

unread,
Jul 24, 2013, 6:17:10 PM7/24/13
to Leonardo Pizzoni, apportabl...@googlegroups.com
You may need to reset the device entirely.
I was testing it against the emulator and it worked just fine for me. As a side note it looks relatively decent using this
[UIScreen mainScreen].currentMode = [UIScreenMode emulatedMode:UIScreenAspectFitEmulationMode];
in main.m

On Wednesday, July 24, 2013 at 2:43 PM, Leonardo Pizzoni wrote:

And the test apps works on the emulator

Leonardo Pizzoni

unread,
Jul 26, 2013, 10:08:14 AM7/26/13
to apportabl...@googlegroups.com, Leonardo Pizzoni
Thanks for all the help you gave me!

Now all is ok except the app icon. It is very very small. How can i solve it?


Il giorno giovedì 25 luglio 2013 00:17:10 UTC+2, Philippe Hausler ha scritto:
You may need to reset the device entirely.
I was testing it against the emulator and it worked just fine for me. As a side note it looks relatively decent using this
[UIScreen mainScreen].currentMode = [UIScreenMode emulatedMode:UIScreenAspectFitEmulationMode];
in main.m

On Wednesday, July 24, 2013 at 2:43 PM, Leonardo Pizzoni wrote:

And the test apps works on the emulator

--
You received this message because you are subscribed to the Google Groups "Apportable discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apportable-discuss+unsub...@googlegroups.com.

Philippe Hausler

unread,
Jul 26, 2013, 10:23:52 AM7/26/13
to Leonardo Pizzoni, apportabl...@googlegroups.com
in the configuration.json there is a field in the config section to specify an alternate icon

configuration.json
{
"config" : {
"ICON" : "./path/to/some/other/icon.png"
...
}
...
To unsubscribe from this group and stop receiving emails from it, send an email to apportable-disc...@googlegroups.com.

Oleg Osin

unread,
Oct 24, 2013, 5:21:40 PM10/24/13
to apportabl...@googlegroups.com, Leonardo Pizzoni
I was getting the same error: 
No mtp compatible devices found: Falling back to slow path
I tried restarting the device which didn't help. 

I'm posting this here incase somebody else finds this thread:
I found the issue: having the android file manager open on mac (http://www.android.com/filetransfer/) was causing this error whenever I was building to device. So just make sure no other process is using the device when loading apportable.  

On Wednesday, July 24, 2013 3:17:10 PM UTC-7, Philippe Hausler wrote:
You may need to reset the device entirely.
I was testing it against the emulator and it worked just fine for me. As a side note it looks relatively decent using this
[UIScreen mainScreen].currentMode = [UIScreenMode emulatedMode:UIScreenAspectFitEmulationMode];
in main.m

On Wednesday, July 24, 2013 at 2:43 PM, Leonardo Pizzoni wrote:

And the test apps works on the emulator

--
You received this message because you are subscribed to the Google Groups "Apportable discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apportable-discuss+unsub...@googlegroups.com.

Philippe Hausler

unread,
Oct 24, 2013, 5:31:52 PM10/24/13
to Oleg Osin, apportabl...@googlegroups.com, Leonardo Pizzoni
The Android Filetransfer app does not close MTP based connections and will cause issues with our transfer tool. However it should fall back to regular adb transfers if it cannot bind a MTP connection.
To unsubscribe from this group and stop receiving emails from it, send an email to apportable-disc...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages