Android :: Setting Desktop Drawable / Icon

Sep 13, 2010

I've got a line in my manifest that looks like this:
<application android:icon="@drawable/icon" android:label="@string/ app_name" android:debuggable="true">

But I see the default Android icon on the desktop instead of the one in drawable/icon. What else do I need to do?

Android :: Setting Desktop Drawable / Icon


Android :: Setting Desktop Auto Icon Link

Jul 26, 2010

I would like to know if there is an option of setting an auto icon link of my application in the user's desktop, after installing it? The only way I know to do it, is that the user could drag it manually to his desktop from the applications list. Is there any way of doing it automatically for the user(without his touch)?

View 1 Replies View Related

Android :: Setting Button Images In Drawable XML

Mar 25, 2010

I am getting an error from Eclipse when I use this xml file (res / drawable/btnswitch.xml) to designate different button conditions

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/btn_st_rd" />
<!-- pressed --> <item android:state_focused="true"
android:drawable="@drawable/btn_st_gr" /> <!-- focused --> <item android:drawable="@drawable/btn_st_gr" /> <!-- default --> </selector>

I call it in my layout file with this code:

<Button android:id="@+id/startTimer_btn" android:src="@drawable/btnswitch"" android:layout_width="wrap_content" android:layout_height="fill_parent" />
Eclipse says it can't run the configuration because I have errors but does not show any errors. And when I remove the xml code (to go back to my original code which just sets a background image for the Button) it says that now has errors. I have to restart Eclipse to get the original code to run again.

View 5 Replies View Related

Android :: Drawable Or Uri For Notification Icon

Mar 25, 2009

The Notification API allows to set a drawable resource id for the icon of a notification. This drawable resource id is used to put the icon in the status bar and in the expanded window shade.This is a limitation if the icon images are to be represented by a Drawable or from a content provider at runtime. I propose that the Notification class adds fields (or methods) that would allow to set a Drawable or an Uri for the notification icon. This Drawable or Uri would then be used by the system notification service to put the icon in the status bar and in the expanded window shade.

View 2 Replies View Related

Android :: Setting An Image View Resource As Drawable

May 2, 2010

I am trying to create a drawable in code and change the color based on some criteria. When I try and set the Drawable as the background of the ImageView it displays but won't let me set any padding. I realized I need to set the ImageView image via the setImageDrawable() function in order to be able to set the padding. The problem I am running into is that when I set it via the setImageDrawable() function nothing is displayed.

Here is what I have written:
<?xml version="1.0" encoding="utf-8"?>
ImageView icon = (ImageView) row.findViewById(R.id.icon);
ShapeDrawable mDrawable; int x = 0; int y = 0;
int width = 50; int height = 50;
float[] outerR = new float[] { 12, 12, 12, 12, 12, 12, 12, 12 };
mDrawable = new ShapeDrawable(new RoundRectShape(outerR, null, null));
mDrawable.setBounds(x, y+height, x + width, y);
switch(position){ case 0: mDrawable.getPaint().setColor(0xffff0000); //Red break;
case 1: mDrawable.getPaint().setColor(0xffff0000); //Red break;
case 2: mDrawable.getPaint().setColor(0xff00c000); //Green break;
case 3: mDrawable.getPaint().setColor(0xff00c000); //Green break;
case 4: mDrawable.getPaint().setColor(0xff0000ff); //Blue break;
case 5: mDrawable.getPaint().setColor(0xff0000ff); //Blue break;
case 6: mDrawable.getPaint().setColor(0xff696969); //Gray break;
case 7: mDrawable.getPaint().setColor(0xff696969); //Gray break;
case 8: mDrawable.getPaint().setColor(0xffffff00); //Yellow break;
case 9: mDrawable.getPaint().setColor(0xff8b4513); //Brown break;
case 10: mDrawable.getPaint().setColor(0xff8b4513); //Brown break;
case 11: mDrawable.getPaint().setColor(0xff8b4513); //Brown break;
case 12: mDrawable.getPaint().setColor(0xffa020f0); //Purple break;
case 13: mDrawable.getPaint().setColor(0xffff0000); //Red break;
case 14: mDrawable.getPaint().setColor(0xffffd700); //Gold break;
case 15: mDrawable.getPaint().setColor(0xffff6600); //Orange break;
} icon.setImageDrawable(mDrawable); icon.setPadding(5, 5, 5, 5);
This results in a space for the ImageView but no image.

