FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
10/28/13 01:41 AM (12 years ago)

eclipse and geny motion

hi guys, managed to get app on play, but i had to use the old android package, because i couldn't get the simulator in eclipse to run right, and the only android phone i have is an api 10, which means it messes with the screens and buttons, so i decided to install genymotion , which i have, its all installed ok, with virtual box, no errors, the simulator runs great, loads fast, but when i run the app, it loads on sim but comes up with this error somethings not right there was a problem loading the apps configuration data, see the output console in your development tool (2) the output log isnt showing any errors, just this at the end ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.cumbriacouncil/.BT_activity_start what am i doing wrong guys :) sean
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/28/13 01:45 AM (12 years ago)
ps this is the manifest if that helps and im using simulator nexus 4.1.1 android api 16 <?xml version="1.0" encoding="utf-8"?> <!-- File Version: 3.1: 08/28/2013 --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.cumbriacouncil" android:versionCode="1" android:versionName="1.0"> <!-- app requires Android 3.0 or above on device --> <uses-sdk android:minSdkVersion="11"/> <!-- required device permissions --> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android.permission.READ_CONTACTS" /> <uses-permission android:name="android.permission.WRITE_CONTACTS" /> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <!-- Google Cloud Messaging permissions (PROJECT NUMBER REQUIRED FURTHER DOWN IN THIS DOCUMENT) --> <permission android:name="com.cumbriacouncil.permission.C2D_MESSAGE" android:protectionLevel="signature" /> <uses-permission android:name="com.cumbriacouncil.permission.C2D_MESSAGE" /> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> <uses-permission android:name="android.permission.WAKE_LOCK" />      <uses-permission android:name="android.permission.VIBRATE" /> <!-- Google Maps permissions (GOOGLE MAPS FOR ANDROID API KEY REQUIRED FURHTER DOWN IN THIS DOCUMENT) --> <uses-permission android:name="com.cumbriacouncil.permission.MAPS_RECEIVE"/> <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/> <uses-feature android:glEsVersion="0x00020000" android:required="true"/> <!-- other optional hardware features --> <uses-feature android:name="android.hardware.camera" android:required="false" /> <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" /> <uses-feature android:name="android.hardware.location" android:required="false" /> <uses-feature android:name="android.hardware.location.gps" android:required="false" /> <uses-feature android:name="android.hardware.telephony" android:required="false" /> <!-- supported screen sizes and density --> <supports-screens android:resizeable="true" android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" /> <!-- application --> <application android:name="cumbriacouncil_appDelegate" android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/hostThemeWithTitle" android:hardwareAccelerated="false" android:debuggable="true" android:vmSafeMode="false"> <!-- Google Cloud Messaging Project Number Replace "YOUR_GOOGLE_GCM_PROJECT_NUMBER" with the Project Number provided by Google See http://developer.android.com/google/gcm/gs.html --> <meta-data android:name="googleCloudMessagingProjectNumber" android:value="YOUR_GOOGLE_GCM_PROJECT_NUMBER_GOES_HERE"/> <!-- Google Maps v2 API Key Replace "GOOGLE_MAPS_FOR_ANDROID_V2_API_KEY_GOES_HERE" on the next line with the Google Maps for Android API Key provided by Google See: https://developers.google.com/maps/documentation/android/start#installing_the_google_maps_android_v2_api --> <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="GOOGLE_MAPS_FOR_ANDROID_V2_API_KEY_GOES_HERE"/> <!-- Google Cloud Messaging --> <receiver android:name="com.cumbriacouncil.BT_gcmReceiver" android:permission="com.google.android.c2dm.permission.SEND" > <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <action android:name="com.google.android.c2dm.intent.REGISTRATION" /> <category android:name="com.cumbriacouncil" /> </intent-filter> </receiver> <service android:name=".BT_gcmIntentService" /> <!-- BT_activity_start is the default, beginning activity, it may or may not load a splash screen fragment (plugin) --> <activity android:name=".BT_activity_start" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation|screenSize" android:theme="@style/startThemeNoTitle"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <!-- BT_activity_host runs after startup and after splash screen (splash screens are not required --> <activity android:name=".BT_activity_host" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation|screenSize" android:theme="@style/hostThemeWithTitle" android:uiOptions="splitActionBarWhenNarrow"></activity> </application> </manifest>
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/28/13 02:09 AM (12 years ago)
The error: "somethings not right, there was a problem loading the apps configuration data..." ...either means it's looking for a class file and cannot find it, or there may be a syntax error in your json configuration file (some special character may be throwing it off). You might want to run your BT_config.txt file through jsonlint.com to make sure there are no errors. Also, check to make sure that all the plugins for your project are included in the src directory as <pluginName>.java files. See if that helps any... Cheers! -- Smug
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/28/13 04:12 AM (12 years ago)
cheers for getting back smug, json file is ok checked with the above, and all the .java files are in the plugins folder, its stumbled me, sim works great, but theres something im not doing, do the master files need to be anywhere special, or can i have them on my desktop cheers sean
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/28/13 04:28 AM (12 years ago)
Simulator works ok, Device does not work ok? If that's the case, try removing the app from your Android device (in settings/app manager), clean the project, and try again. Cheers! -- Smug
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/28/13 04:34 AM (12 years ago)
no i cant get it running on eclipse sim, but the geny one, looks as if its about to work, but stops on the error above, removed app, clean, launched, still above error, its loading the app on, but then the above error, and when i press ok, black screen, press back , and sim works fine, grrr what am i doing wrong, sean
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/28/13 04:39 AM (12 years ago)
Is the configuration data (BT_config.txt) the most recent version from your control panel? Cheers! -- Smug
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/28/13 04:44 AM (12 years ago)
yes i re downloaded it, after i checked the json above
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/28/13 04:50 AM (12 years ago)
zip up the project in a location where I can reach it, and send me the link; smugwimp @ smugwimp . com and make the subject line something that I won't disregard. Cheers! -- Smug
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/28/13 04:52 AM (12 years ago)
yes i re downloaded it, after i checked the json above
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/28/13 05:00 AM (12 years ago)
will do thanks smug
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/28/13 05:10 AM (12 years ago)
sent it dude, thanks
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/28/13 05:14 AM (12 years ago)
Lemme fool around with it for a minute before the wife gets home... Cheers! -- Smug
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/28/13 05:20 AM (12 years ago)
mucho grasis dude, im pulling my hair out, even if i have to uninstall everything and start again, a heads up on what first and where, if the app works ok for you, i think the screens and stuff are out, as i fiddled with the code to reinstall an xcode copy again, im not worried about that as i can fix it, just need my simulator to work, just want screen size similar to iphone, so i dont have to mess with the code,i took your advice and got it to work first, but then realized my phones small screen made the icons go in funny place :) cheers sean
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/28/13 05:24 AM (12 years ago)
Well, she's home so I have to halt for the moment. I loaded it, ran it on a simulator, and it loads fine. It doesn't seem to do anything, but it loads. Asks me if I want to refresh, asks me if I want push notifications, and goes to this screen: https://dl.dropboxusercontent.com/u/115208762/arley.png The only thing that 'might' be a problem is, the project automatically picked an emulator to run in. If this is the case with you as well, perhaps it's not picking the 'right' emulator? Go into your properties and change the default to 'always prompt to pick device' and see if a different emulator responds better... Properties --> Run/Debug Settings --> Select and Edit 'Launch Configuration' --> Target Cheers! -- Smug
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/28/13 05:27 AM (12 years ago)
yes thats the right screen before i add and move things, i choose the emulator, as i have set it to that, and it loads the app on the emulator, just stops at launch with the before messages, think i,d better unistall everything and start again, where would you install eclipse bruv :)what version, and can i install genymotion as th emulator with that works realy fast
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/28/13 05:33 AM (12 years ago)
I've never worked with Genymotion, so I can't say... If you're on windows, install the ADT in your root (C:\) If you're on a Mac, pretty much anywhere is cool; I have mine in 'applications'. Check the GoNorthWest videos if you have any issues about which to get and how to install... Cheers! -- Smug
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/28/13 05:36 AM (12 years ago)
cheers dude, i have watched em but i will watch them again sean
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/28/13 09:47 AM (12 years ago)
hi dude, reinstalled everything, still getting same error as before about apps configuration data, tried going down to 2.2, downloaded new file, but same error, and it works on yours, so it something with eclipse, here the logcat, if that helps, i know its like needle in haystack with this stuff, but any pointers before i go old skool on my puter lol 10-28 16:35:13.952: W/ZZ(1713): BT_activity_root:loadAppData cachedAppConfig.txt does not exist in the cache... 10-28 16:35:13.952: W/ZZ(1713): BT_application: validateApplicationData 10-28 16:35:13.964: W/ZZ(1713): BT_activity_root: application data appears to be valid JSON... 10-28 16:35:13.984: W/ZZ(1713): BT_application: parseJSONData 10-28 16:35:13.984: W/ZZ(1713): BT_application: parsing core settings... 10-28 16:35:13.988: W/ZZ(1713): BT_application: parsing themes... 10-28 16:35:13.988: W/ZZ(1713): BT_application: parsing tabs... 10-28 16:35:13.988: W/ZZ(1713): BT_application: parsing screens... 10-28 16:35:13.988: W/ZZ(1713): BT_application:parseJSONData done parsing application data 10-28 16:35:13.992: W/ZZ(1713): BT_activity_root:loadAppData An exception occurred (55). java.lang.NullPointerException: replacement == null
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/28/13 10:45 AM (12 years ago)
or even if you could point me how to move those images round the screen, on that app i sent you smug, cheers dude sean
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/28/13 03:20 PM (12 years ago)
I've never worked with the 'button menu' plugin before, so your guess would probably be as good as mine, with respect to 'moving things around'. Never tried it. In your log cat I can see that the loadAppData gives an exception, but I'm not sure 'why' it would give an exception. When in doubt, start small, add incrementally, and test profusely. Cheers! -- Smug
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
10/28/13 03:46 PM (12 years ago)
The prob I've got is I'm try to build couple apps for iOS and droid, the iOS ones are built and published, but the android ones are doing funny things with the buttons, as you saw, on the iOS those buttons are in grid in 3 rows of 3 , lower downt the screen, that's why I need to move them in the settings in droid, will get there in the end dude, thanks for your help
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/28/13 05:58 PM (12 years ago)
Doing what I can :) I'll be honest with you; I never expect my Android results to come close to my iOS apps... I try and get the 'function' to be as close as possible, but identical appearance takes more patience and skill than I possess. In fact, the 'patience' goes out the window far sooner, lol! Cheers! -- Smug
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.