I have an ExpandableListView bound to a SQLite database. To simplify things, lets assume the database contains two columns: title and body. In the ExpandableListView, there is a group for each title, and a childfor each corresponding body.
Now to make things more interesting, some of the rows in the SQLite database do not have a body (t...
Edit: Okay, I found a solution. Don't know that it's the proper solution, but it does work correctly. Added to the code below.
I'm trying to allow a user to select a number of directories from a checklist, and return them upon clicking a "Submit" button. Here's a snippet of my code. It populates the ListView with all the directories on ...
Continuing with the question referred in the following link:
[How can I capture when time changes in a TimePicker if the keyboard is being used?][1]
[1]: http://stackoverflow.com/questions/3380761/how-can-i-capture-when-time-changes-in-a-timepicker-if-the-keyboard-is-being-used/"How can I capture when time changes in a TimePicker if th...
Say for example I have a textview in class A,
and I want to change background color of textview from class B through a method...
how can I do it?
...
I would like to be able to generate unique serial numbers for each Android device for use in unlocking an application. How could I do this?
EDIT:
The reason is I want to revamp a paid application and provide users who have paid for the old version, which will have a different package name, a way to obtain the full version by downloadin...
I am trying to download Android source code for Contact,Dialer and CallLog applications from the git repository. I have tried the following on my mac(running SnowLeopard):
1. Create a bin dir and a android dir for putting all the downloaded files
2. Added both of the directories to the PATH environment variable
3. run the following comma...
Booking.java
This is part of my spinner code.
public void onItemSelected(AdapterView<?> arg0, View v,int position, long id)
{
boolean result = Booking.this.myCursor.moveToPosition(position);
if (result) {
String title=Booking.this.myCursor.getString(2);
Booking.this.txtArrival.setText(title);
}
}
There is ...
I have a mobile app, which is pretty data driven, though only through text and images.
In the current version each click or touch requires pulling new data from the server (appache/php). With network delay this easily takes 1-2 seconds for the first content to appear, which is far too long.
I have heard about and considered the followin...
i am trying to create a game using the webview method. as of now i have webview fully working. at this time i would like to move my game menu so it would be invoked by pressing the android menu button. eclipse provides me with a template for creating the button, which i have completed, however i cannot seem to link this button to the web...
Hi all!
I'm doing an admin page that can view the users that exist in the system. My idea is to show a list of the users and the details in one page. I heard that using listview is very tedious. Is there any other way that is easy?
Maybe view in textview but I dont know how it works. I must put in a lot of textview on my xml?
A simpl...
Can anybody tell me how to get the current position of the index while reading the binary file from DataInputStream? I have seen a mark() method but one is Boolean type and the other is void. I need to read the indexes on separate locations to use them again.
...
Hi Guys,
I am trying to create multiple notifications in my application. To identify each notification uniquely, i have given them an unique identificationId. Following is my code:
private void updateNotification(int notificationId, int clockStatusID, CharSequence text) {
//notificationManager.cancel(notificationId);
// throws up an on...
I see these components discussed all the time on xda-developers. I have a vague understanding of what they are and how they're related to each other, but it's not perfectly clear. For example, the radio seems to be a lot more than just the radio. I have a good understanding of the basic ideas as a Linux user and software developer.
T...
The following link states that "A Java or RCP version of Eclipse is recommended. For Eclipse 3.5, the "Eclipse Classic" version is recommended."
http://developer.android.com/sdk/installing.html
However, Eclipse 3.6 is available and as a total newbie I am not sure whether the recommendation for "Eclipse Classic" over RCP (or Java) still...
Hi All,
Is there a way that trough the application, I can subscribe and unsubscribe for the "ACTION_BOOT_COMPLETED" message?
If so, how can I do this?
Any kind of pointer will help me.
Thanks in advance,
Regards,
Vinay
...
Consider the following use case.
Activity 1 starts Activity 2. Activity 2 is currently in foreground. Now, Activity 1 wants to display a Dialog. Is it possible for Activity 1 to display a Dialog? What will be the error display, if any?
...
Register to be able to open files of custom type. Say i have .cool files, and if the user tries to oepn it, Android asks if they would like to open it with my application. How?
...
How can one achieve string localisation in Android?
...
Hello, I am an experienced Java programmer just starting out with Android development. I am going through the tutorials and am having a problem with the tab widget tutorial. I have followed the example to the letter and keep getting the below in the log when trying to run on the emulator:
ActivityManager: Starting: Intent { act=andro...
I noticed that Flash allows you to insert cue's into a video file (flv). Is something like this possible on Android? I have a video that runs locally in my Android app and I would like to insert cues into the video which will give me callbacks when a certain portion of the video has been reached. If this is not possible, are there any...