android

How to estimate my position using Wifi Access Point.

hi all. i'm (newbie) working on android platform 2.1 and i want to estimate my location using WiFi Access Point. i tried with GPS_Provider and Network_Provider but i want to estimate it specifically with WiFi AP in Network_Provider and not through Cell towers. is there any way to get my location through WiFi AP? if yes then how? tha...

Does the Android debugger truncate debug messages ?

Im asking because Im trying to debug a SQL query problem and adb only seems to show part of the SQL string and chops off the end. Im getting an "unrecognized token" error when running a query: W/System.err(18917): android.database.sqlite.SQLiteException: unrecognized token: "931C6752DF97CFDACD130A06CAE0E7DA6320DE2945FFFA0A65629BC687256...

Reading and storing values - Android

I develop app and I need to store and read ( read every 60 seconds, store rare ) data. What is the most easy way to achieve this? Does anybody have code sample to help me ? ...

Can an Android AIR app call an NDK library?

Using AIR for Android, is it possible to call from Flex into an NDK library? If so, how can this be done? I have a large C library that I need to use. I know that I can do this from an Android Java app (through JNI), but I have a large Flex codebase that I'd like to reuse. ...

How can I publish an update to Android application with a different developer account?

We are migrating to a new Android developer account and I was wondering if anyone had any suggestions about the best way to transition apps to the new account. From what I can find, the only suggestions I've seen were to publish an update to the old app notifying the user of the new updated app. This requires us to publish the apps unde...

Is it possible for Android to return the number of samples per some X time from the touch screen?

Basically, I am trying to write a benchmark application to test the responsiveness of different Android devices' touchscreens. I figured the best way to go about doing this is to write an application that counts the number of samples returned from the touchscreen whenever it is touched. Unfortunately, I have no idea if this is possible...

Servlet unavailable in AppEngine with Android Client

I am getting the following info log in GAE's console: "POST /xxx HTTP/1.1" 200 133 - "Apache-HttpClient/UNAVAILABLE (java 1.4),gzip(gfe)" I can not understand if the servlet is not available, why is "200" being returned. I checked web.xml file for servlet mapping and they seem fine. What else could be causing it. Is it even an error on ...

In Android, how do you capture the text value of the item clicked in a ListView?

What I'm trying to do is set the text of the item I click on into the myEditText. Not sure how to access the specific item in ListView though... ListView myListView = (ListView)findViewById(R.id.myListView); final EditText myEditText = (EditText)findViewById(R.id.myEditText); ... myListView.setAdapter(aa); myListVie...

How does an Android app load a keyboard?

I need to bring up a few different keyboards: a 'standard' keyboard with Ctrl and Alt keys; maybe a cursor pad; and so on. I have found the Keyboard class, which would let me define a keyboard in an XML resource. I have found that the KeyboardView class has a setKeyboard method ... and, so far, I have not found any other class that take...

android build.xml multiple source directories

So I made a project with 2 source directories: one for actual code and the other for tests. It worked well in eclipse but then I decided to start using command line and the ant tool. Android has a built-in function of generating build.xml, so I used the command 'android update project -p ProjectName' This build.xml for installing works...

Share to Facebook, "your link could not be shared"

I'm adding the ability to share scores from my app using android's share intent: Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND); shareIntent.setType("text/plain"); shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "My Score"); shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, "I scored "+score+" on "+...

session cookies work on emulator, but not real device

I'm developing an app using android 2.1. I have a problem with using session cookies to login to a RESTful web service. The code works fine on the emulator, but when I run it on my HTC Magic, the cookie logic doesn't work. I've confirmed that the magic is receiving cookies in the headers by listing them (see attached). Can anyone say wh...

how to invoke an activity from a service

Could some one please tell me how to invoke an activity from a service when the service receives some content from a server. the service keeps getting the data and the activity needs to update itself. I am unable to find a good tutorial for broadcast intents stuff. ...

Android start intent to view apk

In my application I am downloading and saving an apk to the sdk card and then I want to start the installation of the apk. I'm using the following code to attempt this: Intent intent =new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(file), "application/vnd.android.package-archive"); activity.startActiv...

How to create a context menu from code

I'm getting all kinds of errors when using res/menu/menu_home.xml, and my project won't build. That's when I remembered that there was a way to create menus from java code instead of declaring it via xml. Does someone remember how to do that? ...

Android: How to make a specific SharedPreference reset itself after the system reboots?

I have a SharedPreference that I need to reset itself to its initial value after the phone reboots... any ideas? ...

Non-Android Market distributers, who's legit and who's not?

I recently logged into my Gmail account which is tied to my Android Developer account and I found two emails regarding distribution of my application through markets other than the Android Market. The first was from "Ubinuri, Inc., a distributor of Android-based mobile applications through local app stores in Korea" which wanted me to ...

Swap between listactivity and mapactivity android programming

I am trying to create a listactivity and mapactivity.And I am trying to swap between the two. I am new to android and I was wondering if I might get any guidance. I have the content to display listActivity and the content to display mapactivity.But not swap them at the same time. Please help... ...

facebook session id using facebook-android-sdk

I successfully integrate the facebook-android-sdk. When I login successfully, only information I got is access_token where as I need session_id which is set in the cookie if user is logged in through web. Is there any way of get session_id through facebook_android_sdk?? ...

Android: How to pass ArrayList<customObject> between Activities?

Hi everyone! How can I pass a Object: ArrayList from one Activity to another? Seems that intent cannot hold custom ones except ArrayList. As a kind of hack, I use a static member: staticResultList = new ArrayList<SingleExamResult>(m_examResults); and Get it in the following Activity by: m_examResults = DoExam.staticResultList; I...