cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
05/21/13 06:17 PM (12 years ago)

Going from iOS to Android assistance

I have recently published my first iOS app for my church but I am running into issues trying to recreate a similar look for the Android platform in order to have my church's app in both markets. When I open the emulator in Eclipse nothing shows up on the screen. I am using the button menu but nothing works. Can anyone give me guidance? I am new at this whole thing so I'm not sure what information you may need to help but l would appreciate anything. TJ
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
05/21/13 06:25 PM (12 years ago)
Hey buddy. Good news on moving onto your second market! Happy days indeed. Some good folks on here have some solid church, scouts and community apps out there so there will be a few brains you can pick. 1. So nothing shows up? Does the app fire up in the emulator to a blank screen? Can you do anything? 2. Have you dragged across your images into res/drawable? 3. Has Eclipse ever worked or is this this your first try? Not the most awesome chap in Android myself, looking forward to ditching Eclipse for Studio. Anyway, post back with any other info and you'll have it fired up in two shakes of a lambs tail.
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/21/13 06:49 PM (12 years ago)
1. The app does fire up in the emulator to a blank screen even though in the control panel I specified a certain color. I am unable to do anything once it fires up 2. I did drag some images across just to see if they would show but still no luck 3 and this is my first try at it. I have been so in this I haven't heard or had time to read about Studio. Will that make this process a lot easier, like the iPhone sort of speak? I wasn't expecting this much of a headache with Android. And thank you for any help.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/21/13 11:47 PM (12 years ago)
Sounds like the plugin for your first screen isn't loading. Either you need to copy the config data in again or you need to make sure an Android-compatible plugin is set for your first screen and the files are in the project. What plugin are you using for the first screen?
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
05/22/13 02:03 AM (12 years ago)
Eclipse is a bit daunting at first, but once you get going, it is OK. If your app fires up in the emulator, that is a good start. You said you are using the button menu, then the problem may be as simple as the default values. On some plugins, default values (i.e. where you don't enter a value and accept the default shown in the control panel) that work fine in Apple apps are not recognised in the android version. The easy way to check is to explicitly set values for the button sizes, colours, backgrounds etc. Also, make sure the latest config.txt is in your eclipse build, it may not refresh to the latest the first time you run the app. Alan
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/22/13 12:04 PM (12 years ago)
@Chris I finally got the splash screen to load with the logo but once it transitions to the home screen it is back to the red background that I set without the menu buttons. @AlanMac I will try to set values for the button sizes, colors, etc. Thanks to you both for suggestions
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/22/13 12:05 PM (12 years ago)
Make sure you've copied all your images into the res/drawable folder.
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/22/13 12:49 PM (12 years ago)
Everything looks to be in order as far as my images go. And I check the config.txt and it matched what was in control panel.
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/22/13 01:21 PM (12 years ago)
Ok so I figured out why it was coming up to a blank screen. I finally noticed it was pointing to the wrong home screen. But when I changed that the android stops unexpectedly after the splash screen. Here is what it says, which looks foreign to me...maybe someone can make tells of it.. 05-22 16:15:00.084: E/AndroidRuntime(299): FATAL EXCEPTION: main 05-22 16:15:00.084: E/AndroidRuntime(299): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.embcandroid/com.embcandroid.BT_screen_menuButtons}: java.lang.NumberFormatException: unable to parse '.01' as integer 05-22 16:15:00.084: E/AndroidRuntime(299): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) 05-22 16:15:00.084: E/AndroidRuntime(299): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 05-22 16:15:00.084: E/AndroidRuntime(299): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 05-22 16:15:00.084: E/AndroidRuntime(299): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 05-22 16:15:00.084: E/AndroidRuntime(299): at android.os.Handler.dispatchMessage(Handler.java:99) 05-22 16:15:00.084: E/AndroidRuntime(299): at android.os.Looper.loop(Looper.java:123) 05-22 16:15:00.084: E/AndroidRuntime(299): at android.app.ActivityThread.main(ActivityThread.java:4627) 05-22 16:15:00.084: E/AndroidRuntime(299): at java.lang.reflect.Method.invokeNative(Native Method) 05-22 16:15:00.084: E/AndroidRuntime(299): at java.lang.reflect.Method.invoke(Method.java:521) 05-22 16:15:00.084: E/AndroidRuntime(299): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 05-22 16:15:00.084: E/AndroidRuntime(299): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 05-22 16:15:00.084: E/AndroidRuntime(299): at dalvik.system.NativeStart.main(Native Method) 05-22 16:15:00.084: E/AndroidRuntime(299): Caused by: java.lang.NumberFormatException: unable to parse '.01' as integer 05-22 16:15:00.084: E/AndroidRuntime(299): at java.lang.Integer.parse(Integer.java:433) 05-22 16:15:00.084: E/AndroidRuntime(299): at java.lang.Integer.parseInt(Integer.java:422) 05-22 16:15:00.084: E/AndroidRuntime(299): at java.lang.Integer.parseInt(Integer.java:382) 05-22 16:15:00.084: E/AndroidRuntime(299): at com.embcandroid.BT_screen_menuButtons.onCreate(BT_screen_menuButtons.java:156) 05-22 16:15:00.084: E/AndroidRuntime(299): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 05-22 16:15:00.084: E/AndroidRuntime(299): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 05-22 16:15:00.084: E/AndroidRuntime(299): ... 11 more
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/23/13 05:31 AM (12 years ago)
Is there more needed information.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/23/13 07:17 AM (12 years ago)
Did you enter .01 for a image size?
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/23/13 08:47 AM (12 years ago)
I did earlier but I changed it back awhile back.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/23/13 08:49 AM (12 years ago)
It would seem there's still a .01 in your JSON somewhere.
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/23/13 10:27 AM (12 years ago)
Do you know where I need to look I see what your talking about but I'm looking at the code for the BT_screen_menuButtons but I can't find the .01, I don't know where else to look. I'm really new at all of this. Thanks for your help.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/23/13 10:40 AM (12 years ago)
Look in your BT_config.txt file in Eclipse and do a search for .01. If it's not there, go to your control panel and click on "Configuration Data" and do a search for it there.
 
cyborg2g
Aspiring developer
Profile
Posts: 43
Reg: Feb 27, 2013
North Carolina
6,330
like
05/23/13 11:03 AM (12 years ago)
I found it!!! Now I hope I can finish without anymore problems. Thank you so much...to everyone.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
05/23/13 11:04 AM (12 years ago)
Good! If you have more issues, you know where to find help! :)
 

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.