ridgerock
Veteran developer
Profile
Posts: 183
Reg: May 19, 2011
Louisville
1,830
01/27/17 03:20 PM (7 years ago)

Trying to run Android 4.0

So I am attempting a self hosted Android 4.0 and I can get the project to run but it crashes immediately with this error: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.cityofyork/com.cityofyork.ui.bt_screens.BT_activity_host_tabs}; have you declared this activity in your AndroidManifest.xml? Any thoughts on how I can fix it or what I am doing wrong? Thanks!
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
01/27/17 04:03 PM (7 years ago)
guess it was moved to a new activity. but you would just add that activity to your the specified file. Let me find an example. You have declared this activity outside application tag. <activity android:name=".BT_activity_host_tabs" /> you would put this below one of the other activity declarations
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/27/17 07:47 PM (7 years ago)
The Android Core 4.0 project does have a reference in the manifest for BT_activity_host but does NOT have a reference to BT_activity_host_tabs. That class (BT_activity_host_tabs) extends BT_activity_host to I'm surprised to hear that a reference needs to be in the manifest. Some changes were made to the android project when 4.0.0 and 4.0.1 were released. I didn't make the changes so I'm not sure yet how to best resolve this. I'll find out. In the meantime it would be easy to add a reference in the manifest to BT_activity_host_tabs and see if the errors go away?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/28/17 06:37 PM (7 years ago)
Interesting - will take a look at this straight away
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/28/17 10:06 PM (7 years ago)
Just released 4.0.2 for Android - this issue should now be resolved.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/29/17 04:43 AM (7 years ago)
Doing a little testing with Android. When opening a project with BT 4.02 (Android), there is a warning dialog box. Sync Android SDK's The path '/users/crudde1/Library/Android/sdk' does not belong to a directory. Android Studio will use this SDK instead.... Press OK and project works, but I thought I'd mention in as 4.0.1 did not do this.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/30/17 11:31 PM (7 years ago)
@AlanMac - this should no longer be the case. If it still is, let me know.
 

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.