android

Android Socket + ObjectOutputStream not working correctly

Hey guys. I am developing a client/server program where the client is an android device. The server has a listener class that reads an object from the input stream. I created a client software for another COMPUTER that sends a small object over a local network. Computer to Computer works perfectly fine, i read the object and printed the...

WebView.getProgress() always returning 100

I am experiencing the same bug reported here (http://code.google.com/p/android/issues/detail?id=9597) Anyone know of a work around? I want to have a progress bar in a WebView like the Android Browser does while the page is loading. ...

Access Shared Preferences from Different Activity (Android)

When you establish a shared preference such as below... public static final String PREFS_HI = "MyPrefsFile"; Can you access it from other activities just like you would normally do? SharedPreferences settings = getSharedPreferences(PREFS_HI, 0); Or is there something unique that you must do to access the preferences? ...

Images in a web view on a Motorola Droid. What size?

I am developing a Java Android application that displays web content from the assets folder in a web view. I had no problem getting this content to display in the application but I am confused as to why my images are not displaying properly. I'm working with a Motorola Droid that is supposed to be 480x854 resolution. When I create banner...

How to scale down the image for better quality on Android?

Now I'm using the follow code to scale down the image downloaded from internet at runtime. But the result is not good enough. Bitmap.createScaledBitmap(srcBitmap, dstWidth, dstHeight, true); Any help? Thanks. ...

Android default LatinIME handling of hardware keyboard state

I'm trying to make a new Android input method based on the default LatinIME. I want to implement custom behavior that occurs when the hardware keyboard is open or closed. However, looking and searching through the source code for LatinIME I cannot find where the state of the hardware keyboard is checked. I expected it to be handled in ...

Dalvik and out-of-order writes

Java specification allows the compiler and the VM to reorder memory writes in the interest of efficiency. Does the Dalvik VM take concrete advantage of this ? Disclaimer : I have no intention of relying on order even if Dalvik does not do it (besides the compiler may do it too), but it would be nice to know. ...

android : how to align message in alertDialog?

hi. i have to align text by middle in android alertdialog. but i cannot find way... anyone knows how to this? ...

Android google calendar permission issue

Hello, I am using google-api-client to access Google calendar. Following are the permissions in my manifest file. <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android.permission.USE_CREDENTIALS" /> <uses-permis...

Android Write:timout error while Uploading file onto device 'emulator-5554'

Hi, I get the write timeout error while running an android application. I am using: Android 2.2 Eclipse 3.5 API 8 DDMS log is given below. [2010-10-19 08:14:05 - Device]Uploading file onto device 'emulator-5554' [2010-10-19 08:14:15 - ddms]write: timeout [2010-10-19 08:14:15 - Device]Unable to open sync connection...

Using multiple layouts with include tag in Android

I'm trying to create a title bar that is the same throughout my application and have been creating layouts like this for each of my activities: main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" and...

Produce thumbnail from pdf on Android

I am managing a bunch of PDF files in an android application maintaining a list of records in a SQLite database as well as storing the pdf files on the external storage. Now I would like to present a thumbnail of the first page of the pdf in my list view as part of each cell representing a pdf. I am aware of libraries like iText, fop....

Find people to work on an android project

Hi there, I'm started to get my feet wet with the android framework, and wanted to work on a game but was looking for a partner to work with. I was wondering if there are sites online where people can talk about a project and possibly collaborate and start a new project. I realize this might be a stupid question, and not appropriate fo...

Custom checkbox image android

Is there an easy way to use a custom image for a checkbox? I'm looking to duplicate the "starred" behavior of gmail. So I want to have a checkbox that, when checked, is a filled in star. And when unchecked is an empty star. Do I have to use an imageview and do my own logic myself? ...

Need Help regarding Camera Zoom functionality.

I am a Android Developer and working on project where client need camera zoom functionality, first i have created custom activity and preview classes to deal with camera and used zoom functionality which support only in version 2.2, and this also not working correctly, then i decided to use device inbuilt camera functionality using inten...

Android : collect Quick Search Box result form internet

Hi, I'm doing a app which allow user to search on the server. how can i get the text from the Quick Search Box and send to server? if (Intent.ACTION_SEARCH.equals(intent.getAction())) { String search= intent.getStringExtra(SearchManager.QUERY); } the string "search" is it the text which typing by user? P/S: sorry about my bad ...

OnAnimationEnd does not work , and yes ive researched..

Im reading a book "Pragmatics: Hello Android" and copy the code word for word and syntax is all correct because i get no errors but it does not do what i tell it to do on the onAnimationEnd.. it suppose to take me to my next activity but since that was not working i changed it to something simple like txtView.setText("ggag") just to see ...

getItemAtPosition() not returning value in listview

I have created a custom Base Adapter class, to populate a list view with image and text. The code of class is as below : public class ViewAdapter extends BaseAdapter { private Activity activity; private String[] data; private static LayoutInflater inflater=null; public ImageLoader imageLoader; private ArrayList<String> items; public ...

Disable Noise Cancellation Mic in Android (1.5)?

Is it possible to disable the noise canceling mic in Android (specifically 1.5) via code? I want to create a dumb microphone app that records all background noise, but I believe the noise cancellation mic is getting in the way. I know you can do it if you root your phone and edit some settings (http://forum.xda-developers.com/showthread...

Alt + F7 keyboard shortcut does not work on a netbook.

I am running Android 2.2 on a netbook (Android x86). The keyboard shortcut, Alt + F7 doesn't lead me back to graphics screen ( GUI) from the console. Does anyone know any alternative to this shortcut ? ...