android

Nexus One not recognized after 2.2 upgrade

Using Mac OSX 10.6.4, device was recognized with the stock 2.1-update1 version. Manually upgraded to 2.2 (FR91), and device is no longer recognized by adb. Suggestions? /Russ ...

Can ZXing be used in Android with encrypted QR-codes?

The current method uses AES encrypted files. The goal is to exchange small amounts of private data using AES encrypted QR-codes. ...

Adding spinner via java code rather than XML in Tabwidget

Hello everyone, I'm new to android. Recently I learn how to create Tabwidget. This function is useful. But I find that I cannot add the widgets I want in R.layout.xxxx. So I try to do it by java code. But unfortunately it failed. By using XML, I do the following. The program works without problem. public class ShowBalanceActivity exte...

how does a service return result to an activity

hi, i seem to have a classic task, yet i can't find any examples on how to do it. i want to download something. well i call a web service and get a response... but its pretty much the same. in order to do this i have an activity that starts a service that spawns a thread that does the job. now i would like to use the data i got in th...

Section header in ListView not show correctly

This question is the same as my another question http://stackoverflow.com/questions/3648840/listview-with-section-header-problem When scrolling the ListView, some header text will appear, below are the related code for easier understanding: records.setViewBinder(new SimpleCursorAdapter.ViewBinder() { public boolean setViewValue(Vie...

Install (and update) android app from my own website and not market

Is is possible for me to publish an android app on my own website and not use android market. The app is for use with our internet software services and is therefor only in the interest of our existing clients. The second questions is, can I install updates to my app after it is installed or would I have to use the market to accomplish ...

How to read an OpenOffice document spreadsheet from an android application?

I want to read a Open Office Document spreadsheet (.ods file) from my android application. I need to basically loop through the first two columns & store them in a SQLite database. I am able to do this by reading a regular text file stored in res/raw using the following code: InputStream is = context.getResources().openRawResource...

Android - Camera preview is sideways

I am using a Preview to display what the camera see's on the screen. I can get everything working fine, surface created, surface set and the surface is displayed. However it always displays the picture at an incorrect 90 degree angle in portrait mode. Such as in the picture: I am aware that using the following code will set the pic...

Custom ProgressBar widget

I am trying to do something similar to this but in Android. In Android I can extend the ProgressBar but I am doubting of how to add the TextViews on top. In iphone it was easy because I can use absolute positions, but not here. Any ideas? EDIT: I decided to use SeekBar instead of ProgressBar to add the thumb drawable. I commented be...

Can I programmatically set a wallpaper to not scroll?

I am writing an app that allows a user to set the phone's wallpaper from a list of pictures. By default it scrolls across the multiple home screens. I want the wallpaper on the home screen to be a static non-scrolling image. What can I do programmatically to achieve this? Is this even possible? I am using wallpaperManager.setResource...

how to see if wifi is connected in android

I don't want my user to even try downloading something unless they have wifi connected. However I can only seem to be able to tell if wifi is enabled, but they could still have a 3g connection. android.net.wifi.WifiManager m = (WifiManager) getSystemService(WIFI_SERVICE); android.net.wifi.SupplicantState s = m.getConnectionInfo().get...

Android Voice Recognition activity called in 'onCreate' method causes app to load slowly

In my android app I call the voice recognition in my onCreate method of my startup activity. I have made it a preference to start up with the voice control or not. However, the app takes about 5-7 seconds to load when voice recognition is on. When it is off, the app starts almost instantly. Below is sample code, I have added Free_Form...

Android: How to provide AIDL files as source to javadoc?

Given that AIDL contain interface definitions, it is important to incorporate them into our javadoc. By default "Generate Javadoc" option in Eclipse only parse files with extension *.java. Is there a javadoc extension for AIDL? ...

Reading username and password sent from and Android app into my WCF REST Service?

My current WCF REST Method is defined as: [OperationContract] [WebGet(UriTemplate = "{username}/{password}", ResponseFormat = WebMessageFormat.Json)] string Login(string username, string password); An android client app is going to connect to the service, let's...

VideoView and step play (frame by frame)

I would like to play frame by frame with the videoview. I have this: mVideoView.seekTo(mVideoView.getCurrentPosition()+1); But after this I do not see the frame until I click play... I do not want that, I just want to see the next frame. Also - can I do the same for previous frame? Thanks in advance. ...

Sending unnoticed updates to an android app

Is it possible to install an update an android app without the user even knowing or caring about it? I am looking to do what Google Chrome has done. I am planning to upload my app to my own website instead of the market. Thanks! ...

Android: Multiple Activities and OnDestroy Question

I have a few dozen activities: 1-Main, 1-Animation, 10-Other's and it's sub-sets of more activities (couple of dozen). From the Main, you can go to any of the Others via buttons. The Others call sub-set activities and they call the Animation activity. Each of the activities, including sub-sets and Animation, has a button to return...

Title is not getting displayed in the browser in android emulator?

The title for web pages are not getting displayed in the android browser in the android emulator? Is there any settings to make the title visible? ...

How to "deflate" a ViewStub?

So I can inflate a ViewStub at runtime. Let's say I want to make it disappear and then maybe inflate again depending on some event occurring (for example, a toolbar that inflates and deflates according to what the user selects on screen). I can use View.setVisibility(4) EDIT View.setVisibility(View.GONE) EDIT .... is there any o...

Android java datetime values from String to Long to String issue

Long time reader, first time poster. In Android, capturing date from datepicker and storing as string in sqlite. Sorting by date doesn't work because they're strings (unless I'm doing it wrong. I've googled this issue for ~5 days, and it looks like there should be a way to capture the date from the date picker, convert it to a Long, s...