Hi all,
I have a listview that needs to be multiple choice (i.e each list item has a checkbox which can be checked / unchecked)
The list view is in a tabhost and is the content for teh first tab.
My set up is like so:
My tab is set up with:
TabSpec tab = tabHost.newTabSpec("Services");
tabHost.addTab(tabHost.newTabSpec("tab_test1")....
My application need to create a small progressBar programmatically.
ProgressBar doesn't have method to set the style (I want a small
progressBar). The constructor can take a AttributeSet, however it is a
interface and require me implements a set of functions. Is there a way
to set the progressBar small style? ( I can't use xml to create
...
Hello,
I'm trying to deploy an application with an existing SQLite database.
I've been reading though the examples that are posted but they are always missing some part of the class. I feel like I'm trying to bake muffins but no one told me to use baking powder.
Can someone post a full database helper class for depoying an SQLite data...
I'm writing a fairly simple app which, upon a fatal error, displays a dialog box apologising to the user. This dialog has a button which gives the user the opportunity to let me know that the app has failed and why.
It seems a little overkill to create an email for this task - especially an email from the user themselves. Is there a n...
I have a SurfaceView that is being used to draw images, and I would like to overlay them onto a live-feed from the phone's camera.
Currently, the SurfaceView that contains the images have a white-background, but if I were to overlay them onto the phone's camera feed, they would have to be transparent. The camera and animation drawing ca...
Is there a way to extend a drawable (just like how shapes work, create your own tag) and allow it to be inflated from XML? Or is drawable only for the allowed 9 types?
...
I have a static library, Foo, that is used by a shared library, Bar. Bar is the native shared library loaded by my Android app. Foo contains JNI functions that are only called by Java code and not by any C++ code in Bar. Because of this, those JNI functions get stripped out of the static library (Foo) when the shared library (Bar) is bui...
Hi, I am working on a small android project where it is necessary to share some data amongst several activities and a service that runs in a separate process. I would just like to know what are my options in terms of sharing data? Application class? IPC? File-based? Broadcasts?
Thanks guys!
...
Is it possible to have an index on the righthand side of a ListView? This is possible on the iPhone where running down the righthand side the alphabet is shown. Touching a letter on the alphabet brings one to the beginning of the items in the ListView that start with that letter.
Is there built-in code in Android for this functionalit...
How, in android, do I start an app set as the default (i.e. Handcent for Messaging, Dolphin for browsing)?
I can only find how to use definite package names for intents:
Intent i = new Intent(Intent.ACTION_MAIN);
i.addCategory(Intent.CATEGORY_LAUNCHER);
switch (position) {
case 0: //messages
i.setPa...
Is it possible with Android to have a search bar for a ListView so that when the search bar is touched a keyboard pops up, and when text is typed into the search bar, the items that match in the ListView are shown?
What I really need is the search bar that brings up a keyboard.
Update:
I've added the EditText field that brings up a ke...
I am using InteliJ Idea Community edition to develop android apps. I was trying to write UnitTests for a HelloWorld App as described in link text
. However I keep on getting an error
Found main project package: com.example.helloandroid
Found main project activity: .HelloAndroid
Error: Unable to load the main project's default.propertie...
I am looking for a way to change the light sensitivity of my Evo 4G camerea. I know it is not the camera's shutter speed because it is a digital camera. The next most relevant aspect is the ISO setting, but the Android SDK does not have a way to manipulate it. Does any one know an alternative? i.e scene mode, exposure or effects
**par...
I'm trying to save photos that I taken with my app to a specific directory. It was working but I'm getting close to being finished with the app and wanted to try a fresh install. I deleted the folder where the photos were being saved and now it won't remake them. Here's my code.
PictureCallback jpegCallback = new PictureCallback() { /...
I'm making something of a todo list and the one issue I'm facing is that I cannot figure out how to make it for when I click on an item within a listview the text in that row gets the strikethrough effect. I know I'm supposed to call:
TextView text = (TextView)view.findViewById(android.R.id.text),
text.setPaintFlags(text1.getPaintFlags(...
No matter which type of android virtual device I create from the Android SDK and AVD Manager, whenever I start it, my entire laptop just shuts down after getting the blue screen of death. I see this error in the Event system Log ("Driver VPCAppSv.sys has been blocked from loading.") but not sure if it's related to it or not.
Anyone ha...
I'm attempting to turn a web interface into an Android one by parsing the web page for relevant data and then allowing the user to send back data to the server. Using simple HttpClient code I have managed to get the web page and then parse the necessary information. I'm unfamiliar with sending data back, so, I'm hoping someone can shed s...
I have the following code that if not connected to the internet hits the catch but crashes the app with the error in the subject. Is there a graceful way to detect the connection being up or just ignore this?
try {
GeoPoint center = myMapView.getMapCenter();
double minLat = (double) (center.getLatitudeE6() - (myMapVie...
I want to create a list with some text and a photo miniature in each row.
So I created a row layout with a TextView and a ImageView, my question is how do I make the ImageView just a little square and then make an image adapt to the size of the ImageView?
...
Can I find out from my Android app, what is the browser's user agent string?
...