View 1 Replies View Related

Android :: Possible To Set Droid Icon From A Drawable In A Separate Jar?

Mar 20, 2010

I want to set a menu option icon for a drawable that is in another jar inside an xml file. code...

Instead of drawable/my_location have something like com.somelib.R.drawable.someDrawable.

I can set this in onCreateOptionsMenu but was just wondering if it could be done via the xml file.

View 1 Replies View Related

Android :: Icon Of Gmail On The Desktop?

Nov 22, 2010

Juste receive my tablet pc (it's a TechPad) with Android

My question is, there is an Icon of Gmail on the desktop. First time I click on it and setup my gmail account

My question. I have another gmail acount, can I switch from on to the other one, becaus I cannot find where to change the account.

View 6 Replies View Related

Android :: Why Is My Launcher Icon Smaller When Placed On Desktop?

Mar 30, 2010

I have an application built for 1.5 and I am adding higher resolution drawables to support hdpi devices in 1.6 and above.My original application icon is 48x48. I created a second launcher icon that is 72x72 and placed it in a res/drawable-hdpi/ directory.When I install the application on my Nexus One the icon looks good when I view it in the application menu.But when I place it on the desktop it appears small relative to other icons, my guess is I'm seeing the 48x48 version with no scaling.Do I need to do something differently either with my directory structure or my manifest file to get things to display correctly?

View 2 Replies View Related

Android :: How To Hide Application Icon From Desktop?

Jul 6, 2010

I defined an application which is only used from my other application. So I would like to hide the icon of this application, so that the user can't see it on the desktop of his phone (or how do you call the thing where all apps are listed?). My manifest file looks the following way:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="xyz.games.pacman.controller" android:versionCode="1" android:versionName="1.0">
<uses-permission android:name="android.permission.BLUETOOTH"/>
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".PacmanGame" android:label="@string/app_name" android:screenOrientation="portrait"> <intent-filter>
<action android:name="pacman.intent.action.Launch" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter> </activity>
<receiver android:name="xyz.games.pacman.network.MessageListener">
<intent-filter> <action android:name="xyz.games.pacman.controller.BROADCAST" />
</intent-filter> </receiver> </application> <uses-sdk android:minSdkVersion="7" /> </manifest>

I already read this question:
http://stackoverflow.com/questions/1063604/how-to-hide-an-application-icon-in-android-emulator
But if I just remove the line
<category android:name="android.intent.category.DEFAULT" />
in my manifest, the activity isn't working at all (ActivityNotFoundException in the calling activity). I already tried android.intent.category.EMBEDDED but this doesn't work too. In the Internet I found CommonsWare answer http://osdir.com/ml/Android-Developers/2010-06/msg03617.html that it can be done using PackageManager. Unfortunately, it isn't explained how exactly and I couldn't find a solution by browsing the PackageManager API.

View 3 Replies View Related

Android :: Possible To Make Large / Custom Size Icon On Desktop For Droid?

Sep 29, 2009

Is it possible to make large/custom size icon on the desktop for android?

View 1 Replies View Related

General :: Nexus S - Setting Up Remote Desktop Via ADB Without Screen

Jul 22, 2012

Recently I got my Nexus S water damaged and they refused to accept warranty repair due to the water damage they found. Now it works partially, it boots, but the screen image does not show. The touch works, for example I am able to go blindly to the camera and take some photos and I know it works because it makes the shutter sound.

Due to the water damage the phone originally got into download mode only, the internal ROM was wiped out and I had to flash a new ROM and Recovery etc. with Odin. Now the phone is running stock factory image of ICS, and I need to figure out how to flash there something with debugging enabled, because the recovery doesn't work too.

The question is, is there a way to get some kind of remote desktop working over USB without doing anything on the screen? I'd like to be able to set up the phone as an AirPlay receiver at least.

View 1 Replies View Related

HTC Droid Eris :: Setting Up Desktop Computer For Wireless Tethering

Aug 23, 2010

I know that this is sort of stupid thing not to know, but how do you actually set up the link between the Eris and the desktop when using Wireless Tether? I went through the Wireless network Setup and I even went through Network Setup Wizard and Network Connections and still haven't been able to figure out how to actually initiate wireless tetherthing through wi-fi. I'm sure that it's something bonehead that I haven't considered. The only time I've set up networks is with the help of ISP tech support or the ISP setup CD.

View 5 Replies View Related

Android :: Setting An Icon In Application

Mar 11, 2010

I want to write an android application, that should have a homepage or home screen and having many utilities. Each utility should have an icon with the name. So clicking on each utility or the icon, the corresponding next screen should be displayed. It should be similar to the android home screen. Is there any sample application that i can refer? Could anybody please let me know, how to set the icons for the utilities in the homepage of my application.

View 6 Replies View Related

Android :: Setting Notification Icon To Remote URL

Jan 13, 2010

I'm try to use a remote URL (like a favicon) for a Notification Icon, however the Constructor for a Notification only accepts a resource id (which is an int), as opposed to something sensical like a FileInputStream. How can I either, define at runtime a new resource id for a stream source, or download an icon to my resources and then dynamically get a resource id?

View 1 Replies View Related

Android :: Setting Different Icon In Each Item In List

Aug 3, 2010

I am trying to set 6 icon in 6 different items in list but not getting how to do it.

View 3 Replies View Related

Android :: How To Create Menu Item Using Setting Icon?

Jun 8, 2010

Can you please tell me how can I create an android menu item using android setting icon?

View 1 Replies View Related

Android :: High Density Emulator Use Drawable Mdpi Folder Instead Of Drawable Hdpi

Oct 19, 2010

I am running my application in the emulator using a high density skin (like WVGA800). However the ressources in my application are loaded from the drawable- mdpi folder instead of drawable-hdpi ... what else should I do so that android use the correct folder ?

View 4 Replies View Related

HTC Incredible :: Any Way To Disable Location Setting Icon?

Jun 8, 2010

So obviously, I need to enable Location Settings in order to get GPS ability in Google Maps. But I don't see why it needs to have an icon taking up valuable space in the status bar (as a side note, there's an icon to indicate that it's OFF, so you can't NOT have a location setting icon on there). There was no such icon on my Droid.

