Hi,
I have used RelativeLayout for a custom implementation of a ListAdapter and I am not sure if I can continue using this or if I need to use TableLayout.
In the first example I have the text positioned as I would like by using one image view and one text view containing the book name and the author name. However, I want to style the ...
What is the best way to constantly update the center of a mapView's latitude and longitude in an Android application?
I need to display it on a label that is shown on top of the map. I know you can call MapViewObject.getMapCenter() to get a GeoPoint of the center of the map, but where would I place that code so that it is called every ...
Hello everyone!
Recently I've started to develop Android Soft Keyboard and got some problem with preferences.
How to add a preferences to Android setting app? I've searched almost all the source code of AnySoftKeyboard, but haven't found anything what would add them to Settings app.
I'm placing a link to show what I meant: http://cod...
Hi all,
I have an app that needs to scan a barcode to get a code before it can continue.
I use this code to start the scanning activity:
finish = (Button) findViewById(R.id.finishButton);
finish.setOnClickListener(new OnClickListener() {
public void onClick(View viewParam) {
/*Prompt the user to s...
I have a game out on Android, and it runs in a single thread. Performs the work in run() and the draws in onDraw(). Pretty simple.
However, on a Droid it runs much faster than on a G1.
What is a best practice for ensuring that the game runs at the same speed regardless of the device?
...
I have the following code in a few activities and it reads and parses XML files fine but in two activities when reading small XML files I get a null pointer exception and can't figure out what the problem is:
while (eventType != XmlResourceParser.END_DOCUMENT) {
if ((eventType == XmlResourceParser.START_TAG) ||
(eventType ==...
Hi,
I tried to install Android SDK plugin on my existing Eclipse Classic 3.6.0 (Helios). I managed to do everything else, but when I try to add components using Android SDK and AVD Manager in Eclipse, whole Eclipse just crashes.
Anyone have any idea what's going on?
Eclipse Crash Log on pastebin.com
...
Hey,
my friend and i develop a Android programm.
Now we got to the question if it's possible to get the actual position of an ListElement.
Example: You drag the list up and down, and now you want to konw which element is on the center of the screen?
can anyone help us?
...
I have a custom class that extends ImageView that I'm programatically putting on to a RelativeLayout. I want each one of these images to be a specific width and height. I've tried setting the width/height in code with LayoutParams and with setMaxWidth/setMaxHeight...neither seem to be working.
Here is the code from the constructor of ...
Are the physical buttons that Android phones come with standard? Specifically the back, menu, home, and search button? In my applications I assume everyone has a back button so I don't bother putting in a "soft" button to go back to a previous screen.
For some reason I can't find any official documentation on this.
Looking at http://ww...
I'm trying to programmatically determine what audio applications are installed on an Android phone. I'm able to enumerate all the installed applications, but don't yet see a way to figure out which ones are capable of playing audio? What property of the application would have to queried to determine if is capable of playing audio?
Thank...
Hello all!
I am developing my first android app and need a little bit of help. I am creating a recipes page and I would like to have a Favorites button on it. I would like the user to be able to click the favorites button while they are viewing a recipe and have it added to the favorites page. However when the user clicks the button ...
Hi,
I want to display some copy right agreement in pdf format in EditText or TextView. How to do that in Android ? Are there any APIs or any sample codes ? I will be waiting for valuable reply.
Thanks,
...
When I download a file on my Android phone from my webserver it save it as
downloadfile.apk
The file is saved on my server as MyApp.apk
Do you know how to make the file appear as MyApp.apk in the downloaded files list on Android?
I should also mention that to get the file to download and be understood by the phone I modified the ....
I have a widget that displays a set of information. What I would like to do is to give the user the opportunity to choose the background color/image. I would like to have a popup when the user is selecting the widget to choose the background.
So how would I make the popup?
And how would I apply the background dynamically?
Thank you fo...
I am trying to display a filtered camera preview, using onPreviewFrame() callback.
The problem is that when i remove this line:
mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
to hide the preview, the app crashes. The log reads:
08-19 15:57:51.042: ERROR/CameraService(59): registerBuffers failed with status -38
What ...
Hi,
I need lat and lng of a point on a google map. It has to look like that
8.53171539306641 for example
but when I go to maps.google.com I get just
8.532493
There is a possibility to receive lat and lng that have such a length 8.53171539306641 but I do not remember how
...
Passing the following SSML (Speech Synthesis Markup Language) document to the com.svox.pico TextToSpeech engine resulted in a reading of the XML body but no control from the phoneme element or the emphasis element. This result (no apparent SSML control) is the same on a Nexus One running Android 2.2 as well as on the emulator running an...
I am working on google's C2DM and have a program on the android emulator trying to get registration ID. But I get following errors:
DEBUG/GoogleLoginService(171): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }
WARN/GoogleLoginService(171): Device has no accounts:...
hi,
How to html table with rows and columns in webview in Android. Can I have one sample Example
Thank you
...