android

android programming tutorial for an alarm needed

Hi. I am starting an app for android. I was wondering if anyone had any tutorials to get me going. something similar to an alarm that goes off on 2 different occasions on specific dates, these dates and times should be obtained from a csv file or something similar so that i can control when and at what time the alarm goes off. any help ...

ANDROID WEBKIT: Select elements getting focus events, but not opening!

Hi all, I have a series of select elements in a form on a mobile site. These select elements are inside a scrolling pane handled through JS and CSS3 transforms, so getting a touch/click/whatever event to register on the selects was enough of a pain in the first place. However, I'm now finding, on android only, that even though the selec...

Getting started with OpenGL... in Android

I'm an experienced Android developer (if such thing exists) who has never worked with OpenGL before. There are various advantages of the Android platform (open-source, open distribution, portable, and so on) that make me think that it might be a great environment to finally get into OpenGL. But I'm also worried that the complexity of ...

Make a link in the Android browser start up my app?

Is it possible to make a link such as: <a href="anton://useful_info_for_anton_app">click me!</a> cause my Anton app to start up? I know that this works for the Android Market app with the market protocol, but can something similar be done with other apps? Here is an example of a link that will start up the Android Market: <a href="...

Category information of an Activity through ActivityInfo class

I was expecting to see Categories that a particular Activity belongs to in ActivityInfo class but I could not find any reference to Category in the ActivityInfo class. Anybody knows where Category information is maintained for an Activity? ...

Saving state of ArrayList of custom objects

Hi, I have a member variable in my Activity which is an ArrayList. The objects populating this ArrayList are objects I have defined called RatingItem. RatingItem has several member vars like rating, comment, id, etc. I would like to save this ArrayList in onSaveInstanceState so it can be repopulated from onRestoreInstanceState. What...

Intent URI to launch Gmail App

Is there any URI which can point to the GMAIL App in android and help me launch it? ...

Displaying a MapView with a SubAcivity

Hi, I have a main activity. its main.xml generates a view that holds a slider, which on click, reveles some area for conent. In this area I want to display a map. so I need a second activity. I am able to call the sub activity but I want it to be displayed in the area of the slider of the main.xml, however the map has its own mapview.xm...

Writing android app that executes linux commands

I have an compiled executable that is supposed to copy itself from the res folder, and into the /data/data/package-name/ folder, and change the permissions, and then execute. Every step completes all the way to the end. The output stream seems to be writing, etc. Except when I go check the file system, nothing has been done. I first trie...

How long does my subclass of Android's 'Application' class stick around for?

In my application, I use a subclass of the Application object to store some references to complex objects I need to access from all of my activities. When my app starts, the startup activity checks one of these references, in this case a Location, and if it is null, it starts the LocationListeners which populate the reference for furthe...

Getting the path to where my classes lie in Android

Hi there :) I have some difficulties in finding the directory in which a given class lies. E.g. I have an external lib Plugins.jar imported and want to get the parent directory... How is it done in Android? Afaik the Dalvik VM unpacks my Plugins.jar, optimizes it and packs it together with the rest of my app. Thus I'm not sure if there...

is it possible to evenly distribute buttons across the width of an android linearlayout

I have a linear layout (oriented horizontally) that contains 3 buttons. I want the 3 buttons to have a fixed width and be evenly distributed across the width of the linear layout. I can manage this by setting the gravity of the linearlayout to center and then adjusting the padding of the buttons, but this works for a fixed width and wo...

What java android files should I not upload to my SVN Server?

I just setup SVN for my java Android project through SubEclipse. Can anyone advise me on which files I should not upload to the repository? Just like in Objective C I have my build files in a separate folder, I still don't know how the build system in Java organizes files and what is considered "build" files. Any advice? ...

Can't get text to center vertical and horizontal in Android TableLayout

I have the following in a TableRow: <TextView android:text="Current" android:id="@+id/theScreen" android:layout_width="wrap_content" android:padding="2px" android:typeface="monospace" android:textStyle="bold" and...

What does 'unique visitor' mean in the context of Google Analytics on Android?

I've got my android app reporting usage statistics to Google analytics, and everything seems pretty awesome, however my 'unique visitor' count is always wrong. My account is reporting almost 30 unique visitors over the past month or so that I've been in development. The app is only installed on four devices. One of the devices is wi-fi...

Android get location or prompt to enable location service if disabled

I've found bits and pieces of this answer scattered through other posts, but I wanted to record it here for others. How can I simply request the user's GPS and/or Network location and, if they haven't enabled the service, prompt them to do so? ...

Android application running external Code/Application?

Hi all, guys. This is my target: I need an Android application which should be able to fetch data from the web (maybe an .apk or a .jar) and launch "something" from it. If it's a "trivial" class there's no problem at all. This is my Loader package com.m31.android.urlload; import java.io.BufferedInputStream; import java.io.BufferedOu...

showDialog rotation issue when two dialogs are used

Hello, I'm hoping someone can help with this, as it's driving me absolutely nuts. I have a ProgressDialog, which tells the user my app is connecting to a server. It's launched using "showDialog(CHECKING_USER_NAME_AND_PASSWORD_AVAILABILITY);" so that the activity will manage its state for me (specifically, I want the ProgressDialog to s...

Android Swipe to left or right?

How can I detect in a ListView that someone swiped to the left or the right? ...

stop or refresh an app's activity

Hello all, I have a START and STOP button in the main screen of an App. there are some GUI and threads that are instantiated when I click on START. When I click on stop, I want everything to be stopped and the activity should come back to its origin state. To the state that is exactly same like when launched (when we tapped on App icon i...