android

How do I update a spinner list from another class/view?

Hello all, I have a spinner on my main view and I want to add and remove items from it's array from another view. Is this possible? Thanks, Boyd ...

Android application distribution

Hello could you explain me steps for android app distribution. I can sign it and publish to Android market. But can I offer clients to load this application without market? e.g from company web site? if yes, can I still use self-signed certificate? thank you ...

Flurry Analytics vs Google Analytics on the mobile platform

I am working on a mobile app on the Android platform (and going forward for the iPhone) and am evaluating the Flurry Analytics and Google Analytics platforms for the app. Both platforms have SDKs for the Android and the iPhone and seem very similar in most ways. Do any of you have experience with both or either and would you recommend ...

How to call API's from a URL in Android

I have a URL to a cfm file that contains the API for a application that I am making a mobile version of. On my end of the application, I need to supply that file with all of the variables it needs (all of which are URLs). How would I take take these variables created in my application - all of them currently Strings - and give them to ...

Android: insert new raw contact

I would like to insert a new raw contact. I'm sure this involve some sort of getContentProvider().insert using a ContactsContract uri of some sort. Can anyone show an example using a ContentValues to to insert a brand new contact? (Update) There is an excellent example in the SDK http://developer.android.com/resources/samples/ContactMa...

Getting menu clicks

Alright, this might be simple but I dunno how to do it! I have my menu defined through XML, as shown below. It loads and everything. <menu xmlns:android="http://schemas.android.com/apk/res/android"&gt; <item android:id="@+id/home" android:title="Home" /> <item android:id="@+id/about" android:title="About" /...

different views on a single list ( Android )

Hi, Is there a way to make a list with different views? I mean that row in posiotion X will have layout "X.xml" and row number Z will have layout "Y.xml"? I've tried to manipulate ListRowAdapter() and getView() in a few ways but with no success... ...

How to set imageview width and height programatically

HI, How i can set Imageview width and height programatically. Thanks in advance ...

Why does this force close before the activity screen is drawn? (android)

my app keeps force closing before it starts... eclipse returns no errors in my code and my xml is good. can anybody give me some insight? package com.mhe.test.scan; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText...

Can I pass data through a new Activity?

In my Android app, I start a new activity with startActivityForResult(). I get the result in onActivityResult() perfectly. My problem is that there is a small bit of data that I know before I start the activity and I need that value to be available in onActivityResult(), too. I tried attaching it to my intent as an extra, but it wasn't a...

Android - Can a Service report back to calling Activity with status

Is there a way that a Service can report back to the calling activity when the Service has reached a particular stage of processing? For eg: Consider a music player activity that initiates the actual music playing in the background as an Android Service. I want to detect and inform the Activity when the Service has reached the Mediapla...

Accessing members in one Activity from another

I'm going for a tabbed layout for my application, and I'm having a little trouble. I have the main Activity, and then I have the sub activities (one for each tab). In one sub activity, I have a TextView set as a public member of the activity. Using the main activity, how could I call .setText() on the TextView in the sub activity? Th...

What is the simplest and most robust way to get the user's current location in Android?

The LocationManager API in android seems like it's a bit of a pain to use for an application that only needs an occasional and rough approximation of the user's location. The app I'm working on isn't really a location app per se, but it does need to get the user's location in order to display a list of nearby businesses. It doesn't nee...

Android Calling Intent from another class

I am calling intents alot in my program and I thought that I could write a public class that would have all of my intents so I can just call something like intents.testIntent(params) and then have it fire off the intent. I tried it out but am getting a force close with a null pointer exception. This is my whole class. I know it is prob...

Java socket not throwing exceptions on a dead socket??

We have a simple client server architecture between our mobile device and our server both written in Java. An extremely simple ServerSocket and Socket implementation. However one problem is that when the client terminates abruptly (without closing the socket properly) the server does not know that it is disconnected. Furthermore, the ser...

Screen personal lock

How to bring up a constantly appearing screen in android, user should not be able to get rid of it unless he enters the correct password. None of the keypad,touch screen window should be enabled for user to get rid of this screen. I am trying to develop app for user security. Once User will starts this app. no one else can access his pe...

GPL-compatable graphing library for Android

In a similar approach to this question, I am looking for a way to plot data points on to a view in Android. Preferably, a library which will do this for arbitrary-ranged input, as well as allow panning and zooming (via pinch or zoom bar). Right now, I have subclass-ed a view which does the following normalization: for(int i = 0; i < da...

Is there any design issues i need to follow while designing UI in android

Hi all, Im using Relative layout for designing UI. Please give me guidelines to follow. Thanks in advance.. ...

Android contact picking - only contacts with numbers?

I'm writing an application that requires the user to choose a contact from the contact list in order to send an SMS to that contact. Is there any way I can query the contact list for just those contacts with a phone number (i.e. not the ones with just e-mail addresses)? Currently my code looks like the following, but this shows all conta...

What is the Android widget type used in e.g. the Settings menu?

The Android settings menu is a list of options, each with some subtext (in the vanilla Google implementation; not in Sense UI) and an image (a down arrow in vanilla, custom icons in Sense UI). They are selectable and open a sub menu (Activity?) when clicked, like a button. What is this widget? Is it available in the android.widget packa...