Problem with icon from Eclipse (Linux) - G1 Q&A, Help & Troubleshooting

So I'm starting to get to know the ropes with some basic Android development in Eclipse. Most things are working fine, and I recently built my first signed packages and installed them on my G1 and my wife's milestone. However, I've hit a snag trying to provide custom icons for my apps.
In the eclipse IDE, there are three folders in res/ named drawable-hdpi, drawable-mdpi and drawable-ldpi. In each one, there's a icon.png of the default Android app icon, in 72x72, 48x48 and 36x36 pixels respectively.
I've created a (pretty crumby) icon for my app, and I have resized it to those three sizes and replaced the original icon.png files in each directory.
But when I build the .apk, it comes with the default icon packaged. What am I missing here?

Related

Framework-res in Eclair roms??

My apologies if this is the wrong section/repost
There are no pngs in framework-res/drawable only xml files
Cant drag and drop my system pngs(battery,signal,wifi etc) of choice no more
I want my themed donut system images on my n1 simply put
Can someone recommend a xml editor/tutorial
Or Does metamorph do these edits (black status bar, battery) in eclair?...im still old school still into update zips/signing
take out the framework-res.apk/res/drawable and framework-res.apk/res/drawable-mdpi folders. There are like 3 or 4 images in the drawable folder. The rest of your images are in the drawable-mdpi folder. You will have to go through and look at certain images for the status bar and such because 2.0+ adds some new .9.png's where it used to be just a .png. statusbar_background.png becomes statusbar_background.9.png for example. just add the .9 to it and you should be good if your image isn't very "complex" looking.
some of the other ones that become .9.png's that i can recall off the top of my head are the title_bar images.
Appreciate that....
Was looking in the wrong drawables
Problem solved!

[Theme][q]Miui - a black and green beta d1 theme

How does one go about changing the text of certain things like the area in the dropdown notification and incorporating it into the theme?
Taking an existing theme and editing the files was cake.
However...
I ran into issues when i tried to add png icons the theme did not come with.
saved as the official name of the apk's icon.... com.xxxx.xxxx-x.png and placed it in the icons folder of the zipped theme.
wouldn't even display the theme in theme manager until i deleted any extra files I tried to add.
I made a theme. Open for criticism. It's my first time though, be gentle ....
For D1
forums.miui-dev.com/showthread.php?1224-THEME-D1-Black-and-Green&p=12203#post12203
DixieNormus said:
How does one go about changing the text of certain things like the area in the dropdown notification and incorporating it into the theme?
Taking an existing theme and editing the files was cake.
However...
I ran into issues when i tried to add png icons the theme did not come with.
saved as the official name of the apk's icon.... com.xxxx.xxxx-x.png and placed it in the icons folder of the zipped theme.
wouldn't even display the theme in theme manager until i deleted any extra files I tried to add.
I made a theme. Open for criticism. It's my first time though, be gentle ....
For D1
forums.miui-dev.com/showthread.php?1224-THEME-D1-Black-and-Green&p=12203#post12203
Click to expand...
Click to collapse
You have to create a folder called icon. Your other icons for non stock programs go there.
your folders from (lets call it )the root of your zip file should read
com.android.launcher
com.android.mms (if you are changing the messaging theme)
framework
icon
preview
descriptions.xml
Also join miui-dev and click on themes, there is a guide there
woody_2k said:
You have to create a folder called icon. Your other icons for non stock programs go there.
your folders from (lets call it )the root of your zip file should read
com.android.launcher
com.android.mms (if you are changing the messaging theme)
framework
icon
preview
descriptions.xml
Also join miui-dev and click on themes, there is a guide there
Click to expand...
Click to collapse
The pre-existing theme already had an icon folder, to which i did place the files into, and labeled correctly. just wouldn't allow the theme to display afterwards

[NS4G] Location of 4G icons?

Hi all,
I'm new to themes and am trying to figure out where the various 4G connection icons are located so I can change them from green to white.
Running the GreybreadX theme, which is great, but the 4G icon is still green.
I was able to locate the 3-bar and disconnected icons within framework-res.apk but not sure where to look for the 2-bar and 1-bar icons.
Any suggestions on where to check?
You should find them in /system/app/SystemUI.apk
inside there: SystemUI.apk/res/drawable-hdpi/
Then look for pngs beginning with stat_sys_data_wimax
..all sorts of notification bar (etc) goodies in there. If you're decompiling and/or modding xml/smali though, I'd read up on it first within these forums.
Ok so I finally got around to editing the 4G icons to be white/grey instead of green/grey, removed the originals from SystemUI.apk and placed mine in there, and placed the edited SystemUI.apk in /system/app/ (made backups of everything).
Rebooted and I still have green/grey 4G icons... what am I missing here?
Edited png files attached.
I don't have it in front of me, but check the framework-res.apk in the drawable hdpi folder. There are a couple sets of 4G icons- once its activated, and then to display your signal.
Also, btw, i usually just drag the edited icons over into the apk (in 7zip) and make sure it asks to replace the files... just to make sure the file names are the same.
. . NS4G . . CM7 . .
Ended up going back to the stock systemui.apk and using Ninjamorph to overwrite the original images. Worked perfectly!
https://market.android.com/details?id=stericson.ninjamorph.free

