android-widget

SurfaceView and Menu created

Hello~ It seems that android Menu doesn't work on SurfaceView. Menu cannot render when the view is the SurfaceView. Anybody have the same problems ? Thank you~~ ...

Checkbox Context Menu

I have a ListView and an adapter in whick I create a linear layout and return as my created element. When this linear layout is just TextViews, the context menu appears normally, When I add a checkbox to the layout, the context menu isn't shown. Is there any solution to this problem ? ...

android gallery widget infinite scroll

hello, does anobody know how to make a gallery using the gallery widget instead of having edges let you cycle indefinitly. ...

Problems using Custom Layout in XML

I've created a new GridLayout class that I want to use in an XML File. The class is in another project. I've created the attrs.xml file in the other project with my properties but when the constructor gets called with the AttributeSet, none of the values are set. In my xml for my screen layout, I refer to the layout with the following: x...

Button click does not start Service in Android App Widget

I'm having trouble starting a Service to update an AppWidget that I'm creating as an exercise. I'm trying to get the latitude and longitude of spoofed location data from DDMS to display in the widget. The widget uses a service to update the TextView, which may be slightly overkill, but I wanted to follow the template that seems to be co...

2 fundamental questions for the Androgurus ...Can someone guide me

I have'nt plunged into Android Development as yet though Java Classes C++ all that is not new to me. Here are the questions folks. Appreciated any help on these : - If I need to develop test and deploy Android Apps do I NEED AN ANDROID Hardware device or is there a software Android Simulator like VMWARE or Virtual PC , where I can emu...

what EVENT LISTENER should i use for my android app

In my app, when one particular image button is clicked and held, i must be able to calculate the time for which the image button was held pressed. Can any one help me by giving some simple guidance or sample code. i am really stuck up here. Is there any specific event listener for this particular requirement. I am writing this app specif...

On Android, click to expand list -and- click on a button?

I have just started my career as an android programmer, and am currently relying heavily on the sample code and api examples. I have been working with this api example, to produce an expandable list of items (note this example does not use the ExpadableListView). In playing with the example, I tried to add another widget that would beco...

Google MapView doesn't work after signed the app.

Hi guys, I am facing to android application signing problem. My application contains Google MapView. When I compile the app and run on the emulator, MapView works fine. But signed the app, MapView doesn't work. I've get Google Map API. This works on the simulator. I could sign the app once 2 months ago. Then I've upgraded the app. Now...

Configure ambient media player source code in my eclipse?

Hi Im trying to see working of ambient media player. I checkout from url https://ambientmp.svn.sourceforge.net/svnroot/ambientmp/Ambient/trunk to my eclipse work space. when build the app it is showing errors as Unbound classpath variable: 'M2_REPO/hotsax/hotsax/0.1/hotsax-0.1.jar' in project 'ambient' Unbound classpath variable: 'M...

android : clientlogin logout functionality

hi , i am using clientlogin api for google finance application . now i need ti implement the logout functionality. is there any api for logout .. how to implement it? or we simply need to invalidate token by setting it to null? thanks ...

changing image on listview at runtime in android

Hi, I am using a LinearLayout to display some Text and image. I have the images at drawable/ and i am implimenting this with ListActivity with some onListItemClick functionality. now i wants to change the image for the rows which are processed by onclick functionality to show the status as processed. can some one help me in this issue to...

Example of using Android tabs with Views instead of Activities?

The Android Developers TabWidget tutorial says the following: "You can implement your tab content in one of two ways: use the tabs to swap Views within the same Activity, or use the tabs to change between entirely separate activities." The tutorial goes on to demonstrate how you can use tabs with separate Activities. I have been unabl...

Customizing TabWidget in SDK 1.5, API 3

I'm aware that API 3 doesn't allow a view to be set for a tab, but I still need to modify the TextView displayed as the indicator. I'd also like to change the Drawable for the tab, but I don't see a way to do it without a custom tab view as allowed in 1.6, API 4. Working with this generic example below, is there way to retrieve the Tex...

Android design issue

I'm facing a problem regarding to design issue, to understand problem i uploaded a screen shot i checked in emulator, it works well but when i try the same application in HTC Sprint mobile which screen size is 4.3" and resolution is 480*800(HVGA) but there did not display appropriate (check attachment for screen shot). ...

Scrolling list in Android home screen widget

Hi folks, I am trying to teach myself the basics of Android dev. At the moment I am experimenting with home screen widgets. I would like to create a simple widget that lists all my bookmarks. Somewhere in my googling I read that ListView is not usable in a widget. What's the best way to display a scrolling list in a widget? An example w...

How to Use Multi Spinner to Store Each Table from Database

Dear Sir, I'm having problem in the method how to add each of the database table to many spinners. The data from one table must use one spinner to store. In my form has 3 spinner which require data from 3 table in database. Please show me some sample or the familiar one, because I have just started in this program. Thank You in Advance!...

how to perform screen orientation in android mobile application.

hi in my android application,iam presnting add's from admob website ,then add's are displaying in my application,but my problem is if we make the application from portriat to landscape the add's control is not strecting and it changing its position ...

How to embed a View (with Buttons, etc.) inside an EditText?

I'm trying to figure out how to embed things, other than Drawables, inside an EditText widget. Specifically the example I'm thinking of is from the Google Buzz widget: screenshot (no inline image, sorry, I'm a newb) It appears to the casual observer that there's an entire layout object pinned to the bottom of the EditText, containing a...

Android RadioButton like Behaviour

Greetings, I'm trying to create a single-choice android control, in a horizontal layout, by making use of the RadioGroup behaviour. I can assign the drawable just fine, but i would like to position the label of each RadioButton inside the drawable, is this possible using the standard APIs? <RadioGroup android:id="@+id/switchcontai...