android

Android Tutorials HelloGridView & HelloFormStuff Problem

Hello, I've been going through the Tutorials on http://developer.android.com and mostly everything's been fine, until I got to the HelloGridView tutorial. I entered my code, compiled just fine and ran it, and the emulator launches and then says that the application has to close, but Eclipse doesn't show any errors at all. I can't seem to...

How can I transfer an Android application I have developed to another phone ?

I have developed my first small Android application using Eclipse and managed to transfer it to my Samsung Galaxy S mobile phone. My collegue at work has got another Android mobile phone running the same version (Android 2.1). How can I give him my new application without him needing to install an development environment? Is this possi...

[Android] How to make list multi items(image and text) in alertdialog

hii .. I want to make this kind alertdialog.. http://mobile.tutsplus.com/tutorials/android/android-sdk-sending-pictures-the-easy-way/ can you help find a solution??? thanks before.. :D ...

loading flash files (.swf) webview in android

I have a .swf file and i want to open it into webview and also wanna play flash games loaded there in webview. how to do that? please suggest me.. ...

Extending HelloGallery tutorial. Click on Image and pass the image to another activity/page

Hello! I am very new to Android (and Java) originally a C# developer.. and am struggling with the concepts and terminology. I have been through almost all the tutorials and have decided to start on my first test app. The first part of my app is going to involve using the gallery widget (based on the hello gallery tutorial) to display a...

Android: Using the same ListView for different lists

Hi, I have a 3 buttons, say LanguageButton, CountryButton and PinCodeButton. When LanguageButton is pressed, I must display a list of languages. Similarly for CountryButton a list of countries and so on. Only one list is to be displayed at a time. My question is whether it is better to define a single ListView in my layout or 3 separa...

Android Tab Layout tutorial?

I want to be able to assign different images to my tabs in the TabLayout control depending on whether the item is selected or not. I followed the tutorial on the Android site but they made the example with just one image and for it it works. But it doesn't work for the rest of the tabs. How can I make it work? This is my code: The main ...

ListView scrolling lag in android

Hi, I am having a customized list view in my application, which is showing an image and text. The Image I am getting from URL, using the code below: private static Drawable ImageOperations(Context ctx, String url, String saveFilename) { try { InputStream is = (InputStream) fetch(url); Drawable d = Drawable.c...

Beginning Android Programming - Adding Ads to the App

Okay, so I recently completed most of my first app for android. It's almost ready for the market, but I'd like to put in ads. I have installed and registered with AdWhirl, but I cannot figure out how to actually make ads show up, based on their instructions. I have found a few resources out there that help somewhat (such as http://malsan...

Is self-call possible using Android

I am developing an android application where I need to have an IVR type system. The person should get a call from the application and some questions will be asked and the person has to answer those questions. These answers should be saved somewhere. Is a self call possible? If not, is there a way to play and record at the same time. I ...

dom parser problem in android

Hi friends I am getting the value from webservice .i am getting string .i want to parse value my values are like <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; <soap:Bod...

How can I tell my app to use 3G only, not wifi?

I am being asked to write an app that will only work on 3G, and not on wifi, how can I do this? ...

How to save state during orientation change in Android if the state is made of my classes?

Hello, I was looking at the way Android handles orientation change for my application (I discovered that it restarts the mainactivity on orientation change :| ). I've seen that you can ovveride the method protected void onSaveInstanceState(Bundle outState) to save stuff, then have the in onStart. The problem is that I've my view wit...

Android system / system context / replace classes

Hi I'm engineer but more from a chip/assembler x86 level. I'm new to Android. Still figuring some general things out. I have written some apps, but have a general question. If I were to write an improved version of - let's say - TextView. Is it possible to make all app's on the system using this class, basically replace TextView? How are...

Android AVD rotate Portrait/Landscape How?

Hi! I am new to Android development. I know if you change a android phone from portrait to landscape sometimes the app relays its self out on the screen.. so how do I simulate rotating a phone with the AVD? On the Blackberry emulators there's a button in the menu to turn the phone, but I can't find it or any option on the Android ones?...

Dynamically changing the text color, on Alarm notification

Hi all, Currently i am in middle of developing Alarm app, for android. Basically what i want to achieve is that, whenever my alarm is fired , i want the textview color to be changed to red. I have multiple alarms in my application. Where should i write the color change event for textview? And in BroadcastReceiver:onReceive(), exactly...

Android set default keyboard

Hi everybody, i want to set scandinavian keyboard as default keyboard on an android device and i want to do this by code. So i try with InputMethodManager : InputMethodManager mng = (InputMethodManager)getSystemService(LoginActivity.INPUT_METHOD_SERVICE); List<InputMethodInfo> m_list=mng.getInputMethodList(); and i find the method set...

How to add a background image to an Android Activity?

My goal is to develop a GUI application on top of a background image with buttons in specific places on the image. The first step is to display the background. The image can be displayed with resources and is described in several FAQs including this one: how-to-add-background-image-to-activity It compiles and runs without errors, but...

Android Webview - Webpage should fit the device screen

Hi All, I have tried the following to fit the webpage based on the device screen size. mWebview.setInitialScale(30); and then set the metadata viewport <meta name="viewport" content="width=320, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />" <meta name="viewport" content="width=device-width; initial-scal...

grouping texts plus images + round edges in android.

i was requested to make in android a view that groups several items like checkboxes or text views in vertical rows, separated by transparent dividers while the background is with a certain alpha level and the edges are round. I thought of two solutions and i hope for some feedback on good\bad or other solutions if you got'em. just use...