Eclipse help for theme!

So I am editing a go launcher template theme and i saw there were some parts i wanted to change that wasn't included in the template...for example the little icons ontop of the apps when you want to delete (kill.png kill_light.png etc...) I added this code
<AppIcon text_color="#FFFFFFFF" text_bg_color="#ff3f3f3f" delete_app="kill" delete_app_highlight="kill_light" new_app_icon="new_install_app"
update_icon="appfunc_app_update" locker_icon="promanage_lock_icon" close_app_icon="promanage_close_normal" close_app_light="promanage_close_light"/>
with png's with the right names in the drawable hdpi folder but they don't show up when i test it out...am i missing something? I was able change the media management icons in the app drawer by adding this
<SwitchButtonBean button_galleryicon="appfunc_mediamanagement_switch_button_gallery" button_gallerylighticon="appfunc_mediamanagement_switch_button_gallery_light"
button_musicicon="appfunc_mediamanagement_switch_button_music" button_musiclighticon="appfunc_mediamanagement_switch_button_music_light"
button_videoicon="appfunc_mediamanagement_switch_button_video" button_videolighticon="appfunc_mediamanagement_switch_button_video_light"
button_appicon="appfunc_mediamanagement_switch_button_app" button_appiconlight="appfunc_mediamanagement_switch_button_app_light"/>
but it didn't work for the other part (the smaller versions of those same icons in the media management menu)
what am i missing??
oh and i added the code to app_func_theme.xml if you were wondering
anyone?
okay so im inching closer to the solution....im guessing i have to edit the drawable in the r.java? Is this possible because i read somewhere everything in the gen folder is generated and not to edit it..but its the only place i can find that explains why the media management code i added work and the small icon code (kill, kill_light) didnt....i can see the icon references java file...if i do edit this java file or the public.xml (it appears to be linked to this part of the r.java file) where do i get this 10 digit code to put after the equal sign.

[Icon pack][Material][Flat][OpenSource] Ycons 1.0

Hey everyone,
I've decided to share my personal icon pack. I've personally designed each icon using Inkscape and built the apk.
I've made it because I was annoyed by other icon packs always lacking some icons that I wanted.
Many icons (like those of google apps) look like the originals, just without the shadows.
My icon pack doesn't have many icons (about 100). The interesting thing is that I'm sharing also the source code to build the .apk (using Eclipse) and the .svg files to modify the existing icons/create new ones (using Inkscape), so that you can create your own personal icon pack.
The icons are for FHD screens, so 192x192. You can make them larger by exporting again the .svg files.
Atteched below you can file the apk file, the .zip source and some examples.
You can reuse and modify this app, just give me credit.
No requests please: I uploaded the source of the apk file and the icon svg files. If you want to add an icon just do it on your own.
Suggestion: to add a new icon you have to modify appfilter.xml, drawable.xml, iconpack.xml, add the icon in the res folder and then compile.
enryea123 said:
Hey everyone,
I've decided to share my personal icon pack. I've personally designed each icon using Inkscape and built the apk.
I've made it because I was annoyed by other icon packs always lacking some icons that I wanted.
Many icons (like those of google apps) look like the originals, just without the shadows.
My icon pack doesn't have many icons (about 100). The interesting thing is that I'm sharing also the source code to build the .apk (using Eclipse) and the .svg files to modify the existing icons/create new ones (using Inkscape), so that you can create your own personal icon pack.
The icons are for FHD screens, so 192x192. You can make them larger by exporting again the .svg files.
Atteched below you can file the apk file, the .zip source and some examples.
You can reuse and modify this app, just give me credit.
No requests please:I uploaded the source of the apk file and the icon svg files. If you want to add an icon just do it on your own.
Suggestion: to add a new icon you have to modify appfilter.xml, drawable.xml, iconpack.xml, add the icon in the res folder and then compile.
Click to expand...
Click to collapse
Thanks for this Open Source Project!
A few questions
Thanks a lot for this project. I could finally fulfill my dream of making my own icon pack.
I have a few questions, though. I don't understand what a few files are foo, in the project. It'd be great if you could explain thier function. The list of the files:
Values:
res/values/bools.xml [I see those are some booleans in there, but, when are they ever used?]
res/values/colors.xml [Those state the theme colours, but, where's the style used?]
res/values/dimens [No idea what this folder does]
res/values/styles.xml [Its stating the themes of the app, but, again, are those used anywhere?]
Assets:
assets/app_func_theme.xml [What does this file do?]
assets/desk.xml [What does this file do?]
assets/themecfg.xml [What does this file do?]
Drawable:
res/drawable/grid_selector.xml [I guess, it determines how the list of icons is presented, but, it doesn't work in all launchers, right? I mean, in Nova launcher, I didn't get any grid, I got one in ADW though.]
res/drawable/square_over.xml [It's used in the grid_selector.xml file, but, how's it affecting the app in any way?]
I don't intend to be mean or offensive, but, I am a very newbie Android developer and thus, probably didn't understand what these files are doing. It'd be great if you can clear this out for me.
Once again, thanks a lot for the source code!

Categories

Resources