Simple problem:
With the XML layout shown below, I have some views wrapped in a GestureOverlayView. As shown below, my first row is blended with the second row, as-if the first row is transposed right on top of the second.
Now when I take the GestureOverlayView out of the code and leave everything else as-is, my table looks fine - the...
Hi folks,
How do you check if the SD card is full or not so that your application can decide if it can continue to do its job i.e. write to external storage or notify the user that storage has run out of space.
Cheers
...
Hi,
I'm doing Major Project on my final year and I'm very new to Android plus I;m not good at codings. I need help with my login page. I've created something like a database connection java file which is this:
package one.two;
import java.util.List;
import android.app.ListActivity;
import android.content.Context;
import android.datab...
Is there an easy way to grab a attribute value from an xml item in your Java class definition? I'm looking for something like this:
// In xml layout:
<TextView android:id="@+id/MyXMLitem" android:textColor="#000000" />
// in Java Class definition
String some_text_color;
some_text_color = R.id.MyXMLitem.attr.textColor; // I'd like t...
Our products still target OS 1.5+, so C2DM in Froyo is not an option.
I think wrap a persistent TCP connection in a service would be feasible. But I'm still wondering how to use one service to receive notifications for multiple applications. I don't want to create service and connection for each of my apps.
Should I try to register the...
I have a parent activity, and a child activity that extends the parent activity. When the parent starts the child activity,
Which onCreate gets executed first? The child's or parent's?
There is a particular variable I am setting in the Child activity's onCreate method, and right now, it looks like it takes a while to get to the Child ...
Hi,
Iam connecting 3G phone for my Android device for internet connection and another Socket(SPP) for CAN signal receiving.Whenever I manually connect to the Bluetooth tethering via 3G phone, i can browse internet perfectly and speed is good.Whenever programmatically connect to the 3G connection, i couldn't browse internet.i checked in s...
I'm a little confused on how binding to services works. I understand using Context.startService() starts the service and that bindService doesn't call onStartCommand. But my understanding is that if I use startService, I have to explicitly stop the service. But I want the service to die if there are no more activities bound to it.
My pr...
At the time of button click I need to show my data in landscape view.
How to show the data in landscape view?
...
Tried to parse an xml file in res/xml using the following code.But when launches the project it shows an exception "there is no such file/directory".Is any error in the code?
Give me an answer immediately.Thanks in advance.
try
{
DocumentBuilderFactory docBuilderFactory=DocumentBuilderFactory.newInstance();
Document...
Yes, I know Android has already implemented the Bluetooth Headset
Profile, but it is in Audio Gateway Role, not in HeadSet Role.
What I want to do is develop an application on Android phone which
will act as a bluetooth headset, so it can connect to my laptop by
bluetooth.
When I try to call somebody, I can use my phone to dial him, and...
I am setting an alarm for my reminder app:
PendingIntent sender = PendingIntent.getBroadcast(AddToDoList.this,
Integer.parseInt(DBHelperClass.getMaxPrimaryId()), intent, 0);
i am using a unique value (primary ID) to set an alarm. When i want to edit the alarm i am using the same key. But what i see is that both the alarms g...
I'm sorry for the bad title. I'm tired and I just can't seem to find a good description.
Here is my problem:
HTC has a virtual keyboard where you can select between the following keyboard types:
QWERTY
Phone Keypad
Compact qwerty
If you choose anything other than QWERTY you will have to multi tap on the buttons to get the lett...
Hello,
I am developing an android application.and ...i am novice in Touch enabled Android Application..
I have read the article about "onFling" and "onScroll" event on:
http://developer.android.com/reference/android/view/GestureDetector.OnGestureListener.html
But i didnt get exactly what is the meaning and for what we can use OnFling...
I want to add play gif format to my android app. Could this be done, and how would I do it?
...
Say I want to create a database using the Android SDK's sqlite tool. What would the file extension have to be? I would think .db or .sqlite3 or .sqlite? How would I import it in my source code (Is there a method I should call?) and where in my source code? I was thinking in the onCreate method of a class that implements SqliteOpenHelper....
I rewrite example from adnroid-sdk SpinnerActivityTest.
When I execute the test every thing looks green - that means it is correct.
But when I debug the source code from Eclipe I found out that the activity methods connected with activity work flow were not call. I'm working on the Android 1.5 target. In the final I copy examples from S...
I've just insalled VillainROM on my GSM Hero, and it looks like almost the whole memory is used (which was not the case with the default ROM). I'm looking for description which directory has redundant data, so, does anyone know what those directories contain and whether they should be that large:
$ ./adb shell
# du -sh /*
du -sh /*
2.5M...
Is the onUpgrade method of SQLiteOpenHelper ever called? If so, when is it called and by what? Or if it is not called by developers, then why is it there? What should be done in the method I have seen examples where it drops all the tables, but then a comment says that dropping all the tables is NOT what you should do.
...
Hello,
I want to create tabs without extending TabActivity. (The reason is that TabActivity cannot handle a custom titlebar as it seems). I have
public class startTab extends Activity {
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.mylayou...