android

ImageView aligned with other views

Hello In my layout I have in the upper part three views in a horizontal linear layout. When I enter the activity, one of these views must be selected depending on the pressed button in the previous activity. The selection is made using an ImageView indicator that must be centered below the selected view. Could anyone tell me what is the...

the popupwindow and the original view all get focus

I make a project which there are some buttons in the bottom,when i click one of the button,there will be a popupwindow created,there are more buttons in the popupwindow,but i can not click the buttons in the popupwindow because the popupwindow does not get the focus.If i use the function setfocus,i can not click the buttons in the origin...

memory problem with google map and overlays !

Hi all. I am drawing some overlays on google map. If i move around the map too much, I get this error : 10-15 14:43:43.020: ERROR/dalvikvm-heap(299): 32768-byte external allocation too large for this process. 10-15 14:43:43.020: ERROR/GraphicsJNI(299): VM won't let us allocate 32768 bytes 10-15 14:43:43.260: ERROR/AndroidRuntime(299): ...

How to tell how close your activity is to reaching its memory limit?

I'm writing a graphic design application for Android where the user can add several images to a document, where each image is stored as a Bitmap object. Each bitmap has roughly a dimension of 800x400 pixels and uses ARGB8888 pixel format (i.e. ~1.5Mb each). I'm aware that most of the first generation Android devices have a 16Mb heap lim...

Android Webservice SOAP

Hi All, I'm calling soap webservice in android app. its working fine and getting the response in SOAP object. I don't know what to do after that. I'm searching for tutorial but I didnt find any. I'm really very fed up. I need to parse the reponse. Can anybody please help me in this case. filter.setOnClickListener(new OnClickListen...

TabHost Problem on Android

I've created a tabs using tabhost (Let's called tab "A") Tab "A" is the originator for activity 1 In activity 1, it is containing a button widget Question is .... Is it possible for A to handle more than 1 activities (switching), this is done by pressing the button appeared in activity 1 (I need the switched activity is still appeare...

how set button's layout width at runtime?!

Hi! i' making a remote-app, so i need a varying number of buttons, grouped by tableviews and tablerows. i can create the fix ones (that must alwasy be available) at designtime via xml, making use of the layouts making all buttons fit on every resolution. but there are buttons i have to create at runtime. to make them behave the same w...

Android admob cant see

Hello! Admob code cant see on device. i followed the instructions here: http://www.admob.com/docs/AdMob_Android_SDK_Instructions.pdf everything ok, but the 6. not clear for me "Step 6 When integrating AdMob ads into your application it is recommended to use test mode. In test mode test, ads are always returned. Test mode is enabled o...

Android Bitmap syntax

I want to load bitmaps into ImageViews in Android, but I don't want to use the R.drawable syntax because I have a lot of images with a standard naming convention so it's much easier to get the image with some logic. For example, all my images are named: img1.png img2.png img3.png So if a user selects a value, let's say x, I show "img" ...

How to use bit.ly in android

How to implement bit.ly api in android or any url shorten api plz suggest me something ...

Android. Avoid scaling of background

In a start activity of our android application we're using a linearlayout with an background image for whole space. The image size is 320x480 - the same as device resolution, we're using for testing. The problem is, the image will be scaled und looks not so nice. I tried to use imageview instead, but I've got black borders. Some ide...

Android App alternate Market or place

I just finished my App and is now in the market, so far so good, in fact the name is DopeWars Underground (just in case you wanted to see it) my question is, there is another place to promote that App outside of the Android Market to advertise this App ? ...

unicode support in android ndk

I have a large C/C++ library that I need to use as part of an Android NDK project. This library needs to be able to intelligently process UTF8 strings (for example, conversion to lowercase/uppercase). The library has conditional compilation to punt to an OS API to do the conversion, but there don't seem to be any Android APIs for UTF8....

How to Display the time elapsed onto UI Screen of the Android

I am writing a app for which i need to display the Time elapsed when user presses a button in UI screen . So please guide me in writing the code in Android. I need to display the time in seconds, mins and hours. Thanks in anticipation. Darshan ...

VM Budget Android checkouts Problems

Hallo, there are a lot of stuff with "bitmap size exceeds VM budget".but where can I check the problems to see when it happens. I programm a sprite based game and use a lot of picture (not too big but a lot). The game works fine on the htc desire but on a hero i get this bitmap size exceeds vm budget problms. So where can I chek how muc...

Playing .MP4 video from raw resource folder

I've seen a number of similar questions, but so far I've not been able to get anything working. I'm trying to playback a video (.MP4) from the res/raw folder and only get audio, no video. The video is short (about 3 seconds), small (350KB) and if I put the video on the device (Motorola Droid) directly, it plays fine. It also plays fin...

Repeating RatingBar wonkiness in a ListView using RelativeLayout

Here is some xml for a row in a ListView: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="6dip"> <ImageView android:id="@+id/cover" android:layout_width="64dip" android:layout_height="64dip" android:layout_alignParentT...

how to send id through HttpsURLConnection delete method

I want to tell server that I want to delete particular id using HttpsURLConnection delete method. It is not supporting. I cannot use this OutputStreamWriter. Is there any way to send id using HttpsURLConnection ...

How to resize DatePicker android widget

Hi How do I re size the datepicker widget in android (the default one) ...

How to add REAL ADS for admob? Android

I added test ads, and everything ok, but how to add REAL ADS on my program? ...