android

How can Android connect to Drupal service?

Dear all, I am writing an android program and I need to connect to the Drupal service to fretch the data or submit data. How can I do that? Thank you very much!!! ...

Way to parse XML (org.w3c.Document) on Android

Can anyone point me to a explanation for or explain to me how I can easily parse the XML and get values of a w3c.Document on Android using only Android OS Libs? I tried to use a implementation of dom4j, but it is very slow :-( ...

Android Scale Animation

I want to animate imageviews using the scale animation the problem is that after animating on imageview how to make sure that the next one is required to start Please help me fixing this ...

How to access internet from android emulator?

Hi, i have used below steps for setup the my emulator 1.C:\Program Files\android-sdk-windows\tools>adb shell 2. # sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db 3. sqlite> INSERT INTO system VALUES(99,’http_proxy', '10.10.8.1:8080'); after that i closed adb shell command prompt and my emulator. and the...

Native Flash on mobile platforms?

Does anyone know if Flash will be able to run independent from the browser? I mean native apps in Flash, not just the player in a browser. The Symbian OS can do that, however I have yet to find an article which explicitly states what will become available in the case of the iPhone and the Android platform. I am not asking about dates, as...

Showing simple message dialogs

Hi, In my activity, I'd like to show simple info dialogs, stuff like: new AlertDialog.Builder(context).setMessage(message).show(); if I do that, the dialog will leak when I rotate that phone (not to mention it will disappear as well, so the user may miss it). I can use the managed dialogs, but I'm not sure how you use it sensibly for...

Bottom bar on Android

How can I have a layout where there is a view occupying most of the top of the screen and a bottom bar below it in the bottom of the screen without setting size for top view directly? ...

Android - incremental status bar notification icon

You know what I'm talking about: for example when you get multiple new emails the notification icon in the status bar is augmented with a little red circle that contains number of unread mails. Twitroid has the same icon. Any idea how it's done? I don't think (or so I hope) there are 10000 similar icons. Is this red circle generated and ...

Android: difference in ACTION_SEND between api level 2 and 5?

I have an android app that wants to initiate an email. The following code works in an api level 5 emulator, but not on a level 2 emulator or device: Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Email from MyApp"); emailIntent.setType("text/plain"); email...

How long is the event onLongPress in the Android?

Android supports an event onLongPress. The question I have is 'how long' (in milliseconds) is the 'press' to trigger the event? ...

Rotating a view in android

Hello i have a button i want to put on a 45 degree angle. For some reason i cant get this to work. Can someone please provide code to accomplish this? ...

Unit testing Android apps and specifically related to db's

What is the easiest way to create some kind of test harness for Android apps and to be able to visualize (even on the emulator) what is going into the db? I want to test things like constraints, look at the data, unit test methods, etc. Is there any kind of GUI tool that I can hook up to the emulator to be able to look at the db of a p...

Why Android R.java file can be in src/ or gen/ ?

Hi all, When i started learning android i learned that R.java files goes to /gen folder recently i saw it on /src file ( in WROX-Professional Android App Dev- sample code downloads ). How does this work. and also in some code i saw ( xml layout ) android:id="@+id/R.id.someName" ( i don't remember in which web page i saw this code ,...

Can Android do peer-to-peer ad-hoc networking?

Is it possible to set up Android in ad-hoc peer-to-peer wifi mode? For example, I would like to have one phone broadcast a message, and have all peers in the network receive the broadcast, without having a server. I would like to use wifi since bluetooth range is more limited. ...

How can I instruct IntelliJ Idea to not include certatin dependencies (android)

My project layout is /ServerModule /commonClasses /AndroidClient /needsToIncludeSomeCommonClasses but as soon as i want to compile and build my AndroidClient IntelliJ adds the server libs to the compile classpath of my android project and I get a UNEXPECTED TOP-LEVEL EXCEPTION because of multiple classes that are present in andro...

Shoutcast streaming

hi, im currently working on a app for a podcast (katg.com) which will let you listen live etc... however, i have not found any open source code available to stream shoutcast. I know there are some ways of doing it, but I find it hard to find any available code on the net that explains it for a java/android beginner like myself. Anyone k...

Opening an Image file inside the assets folder

Hi all I'm new to android I have a .gif file inside the assets folder like this assets/Files/android.gif when I try to open the file it throws an exception at the second line AssetManager mngr=getAssets(); InputStream is2=mngr.open("Files/android.gif"); so is it that I'm trying to open an image file despite that the same code works if...

Multitouch on an Android app

Is multitouch available to Android app developers? I've heard its on the new 2.0 version but only seen it accomplished on the internet browser. ...

OpenGL ES drawing issues in Android NDK

Due to performance issues, I have had to transfer my android opengl code from Java to C. I believe I transfered all of the OpenGL code, but I now have many errors with the section of my code that draws a bitmap as a texture to the screen. When I run the project in an emulator, the current code does not display anything and appears to h...

Android App. Development

I am hoping to learn how to develope Android Applications but know little to nothing about how to go about the process. I was hoping to hear your recommendations on what equipment (preferrably free if possible) to use as well as the best way to learn go about developing. I am sorry if this question is too broad. ...