android

Other ways for zoom-in zoom-out in Android WebView?

My actual task is to have zoom in zoom out for the WebView, but I don't want to scale images. Are there ways to do that? 10x in advance, Danail ...

How to use Dev tools which flashes momentary pink rectangle on any screen sections being redrawn?

How to use Dev tools which flashes momentary pink rectangle on any screen sections being redrawn? Tool description is given at http://developer.android.com/guide/developing/debug-tasks.html Could anybody please suggest me where to install this tool and how to use it? Thanks, Mahesh ...

Magic behind R.java file

Hi! Recently I have been having quite some problems with R.java file. Now I have decided to do a backup and delete the file to see what happens. Nothing happened, so I created an empty R.java file and hopped for the best. Now Eclipse seems to figure out that the file was tempered with and even issues a warning: R.java was modified man...

how can I detect whether the android phone in Silent mode programatically

Hi All, Can anyone provide me a code snippet to identify whether the phone is in Silent mode or not. I am using Android 1.5. I tried by using "android.provider.Settings.ACTION_SOUND_SETTINGS". It is not working. Thanks in Advance... With Regards, Raghavendra K. ...

Push .apk to /system/app/ in HTC HERO

Hi! I have an HTC HERO and I need to push my application.apk to the /system/app/ folder. I've followed some tuts on rooting the device and that is fine, but when I try to push my package to the system/app folder, I get: "permission denied": $ push /sdcard/myApp.apk /system/app/ push: permission denied I also try: $ su su # push ...

How to align image?

I've got thumbnails which larger side is 70px (e.g 70x40 or 52x70). I need to create a gray box 70x70px and put the thumbnail in it, so that image is aligned with the box at top vertically and center horizontally. How to do that? I've tried with an ImageView 70x70px, gray background, but image is not positioned as it should (it's in v...

Android 1.5 and 1.6 afer calling finish activity and home button weird behavior.

Android Platform 1.5 I open splash screen at the end i call finish() then i moved to browse page. At the browse page when i click on home button it hide the application.(b/c of Android's Multi tasking feature) When i go to Android's desktop launch application again it starts from splash screen. Android Platform 1.6 I open splash sc...

Android - converting byte rgb_565 array into argb or rgb array.

Hello I have Picture data in byte rgb_565 array, and I want convert it in a productive way into argb array. Right now I have found only one (little slow) way to do this: Bitmap mPhotoPicture = BitmapFactory.decodeByteArray(imageData, 0 , imageData.length); where imageData is my byte[] array in rgb_565, and then: int pixels[] = new in...

EditText extends outside screen dimensions

Hi, My layout is a 2-column table where each row has a TextView and an EditText: <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:stretchColumns="1" android:padding="5dip"> <TableRow> <TextView android:id="@+id/label1" ...

how do I give out free review copies of my paid android app?

With the iPhone, Apple has a system of free codes you can send to reviewers so they can install the app for free. Is there a way to do this with paid Android apps? ...

Using ZXing to create an android barcode scanning app

I've been searching on how to add a barcode scanner to my app. Does anybody know of any examples or know how to do this easily? Any help is greatly appreciated. ...

List items with alternating colors

I have a list view and an adapter that sets alternating background colors to the list items ("zebra" list style): public View getView(final int position, View convertView, ViewGroup parent) { int colorPos = position % colors.length; ... convertView.setBackgroundColor(colors[colorPos]); return convertView; } But now, wh...

Hierachy of android:layout_width/ height between containers and views

What is the relationship between android:layout_width & android:layout_height in the container and the views contained within? For instance if I have a LinearLayout with the layout width and height set to fill_parent, and I have a Button with those values set to wrap_content it uses the value from the Button, like the Button values over...

Android: Parsing XML DOM parser. Converting childnodes to string.

Hello, Again a question. This time I'm parsing XML messages I receive from a server. Someone thought to be smart and decided to place HTML pages in a XML message. Now I'm kind of facing problems because I want to extract that HTML page as a string from this XML message. Ok this is the XML message I'm parsing: <AmigoRequest> <From></Fr...

Problem with WebView loading specific web page

I'm trying to develop an android app which accesses google wave. When I try to load this page (http://gwavefree.netau.net) the app just doesn't do anything and I get a blank screen. When I try to go to another site it works fine. Please help me! Here is my full source code: package co.uk.maxmarroni.apps; import android.app.Activity; i...

Is android getting a jit compiler soon?

I've read that there is a jit compiler module for dalvik vm on the works and the results are quite promising. Some people claim an improvement of 100% in terms of execution speed. Does anyone have an idea when it is going to be incorporated in an android release? The amount of RAM on the nexus one (512MB) hints that a jit may be introduc...

Android - OnDateChangedListener - how do you set this?

There is an event listener in Android called DatePicker.OnDateChangedListener. I am trying to set a DatePicker view's on date changed listener as follows: DatePicker dp = new DatePicker(getContext()); dp.setOnDateChangedListener(this); //where this is my activity extends DatePicker.OnDateChangedListener But guess what? Date picker ...

Android onKey w/ virtual keyboard

I am catching keyboard events/presses using the onKey method: public boolean onKey(View arg0, int arg1, KeyEvent arg2) { //do something return false; } This fires off just fine for physical keyboard presses but it does not fire on virtual keyboard presses. Is there an event handler to handle virtual keyboard presses? ...

Can't access Motorola Milestone on Ubuntu 9.10 via adb (HTC Magic works perfectly fine)

I've two phones, the HTC Magic and since today also the Motorola Milestone. While the Magic works perfectly, I'm not able to access the Milestone via USB (adb devices). Here are my log outputs and settings for both: HTC Magic lsusb: Bus 001 Device 009: ID 0bb4:0c02 High Tech Computer Corp. /etc/udev/rules.d/51-android.rules: SUBS...

HttpClient on Android : NoHttpResponseException through UMTS/3G

Hi, I have got my android app that uses HttpClient to reach my servlet deployed on my Tomcat. It is installed on my HTC Magic. If I launch it when connected on Wifi : it works. If I launch it when connected to 3G (GSM data network) : it doesn't work but my servlet is reached. In other word, it seems that my phone never get the response...