android-widget

how to troubleshoot a device I don't have?

I've created a nice app widget that I could not find on the market, and even took the time to publish it (more details at http://code.google.com/p/frequentcontacts/ ). I've been contacted by people having problems with this widget, and I don't know what to do about them. It work great on the emulator, and on my Nexus One, but one user re...

Where can i found Power Control Widget source android?

![alt text][1]Hi, Where can i found below link 07-26 11:32:31.865: VERBOSE/MAKIService(1081): Received Broadcast:android.intent.action.START_TETHER 07-26 11:32:31.865: VERBOSE/MAKIService(1081): DataString:null 07-26 11:32:31.865: VERBOSE/MAKIService(1081): toString:Intent { act=android.intent.action.START_TETHER } ...

what is the difference between live folder and shortcuts??

Hi, I want to know what is the main difference between live folder and a shortcuts?? ...

How to create a list that can be expanded in Android

Hi All, I wanted to develop a list view which should initially show only one element and on some user action, it should expand to show all the items present in the list. Is there any widget that is available in Android that can do this? If there is none, give me ideas as to how to do it. Also any sample application that has this feature...

Android homescreen widget animations

I'm looking into creating a widget that supports animation, ideally via the android.view.animation framework, otherwise by setting properties on the remote views in code triggered from a background service. Does anyone have any experience with either of these approaches, and is what I'm trying doable, or am I heading up a blind alley? ...

Placing a TextView before EditText element in Android layout XML causes EditText not to show

As the title says, every time I put a TextView before an EditText element in a LinearLayout, the EditText does not show. When I don't, it does. I've narrowed the problem down to the TextView's layout_width attribute. If I give it "wrap_content", it works, but doesn't "block" down, and it appears on the same line as the EditText. <?xml...

only icon on tabs

Hi all I'm wondering how to suppress the label on the tabs I want only an icon intent = new Intent().setClass(this, Test.class); spec = tabHost.newTabSpec("test").setIndicator("test", res.getDrawable(R.drawable.ic_tab_test)) .setContent(intent); tabHost.addTab(spec); I have an xml fi...

Android widget design questions

I'm creating a widget for the Android platform., however I need some advice on certain aspects. 1) If I have a 3x3 widget, what is the actual dip/dp for this layout? 2) I'm creating a basic calculator layout inside the widget, how can I better layout the elements? Linear/Absolute/Relative? 3) Depending on the layout above, are there any...

How can I know what functions to call when programming Android features?

Basically, I don't know what functions & XML attributes to provide when programming a specific Android feature; eg, Android Search Widget with Edittext in the middle, magnifier glass on the right, and a custom icon on the left. From where I can find out what methods, parameters & XML attributes to call when doing a specific Android task...

How to put multiple widget sizes in one apk?

What I'm trying to do is have a clock widget of different sizes (i.e. 2x2, 3x3, 4x4 etc) in one apk and a configuration activity to be able to select which size to add. From what i've learned from documentation: Widget size is specified in <appwidget-provider> tag in respective xml file Also in that file I set up the configuration act...

How do I get the android icons to change state (highlights)?

I am using the Android SDK icon-button for refresh (ic_menu_refresh) in a widget and I need to change the selection state when it is pressed. How is this done? Do I define an XML for the button? ...

Post Intent action from widget provider

I want to build a search widget. Clicking on the widget should open search activity inside my app. Here is the code from widget provider's onUpdate(). public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { /* as their may be many widget instances for this widget. we get an array. */ for(i...

My Android widget is killed, "No longer want bellander.andro...."

I'm writing a widget that pulls data from a web page every 5 minutes, using a timer. This works fine for an hour or two, then the process is killed. I/ActivityManager(81): No longer want bellander.android.widget (pid 1118): hidden #16 and the system kills of the process. How do I prevent this? Is the use of a timer wrong? ...

Android Webview - how to capture a word being clicked?

I am loading a webpage in WebView and am required to recognize a word (any word from the page, not just URL) being clicked by user. Is it possible? how? Thanks a lot. ...

android with widget

Hi Can anybody tell what is the use of android widget in android Thanks ...

Change Android widget size on upgrade

Hi, I have written a widget with size 74x74 in version 1. In version 2 I want to change the size to 148x74. I want this to happen during upgrade, is this possible? or does the user have to remove and add the widget again? ...

Android anim problem(translate animation)

Hi all, I m really stuck in the animation part of my project. i want to do something like this: i have one image. and i want to translate it to the new place through translate animation. it also animates. here is code for the same. public void animationtshowcard1() { Animation a= new TranslateAnimation(2,-50,2,25); a....

How to display current playing song info from URL

Hi, Im getting radio stations list from URL and displaying them in a listview using list adapter. For each item, Im showing radio station name, song info here im facing a problem. I need to show current playing song info. bt im not getting current playing song info. So, can any one help me hw i can solve this issue. Thanks ...

android widget question

can anybody give example how to implement click event in appwidget in android ? Thanks ...

Android appwidget not showing

Looked like my #$#%$%#$ the receiver was not i application element in manifest Hi I just created the helloworld appwidget to see how its works. i followed the dev example on adroid dev site. But for some reason the widget does not want to show in the widget list. AndroidManifest.xml <receiver android:name="VoiceRIAWidget" androi...