Is there a way to disable this icon that anyone knows of? With Wifi/3G, the battery meter, alarm clock, the time, and the bars, they take up over half of my status bar. The problem is compounded by the fact that I have a battery app that always displays the exact battery percentage on the left side (another side note; why isn't the exact percentage shown on the default battery icon?

View 4 Replies View Related

HTC EVO 4G :: Privacy Setting - Limit It To Just An Icon In Status Bar Or New Msg

Jul 8, 2010

I noticed that when my phone is locked and I get an sms or gtalk msg. The sender and part of the msg appears before I unlock my phone. Is there a way to limit it to just an Icon in the status bar or "new msg"?

View 1 Replies View Related

HTC Droid Eris :: Headset Icon Setting On Top Of Phone ?

Jul 2, 2010

What is that headset/earphone icon on the top of my phone set for? what is it and how do I change/shut it off?

View 1 Replies View Related

Motorola Droid X :: Restore Nandroid / Then No Setting Icon In App Drawer

Nov 19, 2010

I noticed after doing a restore to Rubix 1.6 when I tried to access Settings they would not show nor was the Setting icon in my app drawer. Is this just a bad restore or is the Nandroid corrupted? I'm running DarkSlide v3 just fine right now just trying to figure out if my RubiX 1.6 nandroid is crap or not.

View 2 Replies View Related

Android :: Setting Widget Icon Image On Widget Load

Oct 16, 2010

I am writing my first application and am trying to get my widget to load a different image when it is added to the home screen based on the state of the notification volume.It is detecting the notification state fine and the proper Toast messages appear when I add the widget, but I'm not getting any icon.I just get an empty button.I'm using the same code to change the icon in my onReceive() method to do other things and that works fine.Is this the proper way to accomplish that?

View 3 Replies View Related

Motorola Droid :: Setting / App To Add "gtalk" Icon To Contact?

Jun 25, 2010

Figured I'd ask one more odd question...

Is there a setting or app that would allow me to add a "gtalk" icon to a contact so that when I select a contact I would get the option to directly "talk/chat" with them via "Gtalk"?

Currently, when I select a contact I get the following icons:
"phone or call", "edit info", and "Instant Message"

I'd like to add to that list the "Gtalk" option.

View 12 Replies View Related

Samsung Fascinate :: Desktop / Sync Fascinate Desktop?

Oct 6, 2010

I cant seem to find the answer anywhere. I just came from a Blackberry and I have always sync'd with my desktop at night, mainly to back up my calendar. But now my calendar is with google sync so I have no need to back up to my computer...that I know of? I also haven't seen any mention of a fascinate desktop? Is there one and should I be syncing up?

View 4 Replies View Related

Android :: How To Display Icon In Signal Icon Area?

Nov 4, 2010

I have following queries. How can I display icon in Signal Area(what it is called?) ? Like default audio player when playback is on and u press HOME or BACK at last screen of audio player, Play icon is displayed in that areA? Kind of minimize application. How to display shortcut of media player? the minimal version of media player in that area

View 2 Replies View Related

General :: Normal Icon Has Been Replaced By Little Droid Icon Labeled Loading

Aug 1, 2012

I have a floder containing Google Earth. The normal icon has been replaced by a little droid icon labeled "loading." When I click it, Google Earth loads.

View 1 Replies View Related

General :: How To Edit Standard Icon Battery To Numeric Icon

Mar 26, 2013

How to edit standard icon battery to numeric icon?

GT-S6102

View 2 Replies View Related

Android :: Res / Drawable / Not In Eclipse?

Aug 25, 2010

I am new application development. I am using Eclipse for making applications. When trying to create new project using Eclipse It is not creating simple res/drawable/ instead its creating three drawable folder. i.e. 1] drawable-hdpi 2] drawable-ldpi, 3]drawable-mdpi What is this all three for? General scenario as per Google it needs res/drawable/ to save icon image. Now on Eclise where to save icons? On all folder or?

View 4 Replies View Related

Android :: Add XML Drawable In Eclipse

Oct 19, 2010

According to official documentation Google says that "Once you've defined your Drawable in XML, save the file in the res/drawable/ directory of your project." is the way to add a XML drawable to the project. But when I created the project ADT created 3 different drawable folders for mdpi, hdpi, and ldpi. So when I wanted to create my XML drawable, I right click on my drawable-hdpi folder and select "Add new Android XML file", and there I have to select what kind of XML file I want to create, but there isn't "drawable" to select. If I create new text file and save it as button_drawable.xml Eclipse says that there is an Error in the file and that It can't build my project.

View 3 Replies View Related

Android :: Set Drawable Without Using Lot Of Images?

Oct 3, 2010

When i have an ImageButton and a drawable and i want to do something like the Drawer or Twitter where when i press the button and the corner of the image is highlighted over the edge, in drawer its yellow, in twitter its white. Like the one below.How do i set my drawable without using a lot of images?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved