android

Android: Edit project properties

I have a project which I created before few days like test project and now after I done some very nice stuff with it I need to change some basic information about a project. I use Eclipse IDE and I menage to change some tings, class names itd. But problem i have now is I can found a place where to change a project name ??? In...

android ProgressDialog: setting custom view instead of message - does this work?

In ProgressDialog's documentation it says: "A dialog showing a progress indicator and an optional text message or view. Only a text message or a view can be used at the same time." I've gotten it working beautifully with a message, but I want to use a custom view instead - a message with a cancel button. But calling setView() on the P...

Android Seller Refunds and Cancelations - Can users still upgrade their apps?

I want to refund a customer's money without restricting their use of the app. Basically I want to give the app to some people for free by refunding their money. Prior to funds being transfered I can "Cancel entire order." After funds have been transfered I can "Refund Some Money." In either, or both, of these scenarios does the custom...

notifyDataSetChanged() doesn't update ListView

protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode == RESULT_OK) { deserializeQuotes(); quotesAdapter.notifyDataSetChanged(); } } My array clearly has been updated, and I can see the change when my app starts, but why doesn't it update in this metho...

Android Context Menu within Wikitude API

Hello all, I am using the wikitude API within my app. For those who may not know, wikitude is an Augmented Reality app that displays poi's (points of interest) via the phones camera. Within the wikitude API, on selecting a poi, the user is presented with a pre-developed dialog window that consists of a text view & two buttons. The acti...

New to Android. Is it possible for the user to specify the name of a Database to be created? Also on using multiple databases.

Hi everyone. I'm very new to Android. I'm thinking about creating an application that uses multiple databases. The user would be able to specify the name of the database to be created, and select which database to use from those existing in the /databases/ directory. Is this possible in android? ...

clickable imageview location change with animation - android

I have an imageview that's included inside a RelativeLayout. When the imageview is clicked, I animate the entire RelativeLayout with a translate animation to move it down. when I click the imageview again (in it's new location) it's supposed to move it back up, but it does not. However, if I click where the imageview started, it does ...

Where to save Android GPS (Latitude , Longitude) points?

Hi, On onLocationChanged event I want to save my GPS route (Latitude , Longitude). Later I want to load this data and draw the route. Who is the best way to do this, by using some array type (and save or load by using database) or XML files or something else? Thanks. ...

How to navigate between views? without losing data of the initial view

I have a login page which has a Advanced button. The button sets a view where a user can add some information. When I click save, it goes back to my main view (loginpage) and all info is cleared? How can I save the state of the first view when navigating away and then back to it? Thanks ...

Android not respecting metatag removal?

I created a sample script to add and remove metatags from the head. But Android 2.2 doesn't seem to respect it's removal. However it does respect the addition of the metatag on click for example.. How do I get it to respect the removal of the tag and revert to the default viewport through javascript? <script type="text/javascript"> $(d...

how to instantiate an XmlPullParser in android-8?

Hi-- I am trying to use an XMLPullParser to parse some XML for an android app. I am classpathing in android.jar from the android-8 SDK. Alas, this code: import android.util.Xml; import org.xmlpull.v1.XmlPullParser; class InstantiateXMLPullParser { public static void main( String args[] ){ XmlPullParser xpp = Xml.newPullParser(...

How can I parse this JSON in Android?

I want to pull out the user block. The JSON result will always change, sometimes 4 users will be returned, sometimes 10 etc. { "results": [ { "user": { "avatar_url_thumb": "http://avatars.stocktwits.com/production/9998/thumb-1270014645.png?1270014645", "avatar_url_medium": "http://avatars...

Resource not found TextView

Hello I am taking my first steps in Android and am starting with a very simple app which keeps track of progress through a knitting pattern and shows the instructions for the relevant row. I want to update a couple of TextView objects programmatically. However, using getViewById() does not seem to identify them properly and the app cra...

Android Copy and Paste with TextView

I have a textview which displays a lot of text. My users want to highlight and copy a snip of code to the clipboard. Any pointers on how to do that? ...

Is there any way to force the portrait screen even the hard keyboard is popped?

I specified an activity to be portrait-only in menifest file: <activity android:name="mytest" android:alwaysRetainTaskState="true" android:windowSoftInputMode="adjustResize|stateAlwaysHidden" android:screenOrientation="portrait"> But it won't work on Droid when its hard keyboard is popped out....

Default marker for android google MAPVIEW?

Hi guys, Just wondering if there is a standard/default overlay/marker that I can use in the MAPVIEW? I have been searching on the web and all tutorials talk about extending the Overlay and put your custom image on it. Is there a easier way? I just want to have the a marker, nothing fancy. Regards James ...

AlertDialog setContentView taking over screen

Perhaps I'm missing something obvious here, but I'm having a hard time setting a custom view for the body of an AlertDialog. Here's what I'm doing to set the custom view: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setContentView(View.inflate(getContext(), R.layout.dialog_body, n...

Android Application, xml file errors :(

So I'm trying to follow this tutorial... to learn android, and I'm having a hard time because I feel like the tutorial was written with errors, and its hard to try and learn when you are teaching yourself errors.. Here is what the tutorial says: Start by creating a new todolist_item.xml resource in the res/layout folder. It will speci...

How to post message to wall (Android + FBConnect)

Hi. I need to post message to a wall using FBConnect library for Android. How to do this? ...

Strange issue with capturing Bluetooth packets from Android JNI shared library

Hi, I have a question having to do with Bluetooth programming in C. I'm working on the Android platform, but anyone skilled with the Bluez stack should be able to lend some insight... I am trying to write an application to capture Bluetooth packets from within an Android application, which is written in Java and runs in the Dalvik Virt...