[Q] Application icons - Android Software Development

Just started teaching myself to program Android apps. I have a book called "Android Apps for Absolute Beginners" by Wallace Jackson. Im in the process of making a hello world app and the instructions for making an icon for my app is a bit convoluted.
I have 3 icons, 72x72, 48x48, and 32x32. I have put them in /res/drawable-hdpi/icon.png, /drawable-mdpi/icon.png, /drawable-ldpi/icon.png, respectively.
The app runs in the emulator, but when i goto the app drawer it shows a default icon instead of mine.
Any help would be great. As a side note, is 72x72/hdpi what would be used for qHD and 1280x800 tablet screens?

Still cant figure this out, if anyone could help itd be great. Thanks

Your Manifest file must point to the name of your icon in the drawable folder, instead of the default icon. So do that where it says android:icon="@drawable/icon"
Sent from my Nexus S using XDA Premium App

Not sure how you are having problems here.... If you have not edited the manifest file it will look for the icon.png in whichever drawable folder the phone is using. Eg.. HTC Desire will read from drawable-hdpi.
This is a good resource for creating icons btw...
http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html
One thing to note is that the emulator (and sometimes real devices) are bad at refreshing icons. Try and uninstall your app before running it again from Eclipse.
Tony

Thx guys. My manifest and folders were good, but I was using a 1.5 AVD. As soon as I changed it to 2.3 it worked. I'll have to test later to find out how to get it to work on older versions of Android
Sent from my PG86100 using XDA App

Related

App Launcher

I have done some searching and cannot seem to find anything, please feel free to sarcastically point me in correct direction if i am wrong.
are there any favourite app launchers, e.g. a 1x1 program/widget than when clicked opened your 4, 8, 16 best apps (customizable) thus saving white space without having to scroll through all prorams to get to U etc?
Many thanks in anticipation
Jody
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
There are a few... I use Apps Organizer to arrange under manual icons and labels. Clicked once it opens a layer on the same screen with all the chosen app shortcuts in there. The most major limitation being that it cannot arrange widgets into such "folders".
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
You could just create a folder and drag app icons into it?
or you could just do that, sorry getting to grips with this phone still.
creating a folder works surprisingly well, many thanks
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
Another option
Another option is Ultimate Faves which lets you select favourite apps or contacts and scroll between the two.

Movie icon - like Avatar

I am trying to add a link (icon) to a movie (Transformers 2) to my home screen just like the Avatar movie has. I have decompiled the apk for avatar, replaced the icon with one of my own and changed all references to avatar within the files to reflect Transformers 2. I have also changes the path within the files to point to where the new movie is. When I go to compile it, everything goes well. When I go to install it on my phone, it gives me an error that it was not installed. Can anyone look at this and give me a pointer?
I have the icon labeled the same as the avatar logo, just because I didn't want to rename it within the file as I kept getting compiling errors when I did change it.
Just download a file explorer program long press on the home screen click shortcuts go to your file explorer and find transformers. That's what I did with my leftover card from the hd2
Sent from my SGH-T959 using XDA App
Not sure what you're getting at. If I choose my file manager program all it does is link to it. I want to be able to have an icon on my screen that launches the file itself, just like it does avatar. Thanks for the reply though.
The logcat output should show the real error message, use adb logcat to view it. Did you resign the apk?
Sent from my SGH-T959 using XDA App
Yes, I resigned it without error. Where can I find the logcat after a failed install?
Sent from my SGH-T959 using XDA App
kinda off topic, but where is the avatar movie stored? i havnt been able to find it on the sdcard?
Its on the external sdcard in a folder called movie
Sent from my SGH-T959 using XDA App
If you have astro installed. You can go to the widget menu, click shortcut, click astro, click the movie. That will add a shortcut directly to the movie on your desktop.
Sent from my SGH-T959 using XDA App
Awesome, thanks youneek. Now if there is a way to change the icon. hmmmmm
eweo911 said:
Its on the external sdcard in a folder called movie
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
ooh astro dosnt pick it up as a movie, so i alwlays looked over it >.<
thanks

Wallpaper location?

