android

How to obtain your current GPS Location via android

Hi all, I am about to build an app in Android that will act as a clock in card for employees on the road. At teh start of a job the user will click a button that will record the GPS location and current time (thus verifying that he is where he should be at a given time) and again at the end of teh job he records the time and GPS loca...

What are my options for mobile android analytics?

So far I've seen flurry and Mixpanel. Mixpanel appears to be the most interesting: http://mixpanel.com/android-analytics/ and has a flexible API. However still wondering what else is out there and what other people might be using, thanks! ...

main.xml hiding the view help

Hello all, I am unable to display both the setContentView(R.layout.main) and View together. I think I am not getting the concept right. Could anyone explain me where I am going wrong. Thank you. //please read the comment in code I am trying to display a image on main.xml using BitmapFactory. public class TryGraph extends Activity ...

SQLite problem - works perfect in the 1.6 emulator - won't work on the phone (2.2) or 2.0+ emulator

I created a sqlite database to store playlists for a media player I am developing because of extended feature (rather than using the Content Provider). It works perfectly on the 1.6 emulator but FCs on anything higher than 2.0... what has changed that I need to know about as far as opening databases in SDK 2.0+? Here is the logcat. 0...

What do ListActivity and ListView provide beyond a regular Activity and View?

In Android, what functionality do ListActivity and ListView provide beyond a regular Activity and View? ...

How to restore previous activity by clicking on notification

When my notification goes off I want to restore the activity that was put into the background, not start a new activity. I've seen some answers about using FLAGS but I don't know how to implement it contentIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | INTENT.FLAG_ACTIVITY_SINGLE_TOP); Where do I put this in my code? I tried but it ...

Android: How do I reference a stylable that resides in a library that my app references?

I have a custom view I created that resides in a library I'm referencing in my app. In the library I declared a styleable, which the view uses. In my app, I'm using the custom view from the library as such: <nefarious.library.myappname.views.DragDropList xmlns:ddl="http://schemas.android.com/apk/res/nefarious.library.myappname" andro...

Android: In Gridview how do I make the images clickable so that....

I am trying to make the images I have clickable so that when they are pressed it will send the user to another page or link. How do I go about this? Currently each row in the gridview has 2 buttons. How will it know which item in the gridview is clicked so that it performs a certain action, specific to the item that was clicked. Thanks ...

matrix help: how does postScale affect the translation part of a matrix?

Ive been trying to implement a limit to prevent the user from scaling the image too much in my multitouch zoom app. Problem is, when i set the max zoom level by dumping the matrix, the image starts to translate downward once the overall scale of the image hits my limit. I believe it is doing this because the matrix is still being affecte...

android intents alarmmanager

Hi, I am trying to create intents that will be set using alarmmanager. Currently, I can do this with one intent, add extra data to it (strings, but i send them as one string with a seperator), and everything works fine and goes off at the correct time. However, when I try to send multiple intents like this, they are overwritten and only ...

Android: How to design to achive the "RadioGroup" effect?

Hi guys, I'm trying to design an Android layout that would look like the following: Entity1 option1 for Entity1 option2 ... optionN Entity2 option1 for Entity2 ... optionN Entity3 ... With the requirement that for each entity, one and only one option is allowed. And I decided to use radio button with the intention of using RadioGr...

Loading images from res or assets when web page in webview loads from server

Hi all, I want to send down a webpage from a server to WebView components on Android handsets. I've already learned how to enable the webpage to talk to the JavaScript handler, so the native application can interact with the webpage. I am, however, stuck on images. I want the webpage that comes from a server to somehow tell the app whi...

Why nullpointerexception when parsing xml in android application?

Hi, we have a android application that works fine up to android 2.1, but when we try to release it for android 2.2 we get a nullpointerexception. This happens when we're parsing a xml, on the following line of code: ((node) getText.item(0).getNodeValue(); help appreciated! ...

How to record video from Front Facing Camera?

we got a requirement to record video from front and rear cameras simultaniously.. In the Android 2.1 SDK we only have the MediaRecorder.VideoSource.CAMERA and DEFAULT, but not FRONT_CAMERA and REAR_CAMERA. So, is there any other way to record from Front camera.. like any third party API's.. thank you.. ...

"No suitable XML Schema Validator could be found"

Hi, Whilst trying to update through the Android AVD Manager, I receive the message: "No suitable XML Schema Validator could be found in your Java environment" It therefore can't parse the repository.xml and I can't download any updates. How can I get rid of this error? I am guessing it might be caused by GIJ being the default Java im...

How to use java.awt.image package in android app

Hello Everybody, I have to use java.awt.image package for BufferedImage class in my android app But I am not able to do this and does anyone knows that how to do this in android or What's the equivalent class of java.awt.Image in Android? ...

Please help me in Contacts App on Android

Im using Android 2.1 Api Hi all, I need to add a String MIME type into existing contacts for storing a userdefined data apart from Phone numbers,email etc.Please help me how to add that Custom Field from my application. I request with an example because I am a week old on Android please help me. ...

How to open options menu, change setting, and return - Android?

I am attempting to get my app to open a settings menu screen and return. The problem I am having is when in the settings page, upon pressing the back button, the app closes. I am VERY new to programming in general after fighting this for about 8 hours I am ready to ask for help! Here is the code I have written `package com.bowersoftwa...

Android: How to add bullet symbol in TextView

I have a TextView and I want to add a bullet symbol in my text through XML. Is it possible? Pleas help ...

how to implement uihandlers running one after one in android

hi i am kid application i am using uihandler display images using gallery and image view in gallery scrolling one method running automatically apply handler another one onitem selection clicked event this two events are developing code my problem is at a time one event are fire how to implement this on item selection event g.setOnI...