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...
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.
...
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?
...
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...
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.
...
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 ...
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.
...
hi.
i have to align text by middle in android alertdialog.
but i cannot find way...
anyone knows how to this?
...
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...
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...
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...
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....
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...
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?
...
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...
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 ...
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 ...
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 ...
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...
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 ?
...