android

Android Images/Video file naming convention

I need to confirm an assumption, do all android phones store images & video with the same naming convention on the sdcard ? i.e. 2010-07-16 14.03.08.jpg or video-2010-07-17-13-18-41.3gp ...

Problem importing Android project archives into Eclipse

My apologies if this is a stupid newbie question... I'm using Eclipse (Helios release) and have the Android SDK all configured as per the developer.android.com recommendations. I can create and run new projects without any problem but I can't import archived project code samples (found on the web etc.) using Import > Existing Projects I...

opening another activity from the map overlay dialogs

I am trying to create a map application and I need to do something similar to what Google Maps does. I want to open show a list of locations and when user taps on them I want to show a dialog. I was able to do it till here. But now when the user clicks on the dialog that opened I want to show another acttivity with the details of that i...

Android, how to read system log file?

Hello all, I am trying to read system logs in my code to generate something like an error report. Similar to adb logcat, but in a programming way. any help would be truly appreciated. Thanx ...

Android -- How to access data in an ASP.NET database via app?

Hello all, I have a Windows web server already set up with a website (unlimited application pools) and I want to be able to access a database on that server via the Android app I'm developing. How can I do this? Can someone point me to a tutorial or give code example of how this cross-platform (Android/Java to ASP.NET/C#) communication ...

How to get adb remount to work?

I'm attempting to remove certain files from the SD image mounted on the emulator. NDUNN-PC ~ $ adb devices List of devices attached emulator-5554 device NDUNN-PC ~ $ adb shell rm -f /sdcard/maps/* rm failed for -f, Read-only file system NDUNN-PC ~ $ adb remount remount succeeded NDUNN-PC ~ $ adb shell rm -f /sdcard/maps/* rm faile...

Degrees symbol (as in Degrees Celsius/Farenheight) in a TextView

Is there a way to include the small circular degrees symbol to a TextView? This would be for temperature readings, as in degrees celsius or farenheight. I'm finding this an awkward question to Google, and wondering if anyone has done this programatically before. ...

My App works over WiFi. But not over 3G in android? Any Guesses?

Hi Folks, I have developed an App that target version is 4 (Android 1.6) upto 7 (Android 2.1). I tested this app on the dev phone 2 (Google-Io-Device 1.6 version). I am doing some xml parsing stuff through Internet. i set the <uses-permission> on my Manifest. it works fine in WI-FI Network. But its not working in the Motorola Droid 2.1 ...

How to open Email program via Intents (but only an Email program)

I want to setup a part of my application that allows users to send a quick email to another user. It's not very hard to set this up: Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_SUBJECT, subject); intent.putExtra(Intent.EXTRA_TEXT, message); Intent mailer = Intent.createChoo...

How to query the last sent SMS from content provider?[RESOLVED]

Hello, when I send an SMS on my Android emulator, it goes to the content provider: content://sms/sent right? So I wanted to get the last sent SMS from the content provider. So I used this Uri as you can see above, and, I used the method query, with the Content Resolver Object. And I got the cursor, and used the movetofirst() method, ...

Stacking Two ImageButtons

I have two ImageButtons, and I am trying to stack one on top of the other. I essentially want to make a screen with two big buttons that each take up 50% of the available space. The code is below. Here is a capture of the layout it yields http://imgur.com/cQT0W.png I have played around with layout_gravity and gravity on the parent. Setti...

Android WebView UTF-8 not showing

I have a webview and am trying to load simple UTF-8 text into it. mWebView.loadData("將賦予他們的傳教工作標示為", "text/html", "UTF-8"); But the WebView displays ANSI/ASCII garbage. Obviously an encoding issue, but what am I missing in telling the webview to display the Unicode text? This is a HelloWorld app. ...

Split GIF into frames

Trying to play animated GIFs on Android here (see http://stackoverflow.com/questions/809878/android-how-do-a-display-a-large-animated-gif-given-a-url). It's anything but smooth. On Android 1.5, the Movie.decodeStream()/decodeFile() returns a null. On Android 1.6, with the GIF files I've got, it returns a zero-sized movie with zero durati...

Android 2d canvas game: FPS Jitter problem

I based my game off of the lunar lander demo, although heavily modified, and I can get around 40-50fps but the problem is it fluctuates between 40-50fps so much that it causes the moving graphics to jitter! Its very annoying and makes my game look really shitty when in fact its running at a good frame rate. I tried setting the thread pr...

How can I download android 2.0 sdk now

Hi, How can I download android android 2.0 (not 2.1) sdk now? I tried 'android sdk and avd manager', it does not have android 2.0 downloadable. Thank you. ...

Android - TextView and VideoView problem

I have a TextView inside a LinearLayout and a VideoView inside a LinearLayout. The parent layout is a RelativeLayout that includes the TextView's linear layout and VideoView's linear layout. Since I add the VideoView with FILL_PARENT, FILL_PARENT params (coz I want it to fill the screen in landscape mode), in some phones when I rotat...

Setting up a pc bluetooth server for android

Alright, I've been reading a lot of topics the past two or three days and nothing seems to have asked this. I am writing a PC side server for my andriod device, this is for exchanging some information and general debugging. Eventually I will be connecting to a SPP device to control a microcontroller. I have managed, using the following...

Spinner won't respond to clicks...even though onItemSelected is called?

My Activity implements OnItemSelected listener for a spinner. It has the interesting problem of firing off the onItemSelected callback when the activity shows. So I used a flag hack to solve it (I hate it, but at this point I just want the app to work). Strangely enough, even though the callback gets called right at activity start, my...

Is it possible to have an Android app dial a remote modem and send info back and forth?

Is it possible for an Android application use the cell phone to dial out to a remote modem and interact with it? I have a PC program that calls to a remote modem and collects data from a controller. The information send back and forth between the PC app and the controller is just a simple string of characters. I would like to port some o...

android development with scala

The first thing described in the howto (http://www.assembla.com/wiki/show/scala-ide/Developing_for_Android) is this: Step 1: Create the ant files for your project: cd android update project --target 1 --path . which yields 'command not found'. I'm in the 'workspace/name_of_my_app/' folder. How do i get to have the 'android' command...