I was having trouble finding decent (HD) or there abouts wallpapers for the d2. Im about to sbf and cant seem to locate my current wallpaper again on the web, when I got it, I just long touched on the screen and chose save as wallpaper. Trying to backup all my stuff and for the life of me I cant find this dang file on my phone/sd card. Anyone know where its located? Thanks.
Sent from my DROID2 using XDA App
I'm curious where/how the wallpapers are stored as well. Just for kicks, I went to Google Images, searched dragon, and pressed and held a file named red-dragon.jpg, then selected Set as Wallpaper. Using Root Explorer, I went through every folder on my phone, excluding the ~/sdcard, searching for "red-dragon," ".jpg," and "dragon.jpg." None of which gave me any results.
So, sorry to say, but I think the D2 really likes to hide your wallpaper. :/
Did you know that you can actually google how to boil water? In any case, google is your best friend. Rarely picky and almost never down...anyways, back to topic:
I recommend googling: current wallpaper location android. The first hit helped me a little bit into it. It seems there is this folder called data that you can only access once you rooted your device. Since Im in no need to do so and myself new to android I leave you to do whatever you want with this information.
Im also sure that you will need a root file explorer...only guesses though.
Sent from my MotoA953 using XDA App
oTToToTenTanz said:
Did you know that you can actually google how to boil water? In any case, google is your best friend. Rarely picky and almost never down...anyways, back to topic:
I recommend googling: current wallpaper location android. The first hit helped me a little bit into it. It seems there is this folder called data that you can only access once you rooted your device. Since Im in no need to do so and myself new to android I leave you to do whatever you want with this information.
Im also sure that you will need a root file explorer...only guesses though.
Sent from my MotoA953 using XDA App
Click to expand...
Click to collapse
Maybe you were too busy being smug to read my post, so I'll just give you the tl:dr version.
I searched through the entire /data folder with Root Explorer for ".jpg" and found nothing when I was using a "red-dragon.jpg" as my background.
Thanks for your mastery of searching on Google though.
I am not rooted but whenever I save wallpapers from the internet on my phone they end up in a folder titled downloads..that shows up in my gallery and when I look at mt sd card..check to cee if you have a folder titled that as well
Sent from my DROID2 using Tapatalk
I think the system puts things like that in a database file. I have my walpaper of a picture I took but it is no where on the phone. It is defined in an xml file but where actually stored i think it is in a DB file. Sorry I can not make the "thumb keyboard" do commas.
Sent from my DROID2 using XDA App
chrstdvd said:
I think the system puts things like that in a database file. I have my walpaper of a picture I took but it is no where on the phone. It is defined in an xml file but where actually stored i think it is in a DB file. Sorry I can not make the "thumb keyboard" do commas.
Sent from my DROID2 using XDA App
Click to expand...
Click to collapse
I'm going to investigate this hunch further. I'll search the /system folder for all .xml files or database files. I can't say I'm an expert on the matter though, so... No promises on results.
Answer
allyouhave said:
Maybe you were too busy being smug to read my post, so I'll just give you the tl:dr version.
I searched through the entire /data folder with Root Explorer for ".jpg" and found nothing when I was using a "red-dragon.jpg" as my background.
Thanks for your mastery of searching on Google though.
Click to expand...
Click to collapse
I don't know if you are still looking for this, but if others stumble on this like I did, here's the answer. in the /data/data/com.android.settings/files/ folder there is a file called wallpaper (no extensions). it is actually a jpg file (if you copy it somewhere else and add a .jpg at the end you'll be able to see it)
@tsachi Here is my question: I would like all these lovely wallpapers I downloaded to show up in the dialog when I press Menu...wallpaper then hit the wallpaper button. The same default papers are always there and I would like to move my downloaded wallpapers to where ever that is.
tsachi said:
I don't know if you are still looking for this, but if others stumble on this like I did, here's the answer. in the /data/data/com.android.settings/files/ folder there is a file called wallpaper (no extensions). it is actually a jpg file (if you copy it somewhere else and add a .jpg at the end you'll be able to see it)
Click to expand...
Click to collapse
Thanks tsachi. I was able to confirm this. I couldn't see the contents of /data with ES File Explorer, but I was able to do this through adb:
Code:
su
cd /data/data/com.android.settings/files/
cp wallpaper /mnt/sdcard/Pictures/wallpaper/wallpaper.jpg
exit
exit
Then I was able to look at it in any image viewer.
Not directly related, but I used adbWireless so that I wouldn't need to connect the usb cable and I'm using MultiPicture Live Wallpaper as my wallpaper switcher.
Samsung Galaxy Tab 10.1 (3G / GT-P7500)
wall paper location
i got mine at
system\framework\framework-res\res\drawable-hdpi
Hey there,
I wanted to set my Wallpaper manually to avoid cropping when choosing a file in the gallery.
On my Nexus 10 running Android 4.2.1 the wallpaper is found at:
"/data/system/users/0/wallpaper"
The file has no ending but is a jpg file (as sad by others).
If you want to exchange the file with yours remember to set the right permissions.
I dont know exactly how they have to be, but if you give all users at least read access it should work.
After a reboot the new Wallpaper should be set.
My wallpaper now has a resolution of 3966x2560 and there are no black bars anywhere. The system seem so crop it on the fly.
Confirmed on JB 4.2, the location is
/data/system/users/0/wallpaper
Copy wallaper to somewhere else and change its extension to wallpaper.jpg and you are done.
oTToToTenTanz said:
Did you know that you can actually google how to boil water? In any case, google is your best friend. Rarely picky and almost never down...anyways, back to topic:
I recommend googling: current wallpaper location android. The first hit helped me a little bit into it. It seems there is this folder called data that you can only access once you rooted your device. Since Im in no need to do so and myself new to android I leave you to do whatever you want with this information.
Im also sure that you will need a root file explorer...only guesses though.
Sent from my MotoA953 using XDA App
Click to expand...
Click to collapse
i actually found this THREAD using google , so that was a bit harsh
Hello
Sent from my LG-P760 using XDA Premium 4 mobile app
Thanks, I found it and replaced it there. Anyone got any idea where to find the lockscreen image so I can do the same?

Can I use tabs in more than 1 activity?

I'm making an app that uses tabs in my main activity. I want to be able to open another activity which will also use tabs. Everything I've could think of to try results in my app crashing when I open the second activity.
Is this possible to do? If so can someone help me out?
Sent from my Moto X using XDA Free mobile app
jeb192004 said:
I'm making an app that uses tabs in my main activity. I want to be able to open another activity which will also use tabs. Everything I've could think of to try results in my app crashing when I open the second activity.
Is this possible to do? If so can someone help me out?
Sent from my Moto X using XDA Free mobile app
Click to expand...
Click to collapse
Log? Activity code? Layouts? Manifest file?
Usually the most common reason this happening is because people forget to add the new activity to the AndroidManifest.xml file, if you've already done that then we need more information than you've currently given.
Sent from my HTC One using Tapatalk
It is definitely possible, can you show us where it errors out (I.e. logcat)
Well. I just discovered viewpager and I was able to get that to work how I wanted to use the tabs. Kinda wish I would've found this before asking the question. I have the horizontal scrolling working to swipe between pages. Can you guys help me get the vertical scroll view to work so I can view the rest of the text on each page?
Edit: never mind. Just got the vertical scrolling to work.
Sent from my Moto X using XDA Free mobile app
Code:
<ScrollView >
<LinearLayout> <!--or whatever layout you choose-->
</LinearLayout>
</ScrollView>

[Q] (Help) Android Launcher Code Specifying

I'm trying to make my own icon pack, and I don't know much about xml coding. I've been trying to learn through other people's templates, but I was hoping someone could help explain to me how to target specific launchers. What about the xml coding targets LGHome launcher? I was hoping to make my start there.
-I fully understand DPI, and the sizes of the icons required to work in all forms (mdpi, hdpi, xhdpi, xxhdpi, and xxxhdpi) I also understand that the Google Play icon must be at least 512px x 512px
-I understand file formatting, though I DO NOT KNOW what format would be best in this case to use (I think bitmaps were recommended strongly)
-I have the latest version of Android Studio and Android SDK Standalone
I will be experimenting with codes and icons, but I am unsure of how to test them on one of my own Android Devices (LG G2 & Nexus 10)
Would I upload the file directly to my device once I pack it? How do I make my project into an APK
To target other launchers you need to find package id of the particular launcher and add the same to main activity of your app.
You need to export the file using adt or to test ypu can also run the app in adt and install it in your phone.
Do some google you will understand or co relate what i said
Sent from my LG-D802 using XDA Free mobile app
Spoonfeed required, I'm totally new at this. Where can I find the package id of each individual launcher? I've been Googling how to do this, but it isn't exactly a popular topic, which is why I came here to ask for help.
I will look into everything you said though, thank you.
karmaxdw said:
Spoonfeed required, I'm totally new at this. Where can I find the package id of each individual launcher? I've been Googling how to do this, but it isn't exactly a popular topic, which is why I came here to ask for help.
I will look into everything you said though, thank you.
Click to expand...
Click to collapse
Install apex launcher and tap for 3 sec on the home screen free area. This will open menu and show u shortcut option slext the same and then select activity.
Now scroll down until u find the desired launcher and it will show u the package id.
Ps you need to have launcher installed first to see the package id.
Alternatively, open playstore in pc and search the app you want to see the package id. Open its page and on top it will show you the package id.
Sent from my LG-D802 using XDA Free mobile app
vishal11in said:
Install apex launcher and tap for 3 sec on the home screen free area. This will open menu and show u shortcut option slext the same and then select activity.
Now scroll down until u find the desired launcher and it will show u the package id.
Ps you need to have launcher installed first to see the package id.
Alternatively, open playstore in pc and search the app you want to see the package id. Open its page and on top it will show you the package id.
Sent from my LG-D802 using XDA Free mobile app
Click to expand...
Click to collapse
Thank you, that was very helpful. I'll reply here if I need any more assistance.
karmaxdw said:
Thank you, that was very helpful. I'll reply here if I need any more assistance.
Click to expand...
Click to collapse
No problem let me know
Btw did you try my new lg home theme.
Sent from my LG-D802 using XDA Free mobile app
I may have, which was yours?
Also, I opened the Play Store page for many of the launchers, yet I can't seem to find the ID
Sent from my LG-LS980 using XDA Free mobile app

Categories

Resources