android

Problem setting ListView selector color when pressed

I have the following ListView, and have followed the answer from this SO Question w/ no luck: http://stackoverflow.com/questions/2038040/android-listview-selector-color <ListView android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" and...

Ways To Show Info Related To ListActivity Items (Toast, New Page, etc)

Hi, I am working on learning Android programming. I am attempting to build an app that shows a list of items, and when the user clicks on an item, it will display an image of that item, as well as information about it. I'm not sure the best way to present this information. Would using the Toast widget be best? Or TextView? Or, is there ...

Designing an Apple Ipod scrollwheel on Android?

I've seen questions like this asked before on here, but for my next app creation i would like to bring back the Apple click wheel used for scrolling on the old ipods and I've seen it in Iron Man 2 when Tony Stark used his futuristic phone and a touch screen click wheel on his smartphone. There must be an easy way to copy the Ipod click w...

Ideas for location based medical service with android

Hello all, I have developed some simple apps on android like pushing notifications and use of Bluetooth to approximately find the location of the device.I have been toying with idea of providing location based medical services kind of a app for android which can be used in hospitals by doctors,nurses or maybe patients. But I am not abl...

Android 1.6 SDK WebView Issue

I've narrowed down the problem to WebView; my application force closes every time. If I take out the WebView and put in a color change button or something, the case switching works and the application loads. I'm fairly new to the plaform, but I'm (mostly) copying directly from examples here for WebViews. Application.java package com....

[Android] Is there a way to disable all the items in a specific layout programmaticaly?

Hi, I have A game to which I recently added a global high score functionality which made a lot of people upset so I want to add the option of disabling it. What I did was this: in my settings activity view, I added the following: <!-- High Score Tracking --> <LinearLayout android:layout_weight="40" android:layout_width="fill_parent" ...

Animate rows within a ListView

I saw the Android app "Mobisle Notes Free" implement a really cool ListView, where a row gets moved to the bottom if its checkbox is checked. It's not just a simple refresh, but an actual animation where you see the row travel to the bottom. Does anyone know how to implement this? ...

capturing picture storing into sdcard

Hi am new to android my requirement is to taking picture and storing it into an sdcard and retriving it as an object. Is there any code? plz help me ...

Using hashtable or SQL Lite in my android application

Initially I use hashtable in my android application. The key point I love hashtable is it is able to store complex item such as: coordinate-->float[2], velocity-->float[2]. But from many samples, using SQLlite table in android seems more efficient but it may only store all the values in one row defined by rowID. So can anyone enlighte...

How to place some buttons at a random position in a layout?

Hi. I want to place some buttons in random places within a layout(such as LinearLayout). Then each time when activity created those buttons display in different position. ...

Android SurfaceHolder.unlockCanvasAndPost() does not cause redraw

I'm implementing a fairly standard app with the Android sdk that involves drawing using the SurfaceView, SurfaceHolder, Callback setup. In my main thread (UI thread) I have no drawing or handling of the SurfaceHolder (or the canvas you retrieve with it). In a separate thread I have the following: Log.i("GAME.DrawThread", "run()"); ...

How to set a PNG file to an ImageView?

I have a file called nochart.png in /drawable. How can I set this to an ImageView? chartImageView.setImageDrawable(R.drawable.nochart); Does not compile. ...

draw track on mapview

I use following code to draw a track on the mapview, but i find that the bitmap only cache the mapview size. if some line outside the map. the bitmap will not cache. That make the track not complete. how can i solve that problem? Thank you `if ((bmap == null) || (lastZoom != mapv.getZoomLevel())) { Projection proj = mapv.getProject...

Lazy loading of Drawable fails in SoftReferences.

I have a list view with 100 different images. My cache looks like the following, public class ImageCache { HashMap<String, SoftReference<Drawable>> myCache; .... .... public void putImage(String key, Drawable d) { myCache.put(key, new SoftReference<Drawable>(d)); } public Drawable getImage(String key) { ...

How do I force an update in a configuration activity?

I'm writing a widget with a configuration activity which calls the following method when its OK button is clicked: private void ok() { // ...Do Widget Configuration... // Force an update Context context = getApplicationContext(); RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.widget); AppWidg...

android java URLDecoder problem

i have a String displayed on a WebView as "Siwy & Para Wino" i fetch it from url , i got a string "Siwy%2B%2526%2BPara%2BWino". // be corrected now i'm trying to use URLDecoder to solve this problem : String decoded_result = URLDecoder.decode(url); // the url is "Siwy+%26+Para+Wino" then i print it out , i still saw "Siwy+%26+...

I want to scroll two ListView in a layout

I have 2 ListView in a layout. I want each ListView show all their items. And scroll the whole layout. ...

AndroidRuntime error: Parcel: unable to marshal value

I am trying to pass a HashMap to a new activity using the intent.puExtra function. Stepping through the debugger it seems that it adds the HashMap no problem, however when startActivty() is called I get a runtime error stating that Parcel: unable to marshal value com.appName.Liquor. Liquor is a custom class that I created, and I believ...

how to load iPhone application from web application

I have web application for mobile (developed in .net), I want to use iPhone maps application from web application( i.e. from web browser on button click)..how to do it? I want to do same in android to. ...

How to get content of a web page (android)?

A web page: - 5 first seconds. It shows an advertisement picture. - After, its show main page. If I get content by common way. It only gets page content with advertisement. How to load main page content? Thank you so much. ...