android

Show feeds in android

Hi.. I want to show feeds from a blog in a listview. It would be really help if you guys can suggest some tutorials or how to do it? thanks in adv. ...

how to check wifi or 3g network is available on android device

Here, my android device supports both wifi and 3g. At particular time which network is available on this device. Because my requirement is when 3g is available I have to upload small amount of data. when wifi is available entire data have to upload. So, I have to check connection is wifi or 3g. Please help me. Thanks in advance. ...

Finger drag on motorola droid

Hello, I am programming an android application and my "testing" device is a Motorola Milestone (Droid). I have done a grid that scroll like the iPhone home menu ( with "points"). I got two problems: The first one : the drag only works on the Android Device Emulator and don't on the Droid! (Maybe the multi-touch screen is a problem?) Th...

which view is getting loaded in TabControl

Where should i use this event in my code, as i am a fresher with android public class Test extends TabActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TabHost host = getTabHost(); host.addTab(host.newTabSpec("Test1").setIndicator(n...

Android: Global hotkeys

I'm looking for a way for a user of my android application to specify a hardware button (be it scrollbutton click, any of the volume buttons, optional camera button, etc) and the ability to create a global 'hotkey' to this hardware button even when my application is in the background or the screen is locked. Is this possible at all? If ...

Android how to make View highlight when clicked?

I have a linear layout in which each row is inflated programatically and I want the rows to behave like the ListView when clicked on. That is, I want the row to highlight in the exact same way/colour that the default ListView does. How would I go about doing this? ...

ScrollView .scrollTo not working? Saving ScrollView position on rotation.

Ok.. I must be overlooking something real simple here, but i think i'm trying to do something fairly basic.. Simply retain the scrollbar position of a ScrollView on orientation change... Here is the code for my onSaveInstanceState and onRestoreInstanceState.. sView is the container for the ScrollView layout. Within my scrollview is a ...

Drawable-hdpi, Drawable-mdpi, Drawable-ldpi Android

Hello, I was working on Android 1.5, but now moved to the latest version. So there is only "drawable" folder in Android 1.5, but now There are 3 different folder for storing images in android project. And as i have found some articles for these 3 folders that hdpi means High-dpi mdpi means medium-dpi ldpi means low-dpi But stil...

Android changing tableLayout from code doesn't work

I got a strange problem with replacing a table row from code. My XML code looks like this: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TableLayout xmlns:android="http://schemas.androi...

Android how to make ImageView with a minWidth have a border?

I want to diplay an image so that it takes up a minmum width of the screen and should scale in its aspect ratio (the image width might be smaller or larger than the minimun width) I also want to have a fixed size border around this image. This is my xml section for it: <ImageView android:id="@+id/detailed_view_boxArt" an...

Abt Retreiving the latitude and longtitude of the device

Hi Friends,i want to retreive the latitude and longtitude of the user's present location,i already tried using location observer which fires event based upon the given input distance and time,Hence it triggers the event to identify the location based upon the given time duration and distance. And What i want is method,to get the locati...

Border for an Image view in Android?

Hi Folks, I would need to set the Border and handle the color for an ImageView in AndroidHow? Thanks. ...

How to fetch video file from android device

How to fetch video file from android device like fetch images? How to caputre video from android device camera and select it and add to application ? any body have idea about it ? plz give me code for it... ...

Account exception about Calendar widget of Android sdk 2.1

I'm running the Calendar widget of the Android SDK2.1 on my device, and get authentication exception. It sounds that something is wrong with the accountmanager. How could I fixed that problem. Thanks! Here is the log: root@jacky-desktop:~# I/ActivityManager( 753): Starting activity: Intent { act=android.intent.action.MAIN cat=[android...

How to fetch the Email form device ?

How to fetch Email from android device like as fetch SMS from android device ? any body have idea about it? if possible , plz give me code about it ... ...

What's the best android mobile phone for application development

Hi, I will have to develop some android applications. Witch mobile phone is better for application development : Google Nexus One / Htc Droid Incredible / Htc Evo 4G / Motorola Droid ? I have to develop on Android 2.1 and 2.2. All those devices will have the update I think. Thanks for ideas ...

Save State in my Android application

Hi. I am developing an android application in which,the first activity is that for Login. After successful authentication, user can see an activity with 4 Tabs. My problem is that when user taps on the home button,the application should terminate and when the user again starts my application, he should be able to see the Login screen aga...

Playing a video in VideoView in Android

I can't figure out why am i not able to play the video in my VideoView. All i'm getting a message is Cannot Play Video : Sorry, this video cannot be played. I created an SD card for my emulator as well. Do i need to place me SD card in a particular folder in my SDK? Please comment. Here's the layout: <?xml version="1.0" encoding="u...

Check Listener running or not

I have boot loader listener. But After user install the application my listener does not start until first boot-up. is there any way to check whether my listener running or not? ...

SELECT MAX(column) returning only column name

Hi, This has got me all confused! I'm trying to return the max value from a column in my database but the return value is always the name of the column. The query I use: private static final String SELECTMAX = "SELECT MAX(?) FROM " + TABLE_NAME ; The (test) function to return the max value: public int getMaxValue(String field...