android

Android view problem

Hi All, My question is suppose i have to views(Screen). when i open my application from the emulator first screen should stay for just 5 secs and automatically new screen should appear(2nd). i Know i can do this through timer concept but dnt know hwto do that in android? So pls help me in this problem. ...

Android, Drupal & DrupalCloud or Android-xmlrpc tutorial?

Does anyone know of a good tutorial for any of the above? I need to send data to Drupal from and Android phone. Data is stored in XML but can be converted to JSON easily. Then it needs to be stored in a user's profile. thanks ...

using merge with layouts giving error for one file, no error on other. same code!

I am creating a few layouts with the root element being merge. inside the merge element i have a ScrollView containing a TextView. Here is the file: <?xml version="1.0" encoding="utf-8"?> <merge xmlns:android="http://schemas.android.com/apk/res/android"&gt; <ScrollView android:id="@+id/scroll" android:padding="6dp" and...

A non-programmers guide to programming

Okay so I am a very low level programmer and happy to admit it. I can write simple programs things like VB and python etc given the basic syntax. I want to write simple programs for android, for instance a calculator that handles feet and inches and a program that simply searches a database of products and tells me the details of them....

Best practices for exposing multiple tables using content providers in Android

I'm building an app where I have a table for events and a table for venues. I want to be able to grant other applications access to this data. I have a few questions related to best practices for this kind of problem. How should I structure the database classes? I currently have classes for EventsDbAdapter and VenuesDbAdapter, which pr...

[Android] how to get the redirected page html in hotspot

I am using Android to develop an application. I connected to hotspot, after then, I sent http request to the "http://www.google.com" web page using HttpURLConnection or HttpClient. It should not response, because the connection is not made yet, so it will be redirected to authentication page ot the hotspot. I wish to get the authentica...

Android : How to get Content URIs

Hello I am new to android programming and wanted to know if there is a list of content URI available for reference for eg. content://sms/inbox - is content URI to access SMS inbox. is there any such list which provides all the content URIs which can be used with the android system to get the data. I have searched the android SDK d...

Display AlertDialog as system overlay window from Service

I have issue with displaying AlertDialog from Service. I am able to display custom layout window using Toast or using WindowManager(TYPE_SYSTEM_ALERT or TYPE_SYSTEM_OVERLAY). But, I do not want to use custom layout, I prefer to use nice AlertDialog GUI directly. Scenario: Running Service. No active Activity present. On some external e...

setting up a ksoap request

I am using Ksoap from Android to access a .net web service. The wsdl is formatted like this <filter> <DateFrom> Date1 </DateFrom> <DateTo> Date2 </DateTo> </filter> I use addProperty("DateFrom", date1) same for DateTo. How do I tell ksoap about filter. The service has a helloword that I can access correctly. When I try the dat...

External library needs org.apache.commons.httpclient instead of org.apache.commons.http.client

I'm trying to use the Amazon Web Services Java SDK jar in an Android project in Eclipse, but it has references to org.apache.commons.httpclient. All I seem to have in my Android SDK (2.2) is org.apache.commons.http.client, which is a different namespace and obviously causes the build to fail. I'm new to Java, Eclipse, and Android dev.....

What is the procedure to detect if an Android device has SMS send capability?

What is the procedure to detect if an Android device has SMS send capability? I want my app to know if the device has the capability to send an SMS message before trying to actually trying to send it. Thanks. ...

app working under 2.1 android now hangs on 2.2 both in emulator and desire

Hi - hope someone can point me in the right direction. I have written a simple tile sliding game which works fine on 1.6 to 2.1, however on 2.2 it starts up and lets the user make two moves then on the third move it hangs - just doesn't respond at all. This is wierd because the code for all moves is identical. I have tried to see i...

ant_rules_r3.xml : error

I'm running mac osx. I downloaded the latest version of the SDK starter package (platform api7, revision 2). I use processing version of the build (190).When I try to run I get the errors below.I don't know what is it ? I hope who can help me getting started with android processing,please. Thanks. BUILD FAILED /Users/ed_crub/Document...

Why is there extra padding on the bottom of my row?

I have the following layout. This defines a row in my ListView. I noticed that the text is not centered in the row. There seems to be extra bottom padding. How can I make the text appear in the center, vertically, so there is no padding? <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk...

selecet images randomly from drawble.

I have a number of images in drawable folder. I want to show images randomly from drawable. Please anyone provide me with an example. Thanks. ...

How to stop an Activity in android.

Hi all, My code looks as follows.. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { Thread.sleep(3000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } fi...

Android private content provider?

Hello, I am developing an application that involves some sensitive user information. I retrieve this information via a private web API. I am trying to determine the best way to get this data into my app. Right now I'm exploring creating a content provider that can do so; my hesitation is in making it secure. I want this data to be usabl...

Is it possible to sell a commercial android app using OpenCV android port?

I'm interested in developing an android app that makes use of an OpenCV android port at http://code.google.com/p/android-opencv/. Particularly, I want to use SURF features which comes embedded in the OpenCV framework but I'm not sure if then I will be able to sell this app. Anyway, is there any non-free app making use of any of the Open...

Android - When using LocationManager.requestLocationUpdates, do I need a WakeLock?

My app periodically checks the location using an alarm to a BroastcastReceiver that starts a service. I know I should acquire a wakelock before I start the service but my question is when can I release it? If I release the wakelock after calling requestLocationUpdates, can the device go to sleep and not call my LocationListener or will...

Any way around awful SecretKeyFactory performance with LVL and AESObfuscator?

I'm looking to use the new licensing (LVL) stuff with Android Marketplace, but I'm running into a performance problem with the stock AESObfuscator. Specifically, the constructor takes several seconds to run on a device (pure agony on emulator). Since this code needs to run to even check for cached license responses, it puts a serious d...