LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
04/09/13 03:51 AM (12 years ago)

Tab bar icons not showing for android app

I have re-done my iPhone app for android- a simplified version that is just about ready. This was through a new Buzztouch project. However- the bottom tab bar just shows the letters and not the icons. These are the same icons I used in the iPhone app. I changed their names to be eclipse friendly- i.e. 0001.png and included them in the assets/BT_docs folder in eclipse. Is that the right place for them? (when I tried in the res/drawable, errors popped up!) Or I wonder if android actually has tab bar icons? I don't have an android phone... Here is a link for the app. I'd be grateful for feedback... https://dl.dropbox.com/u/3433634/LevensGarden.apk Also I think that strangely, only one of the map PDFs is OK. There are two map PDFs- both of which open fine on my mac. On Android, one pops up with an error- corrupt or unsupported file format. It then opens, but only shows half the layers in the map, and not the annotations. Any ideas? Thanks.... Chris
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/09/13 04:33 AM (12 years ago)
They'll need to be added similar to those in iOS; added, not copied. res/drawable is the right place. If errors pop up, those will need to be fixed. Make sure the images don't start with a capital letter, or numeral. Android gets weird when that happens. gif files dont work so well, either I think. Cheers! -- Smug
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
04/09/13 05:39 AM (12 years ago)
Thanks SmugWimp - that did it! No errors this time when adding to res/drawable... I had originally changed the file names to get rid of the capital letters. I hadn't realised Eclipse couldn't cope with numeral starting file names either! All OK now.. Thanks again. Chris
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
04/09/13 05:42 AM (12 years ago)
The map PDF that is giving an error I did not create. I tried it through an online PDF validator and it threw up lots of problems. I'll try to get hold of a better original. Funny that it opens OK in Mac Preview however...
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
04/09/13 08:30 AM (12 years ago)
Fixed the PDF- opened it in Preview then exported it again. Preview seems to have fixed the issues. dropbox link above should take to the new improved version...
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/09/13 12:23 PM (12 years ago)
Glad it's all cleared up :) Cheers! -- Smug
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
04/09/13 12:24 PM (12 years ago)
Thanks Smug - I'm getting there with a little help from my friends... Chris
 

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.