android

From Web Development to Android Development

Hi , I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I need to learn ? If any one could provide links to a beginners guide or something similar that would be much appreciated Thanks ...

Android Available Ram

How much RAM is available for use by each app? I read somewhere that each app could only use a max of 16 mb, but the total system memory is much higher. ...

show spinner before adding widget android

For a widget I am creating for the Android OS, I want the user to first select a certain option from a Spinner. Just like when you add a shortcut to the homescreen. Is that possible or do you have to start an Activity? If it is possible, can anyone explain how to do it? ...

Is it possible to use android's speech recognition without showing the dialog?

I want to use the speech to text api in android, but I don't want to be slowed down by those dialogs. Is it possible to use the functionality without them? ...

Why is WebView unable to open some local URLs (Android)?

I have a WebView that I'm using to open some files stored in the assets/ directory of my project. It works fine for most of the files, but there's one in particular (and I'm sure others I haven't found) that it just will not open. The file I'm having problems with is named: "assets/ContentRoot/Photos/XXX Software Logo - jpg - 75%.JPG...

How should I give images rounded corners in Android?

I would like to change an image I loaded to have round corners. Any hints, tutorials, best practices you know of? ...

Where is a list of available intents in Android?

Hi all, I'm starting to learn how to develop apps for Android, and I'm having some issues with intents--it just doesn't seem like they're documented at all. All I want to do is send the user to the video recorder, where they record a video, and the video information is returned to my app. I know this is possible, as I've seen it in othe...

ListView Click event

I am having a List of Item which I retrieved from my Sqlite DB... I wants to set Click event for each n every item.. How I can customise this event based on Item clicked???? Be Descriptive... I am a Begineer.. The method tht I used to fill data in my List .. private void fillData() { db = new DBAdapter(this); db.open(); ArrayList db...

Resolution support in Android 2.0

Received an email from my first Motorola Droid user. The new 480x854 resolution introduced in Android 2.0 (as opposed to 320x480) is wreaking havoc with my user interfaces. Everything is smaller and ill-positioned. I was under the impression that if we follow the XML layout guides we were resolution-safe, as no absolute coordinates are ...

Receiving MP3 play actions in a BroadcastReceiver in Android

I am trying to build an Android Service that should get notified when the user starts playing an MP3. I checked LogCat when I start playing a song and saw that the following Intent is logged: Intent { act=com.android.music.PLAYBACK_VIEWER flg=0x4000000 cmp=com.android.music/.MediaPlaybackActivity } I couldn't figure out how to write a...

Android: making search available throughout the whole application

Right now I'm adding <intent-filter> <action android:name="android.intent.action.SEARCH" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> <meta-data android:name="android.app.searchable" android:resource="@xml/searchable" /> to every single <activity> in the AndroidManifest.xml, receive the Intent in e...

Android requestLocationUpdates and time needed to get a gps fix

I am using the requestLocationUpdates method of LocationManager to get GPS location updates. I am using a minTime parameter of 60000 to indicate that I'd like a location update every minute - I don't care about minDistance (I use a value of 0 as minDistance). If I can understand correctly the android documentation, my LocationListener w...

Can I animate(scale) just one component of an android layout and have the layout update during animation

Imagine I have a toolbar implemented as a horizontal LinearLayout as follows: [___Button1____] [___Button2___] [___Button3___] [___Button4___] When someone clicks on Button2, I want the toolbar to change to: [___Button1____] [___________Button2___________] [___Button3___] The toolbar should transition from the first state to th...

Android: ListView elements with multiple clickable buttons

I've a ListView where every element in the list contains a TextView and two different Buttons. Something like this: ListView -------------------- [Text] [Button 1][Button 2] -------------------- [Text] [Button 1][Button 2] -------------------- ... (and so on) ... With this code I can create an OnItemClickListener for the whole item: ...

listview adapter implementation

Hi all, With the application i am working on i came with the following problem. I have a listview that should display data from a data base table. There are two scenarios that could happen: Scenario one - the database table is filling dynamically and the listview also should dynamically display table's information e.g to grow dependin...

HTML5 <video> element on Android

Hi, According to: http://developer.android.com/sdk/android-2.0-highlights.html Android 2.0 should support the HTML5 video element. I haven't been able to get this to work using a Motorola Droid, and haven't been able to successfully view a video on any of the HTML5 video example pages out there. Since there currently isn't support for...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity's launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would reuse a single Activity instance and give me the Intent in the onNewIntent callback. I did both of these things, and onNewIntent never fi...

Android: Can I take a screen capture from an app?

I was wondering if there is a way to take a screenshot of the current screen inside the mobile phone using a service (I know how to do it through DDMS though) ...

Using Parcelable with circular references

It appears that Parcelable doesn't gracefully handle circular references like Serializable does. In the following example, the Serialization of Bar works just fine, but writing it to a Parcel causes a stackoverflow: I/TestRunner( 1571): java.lang.StackOverflowError I/TestRunner( 1571): at android.os.Parcel.writeParcelable(Parcel.jav...

Problem in GPS while running in timer

Hi frinds I am presently working on GPS. I have to start GPS periodically. I mean I want GPS to start after a particular interval, get Location value and then stop taking location updates. For this, I'm calling requestLocationUpdates( , , ) method in a timer. Then in onLocationChanged(), I stop taking location by using removeUpdates(). ...