If you have an answer that is not Java / SQLite related, I'd be pleased to read it.
The environment
I store items in a database with the following scheme :
###################
# Item #
###################
# _id # This is the primary key
# parent_id # If set, it the ID of the item containing this ...
I have two activities running: mainActivity and childActivity. Whenever the user clicks in the button in mainActivity, the childActivity is launched. What I want to do is this:
When the active activity is the childActivity and the user clicks the home button then relaunch the application, I want to see the childActivity instead of mainA...
Im writing an app for android and would like to have an itunes like coverflow preview.
Is there anything in the api that I can use or do I have to build it from scratch?
...
I'm thinking about creating an application for the iPhone and Android that will need to access a common backend to retrieve account information. Can both access a web service over https? What other way would allow me to have one interface to the backend that is accessible by both?
...
First, a non-programming question: My phone is auto-responding to missed calls with a text message: "Sorry. I'm not near my phone right now." Where did my phone get the idea to do that and how do I make it stop?
And a programming question: How can I make my Android do arbitrary things in response to a missed call, such as email me th...
Is there a way to reload an Android application in the emulator without closing the emulator, saving any code changes, and running the emulator again? If I make even a simple change to the layout, it takes about 30 seconds by time I run it in Eclipse and Android "boots", and I can unlock the emulator to run the application. Is there an...
I have an android application that plays music from a site, however to authenticate to the stream, you need to send a cookie first I.E:
http://example.com/site/content?id=SOMEID = mp3 formatted stream
If you access the url without a cookie, you'll get a Server 500 error.
If you have a cookie, then you'll get the stream.
For the life o...
I have to activate android's system key lock (the one you get when you press the power off/*hang up* button). See here:
I already browsed the docs but everything I found was PowerManager and KeyguardManager. Both seem not to be the solution :-(.
So, does everyone know how to achieve that from a android application? (If special permis...
In my Android application, I have two activity classes. I have a button on the first one and I want to show the second when it is clicked, but I get an error. Here are the classes:
public class FirstActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
I have an image that takes up a lot more space than the android screen. I want the image to be presented full size and the user can move in any direction. Like a map.
Any suggestions?
...
I've got an XML file storing an array of shorts in my resources. I need to assign this array, but Android API only provides a way to get array of ints (getResources.getIntArray()). I've ended up getting an array of ints and converting it to array of shorts later, but that's hardly ideal.
Is there a way to get an array of shorts from And...
I have images displayed in a GridView as in this tutorial. I want to be able to click on a single image and do other events and I need to know what image was clicked. Do I have to add imageView.onKeyDown(keyCode, event) in the ImageAdapter class? Here is the code as it currently exists:
@Override
public View getView(int position, Vie...
I am developing a game for Android in Windows Vista environment. I want to automate the exporting unsigned application operation in a batch file. So, I wouldn't have to Right click on the project, go to Android Tools and then select Export Unsigned Application Package... anytime I want to run my project. Thank you.
...
I use onLongClick and onClick events of a button to get user inputs. Whenever; the user long click and triggers onLongClick event, the onClick event is also triggered. I couldn't find my problem. The code of two methods are shown in below:
@Override
public void onClick(View v) {
switch(((Button) v).getId())
{
case R.i...
Hello, first time poster here.
I'm working on a client-server Android application and trying to figure out how to identify different phones/users to the server unambiguously. My first attempt would be to use the phone number on the SIM card. Although now that I think about it, how common is it these days that your phone number changes w...
How do you use the Android API to zoom in and out maps with the 2 finger gestures like iPhone?
...
I've poured over the docs and haven't been able to figure this out. Is it even possible?
Relevant documentation: http://developer.android.com/reference/com/google/android/maps/MyLocationOverlay.html
...
I am looking for resources concerning Android's use of XML - not how to's, but technical articles or whitepapers concerning the XML architecture in Android. Why were things designed the way they were, what considerations were made - all specific to the XML part.
If this is not available, I'm also interested in general use of XML in mobi...
Say, we have a table created as:
create table notes (_id integer primary key autoincrement, created_date date)
To insert a record, I'd use
ContentValues initialValues = new ContentValues();
initialValues.put("date_created", "");
long rowId = mDb.insert(DATABASE_TABLE, null, initialValues);
But how to set the date_created col...
In the various smartphone APIs/SDKs, I was wondering if it is possible to prompt a user if they'd like to log a phone call after they hang up. The most basic functionality would be after calling out or receiving a call, the phone would ask
Do you want to log the call to|from 555-555-5555?
Yes | No | Never this number
(then it might tak...