android

Convert from UNIX Timestamp to "Today at: currentTime" using Java

Hello! I've tried to convert a UNIX Timestamp to todays date time. Like I have a simple UNIX Timestamp and then I want to convert it like this: Today at: theTimeFromMyTimestamp Anyone that has a correct solution for this? Thanks in advance! ...

Android - Execute action when phone is locked

Hi, I want to know how I can execute some action, or continue listening to sensor or battery change events when the phone is locked. (When the phone is locked it stops listening to sensor changes.) I've tried with wakelocks but I it doesn't work (maybe I'm using it wrong). Any help would be appreciated. ...

How to intercept Incoming call and respond through SMS in android ?

Hi, In my app , i have to intercept incoming and respond with with sms ? can any one help to solve above one ? ...

Android, remove custom button border

Hi, I used this selector code for my custom button (simple.xml) <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; <item android:state_focused="true" android:state_pressed="false" android:drawable="@drawable/focused" /> <item android:state_focused="true" andr...

Android - Learning Java

Hello out there.. I want to find some resources about java programming for android. I have a little knowledge on java programming so the guide have to begin from novice. In other words i need a tutorial/ebook to learn java programming that i can use latter for android development. Can you suggest me something that you have read or you...

android.view.inflateexception in android application

Hai, I am getting android.view.inflateexception while using google map in my application. How to avoid it .please help.enter code here enter code heremapView=(MapView)findViewById(R.id.mapview); mapView.setBuiltInZoomControls(true); List<Overlay> mapOverlays = mapView....

Populating AutoCompleteTextView with contacts

Hi , I want to populate the AutoCompleteTextView with contacts.I have tried the one present in ApI Demos but its not cumg.So,Plz help me out..Thnx in ADV.. ...

Warnings during compiling an Eclipse Project

Hey guys! I always get some warnings during my compilation. These hex addresses exist... There are a few more (6 right now), and while debugging its really annoying to see those warnings all the time. So, how to prevent that? I've heared, its a common known bug in eclipse... [ 09-27 11:16:49.982 66:0x4d W/ResourceType ] No...

Setcontentview() isn't running

Hello, i am learning from a tutorial in witch i can send messages by UDP protocol, the sample is working and i can send and receive messages. Now i want to make a listener for port 12345 to listen the messages received, maybe its not the best way but i do this with a handler... LinearLayout main = new LinearLayout(IpClient.this); m...

Best way to go about designing a sound triggered feature?

I'm currently entertaining the idea of writing a sound triggered feature in an Android application. Think classic "clapper".. I'm not going into implantation specific details at this point, as I'm more or less trying to figure out the right way to go about this. The AudioRecord class provides a way to read raw byte. Should I simply lis...

Feed a DB with random data and consume this data

Hello. Im developing an application but i get kind of stuck when i face this problem. The app is going to "emulate" some external sensors, so i need to generate random numbers for each sensor like they were sending this info for real. I wanted to save this data into a database, but i also want to consume this data (showing the last num...

Moving from One activity to next in Android

I am developing an application in android which has a login Screen. Right now I am able to receive the response from the server successfully. After a successful response it should take me to the next activity or class where I display a new screen/activity. what should I do in order to achieve this. ...

access photos from picasa in Android using goodle apis

Hi , I an trying to fetch photos from picasa album in android , i have used following link as a reference http://gdata-java-client.googlecode.com/svn/tags/2.2.1-alpha/sample/picasa/picasa-atom-android-sample/instructions.html But in the above example i think user can only access ALBUMS , what i want to access photos also , which...

How to retrieve youtube thumbnails using Google API Client Library for Java

Hello experts, I would be obliged, if you could kindly let me know the means by which I can retrieve the youtube thumbnails using Google API Client Library for Java, similar to the way in which we fetched thumbnails using gdata. List<String> thumbnails = new LinkedList<String>(); for (MediaThumbnail mediaThumbnail : mediaGroup.getThum...

AdMarvel Ad Not Displaying Properly on Android

Wondering if anyone has worked with AdMarvel ads and had problems with the ad size? The ad image is somehow being "smooshed" within my layout. When I take all other data out of my layout and only display the ad, the ad is of proper size. ...

Detect scroll event on Android browser

Hello, I'm trying to detect the scroll event in Android browser (my specific version is 2.1, but U want it to work also on older versions). This seems impossible! I first tried this: document.addEventListener('scroll', function(){ alert('test'); }, false); But nothing is triggered (except when the page load). I thought: well, let's...

Caching and Android.

Hi. I have an application, which on the onResume() method takes some time to redraw. I want to cache some things, but I am unfamiliar how and what can I "cache" (preload) data and keep it when my app is not visible. My question is - I have some data and I want it to be loaded in memory when my activity is not visible. My data is actuall...

Android apps, communicating with a device plugged in the USB port

I'm thinking about an Android app (with possibly an accompanying physical device), and i'm trying to figure out whether this is something that's feasible. 1) Let's say I plug my Android to my PC. Would it be possible for an app installed on the PC to communicate with an app running in the cell phone? I just need a very simplistic data e...

different sets of notification icons based on notification bar color

I am displaying a notification icon which is dark gray. It looks fine on Nexus One, where the notification area is light gray and is almost invisible on HTC Desire (Sense UI - dark gray notification bar). Is there a way to overcome that? (The icon cannot be changed). Thanks a lot EDIT: "The icon cannot be changed meaning" that I am usi...

MapView in android and "android.view.inflateexception".

Hai, I am using mapview in a xml file and that xml file have to load many times according to user interaction. First time the map shows and pointing the correct place. But from the Second time onwards it shows "android.view.inflateexception". Please help me to clear this problem.Is there any problem with the apikey in the mapview for lo...