android

Android API for detecting new media from inbuilt camera & mic

Is there any elegant way in the Android API for detecting new media when it is written to the device? I’m mainly interested in photos taken by the camera, video taken by the camera and audio recorded from the mic. My current thinking is to periodically scan each media content provider and filter based on last scan time. I’m just wonder...

How to copy text programatically in my Android app?

I'm building an Android app and I want to copy the text value of an EditText widget. It's possible for the user to press Menu+A then Menu+C to copy the value, but how would I do this programatically? ...

Android application deployment

Besides the Android Marketplace, what are my options as far as deploying an Android application to someone remotely? The particular issues I am up against are that I have an application which I have written which addresses a somewhat limited problem, for my sister. She is mostly computer literate, but not a developer and lives hours aw...

Will JavaFX work on Android?

It would be a shame if it doesn't, because it will make for more attractive looking Android applications. ...

How do I find the DNS servers in Android from a Java program?

The java.net.InetAddress.GetByName(String host) method can only return A records so to lookup other record types I need to be able to send DNS queries using the dnsjava library. However that normally relies on being able to parse /etc/resolv.conf or similar to find the DNS server addresses and that doesn't work on Android. The current ...

Android: Access child views from a ListView

I need to find out the pixel position of one element in a list that's been displayed using a ListView. It seems like I should get one of the TextViews and then use getTop, but I can't figure out how to get a child view of a ListView. Thanks! Update: The children of the ViewGroup do not correspond 1-to-1 with the items in the list, for ...

Placing Zoom Controls in a MapView

I'm trying to get the zoom controls to show up in a mapview, the following code almost works, but the zoom controls appear in the top left of the mapview, not the bottom center like I'm specifiying via setGravity(). Can someone enlighten me as to what I'm missing? zoomView = (LinearLayout) mapView.getZoomControls(); zoomView.setLayout...

Anyone have any impressions, hints, tutorials from developing for Google Android devices?

I have a T-Mobile G1 and I'm going to download the developer SDK and see if I can create a few simple apps for my phone. If you've done similar development, please answer below and tell me about your experience. Please share any links you found especially useful. Thanks! ...

How can I create icons for menu items in Android's ListView?

I am using a ListView to present the main screen of my application. The main screen is essentially a menu to get into the different sections of my application. Currently I have the ListView contents generatings programmatically in the onCreate method. Here is the code snippet that does this: String[] mainItems = { "Inbox", "Proje...

Make an incoming call on my mobile trigger an action on my pc

I have a specific scenario in mind, but I will ask this generally: Is there a way to make my mobile phone trigger an action on my computer? I am thinking that with a smart phone it must be possible to link the phone and the pc with bluetooth, and have some sort of small program running on my computer that will listen for incoming phonec...

How to call web service with Android

I am having a lot of trouble finding good information on how to call a standard SOAP/WSDL web service with Android. All I've been able to find are either very convoluted documents and references to "kSoap2" and then some bit about parsing it all manually with SAX. ... Ok, that's fine but it's 2008 so I figured there should be some good l...

Setup OpenGL ES for desktop Java

Anyone know if/how to setup OpenGL ES for plain old regular Java on Linux without running it through a cell phone emulator? My goal is to develop tools for building Android games (ex. a map builder). Ideally these would run outside the emulator to take benefit of greater screen real estate, native OS conveniences, fast start time, etc. ...

Scrolling with Multiple ListViews for Android

I'm completely stumped on this one. I have three different lists that need to be displayed on the screen. It's completely possible that the lists will extend past the bottom edge of the screen, so I would need scrolling. I've tried using a ScrollView with a LinearLayout child, and putting my ListViews in the LinearView, but all of the...

Can you get to a command line on the G1 phone?

I understand the Android OS is based on Linux. Does that mean the G1 phone has a terminal emulator and you can open a console and use commands like cd, ls, etc? Or failing that, would it be possible to write a terminal emulator for it? On a related note, would it be possible to run a ssh server on the G1 and log into it over a wifi conn...

Porting C++ lib/app on android

I want to port few C/C++ libraries to android, how feasible it would be e.g. openssl can it be ported or suppose an application which depends on openssl, what is the best way to port it to android when android i think itself has libssl.so what are the tools available e.g. scratchbox , any alternatives? Has anybody experience with it? ...

Which mobile system is for programmers?

I have been used my Palm Treo 650 for a few years. Now i am considering to buy a new one among iPhone, BlackBerry and Windows mobile. It seems windows mobile is best for me. Because I have experience with .NET development, and I think .net framework compact will not be too far away from my knowledge. Apart from calls, messages, I use it...

Android development with Netbeans IDE

Has anybody had any success with developing for Android platform using Netbeans (5.5+ ) IDE? I know of atleast netbeans one plugin that is supposed to support it but wanted to hear if anyone is using netbeans for Android development and how easy it is to set it up. ...

Any Good ORM tools for Android development?

Anyone working on the Android ('gPhone') have or know of a place where I can find a good ORM tool for it? The code is written in Java, and the DB is SQLite. What I would like to find is a tool that given the object definition, can auto-generate the tables and the CRUD functions (that would be awesome), or, barring that, a tool that can...

iPhone or Android?

According to a recent article iPhone has gained a better appeal than Android among programmers. I'm quite a newbie to Java and a complete profane to ObjectiveC, in your opinion, in which one of the two could I have a try? ...

JRE on Android

This might sound like a stupid question, but google didn't help me. Is there a JRE available for Android? If so which version is it? Are there any major features missing? If not does that mean all java apps need to be recompiled for Dalvik to work on the Android? Update; Will there ever be JRE available for the Android? ...