i need to insert 2 images and 2 buttons.action required is that whn i click on th first button corrsponding image should be displayed.same action required for other button also but second image should be displayed.
...
I am trying to draw a cupola circles at random positions in an Android application.
I draw them on a bitmap and then draw that bitmap on the canvas. This is the function where a draw the circles:
private void drawRandomCircles(int numOfCircles) {
Canvas c = new Canvas(b);
Paint cPaint = new Paint;
cPaitn.setColor(Color.RED);...
I have an Android application that makes use of TTS (Text to speech) API. Everything is working perfectly, but now i want to fade in/out or even stop music (in case user is playing music with prebuilt Music Player), when application speaks a text. Right now, i think both music and TTS messages are played on the same stream (MUSIC), and i...
android-sdk-linux_86/platforms/android-4/tools/dx: line 77: exec: java: not found
I configured Android plateform on netbeans6.8 and created an android project, getting compile time error: android-sdk-linux_86/platforms/android-4/tools/dx: line 77: exec: java: not found
Please any solution?.
...
Starter question: My "Hello World" attempt won't run, ("No compatible targets were found"), I think this is bacause I selected the latest version for my project (2.2), and the highest AVD version is 2.0.1. Does this make sense? Can I change my project version (haven't been able to find a way to do this), or do I have to start again? If t...
Hi,
i have two applications which i want them to share the same arraylist.
how could i achive something like that? is there anything in Android for sharing such a prefrenceses?
thanks,
...
i need to insert 2 images and 2 buttons.action required is that whn i click on th first button corrsponding image should be displayed.same action required for other button also but second image should be displayed.
...
Hi guys,
I'm just a newbie in Android world.
I tried to add a ListView inside a tab (or actually in activity),
and each listview will be displaying another view that contains component such text, image and etc.
this components is got to be dynamic, will be set within the source program
listview layout :
<LinearLayout xmlns:android="ht...
Hello friends,
I am a new user of google maps API in android OS. I have made a small application in which i am using google maps. I want to add a functionality that when i double click (multi touch) on a map the map should zoom in. IS there anybody who has an idea how to do this or if it is possible please provid a code example.
Thanks i...
I have a widget for a music player and want to be able to send broadcasts when pushing the different buttons. What I want to do is when a button is pushed, the widget sends a public broadcast to another BroadcastReceiver so it can handle the different actions.
In my activity class with the BroadcastReceiver:
private BroadcastReceiver b...
I am writing my first Android app.
The app is displays bus stop information i want to have a panel for each stop that the user can scroll sideways through, like a weather app with a panel for each city.
Looking at the Dev Guide I don't see how to do this.
What Layout Object/ViewGroup should I be using? or should i looking somewhere else?...
hi im trying to call the contact picker, get the persons name, phone and e-mail into strings and send them to another activity using an intent. So far this works
Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(intent, 1);
@Override
public void onActivityResult(in...
Hi,
The application I'm working on is a service which runs in the background in android.
The problem is that I need to determine the height of the notification bar for some functionality of the service.
I found a number of solutions for this, for regular activities -
a view inside an activity can determine its own height without the n...
I want use point sprite (OpenGLES Extension) API in Android NDK(r4).
right here
int att[] = {0,0,1};
glPointParameterxv( GL_POINT_DISTANCE_ATTENUATION, att );
But, doesn't work it.
...
Hi,
I am using AsyncTask in my application and sometimes when I run the application I get the error as java.util.cancellationexception.
Can someone let me know the reason of this error or the way this can be removed?
import java.util.concurrent.ExecutionException;
import com.babbleville.io.BabbleVilleSyncTask;
import com.babbleville.i...
Hi!
I'm trying to parse html document, extract content and show it in WebView or textView. But some Croatian letters are not showing up correctly. The problem is in the page I'm extracting content from. In one part of page source letter is "š" or "č", and in another part the same letter is written as "&scaron". But my browser displays i...
Hi.
I facing a problem of Filtered list view not updated.
In my application there is a custom list view which has a two text view and one image view as a row elements.
Filter works fine but my Custom list view not updated,Result show the first rows of the List.
This is my code,
abc.java file
public class abc extends ListActivity ...
Hello,
I´m thinking about writing an android app, but have no experience in programming such apps.
My question is whether it is possible to access the standart message editor of android with my app and add for example additional information to it or would it be neccesary to write a complete new editor which would be started as a sepera...
Hi,
I'm trying to draw an image in a view but having problems trying to maintain the scale of the original image. Basically, I have a small view and I would like to show part of the image in the view. The intention then is to perform a translation on the image so that a different part appears in the view.
No matter what I try, either th...
Hey Guys,
I've got a question on making an navigation app more faster and more stable.
The basic layer of my app is a simple mapview, covered with several overlays (2 markers for start and destination and one for the route).
My idea is to implement a thread to display the route, so that the app won't hang up during the calculation of ...