[android-developers] Mediarecorder: blank screen when switching from preview to recording mode.

2009-07-30 Thread juanjodev
How could I remove the blank screen that appears when switching from preview to recording mode? Grabador.java protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Hide the window title.

[android-developers] access sms messeges

2009-07-30 Thread rehab
hi all i am trying to access sms messages and view them within my application, can any one help me about how to acceass the sms messages thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] cropping and changing images on a soft keyboard

2009-07-30 Thread Spektor Yaron
Hi, I am trying to crop an image on a key for a soft keyboard. i want to do the following: 1.create a key with an icon (from a Bitmap) 2.take that Bitmap and crop it 3.set the new Bitmap back on the key as an icon Optional: 4.do some or most of this from the XML using the parser (i could not get a

[android-developers] convertView with wrong type

2009-07-30 Thread Klaser
I hope someone can share some light on a issue I have with using the convertView that is supplied by the BaseAdapter. The problem is that I have a couple of different listviews in my app. When using the convertView with listviews that only shows one type everything works fine, and I experience a

[android-developers] Re: Relative Layout XML attributes have no obvious programmatic equivalent.

2009-07-30 Thread bpellow
Romain, Just like John and Pavel, I cannot figure out how to set some RelativeLayout XML attributes programmatically in Java. For example, I cannot find a programmatic way to define layout_centerVertical=true with only Java. Here is some example XML from my relativeLayout file: EditText

[android-developers] Re: Default number of Views constructed for a BaseAdapter?

2009-07-30 Thread xml gock
Hi, I have just encountered this promblem and solved it ! Just delete if (convertView==null).. you may have a try! Good luck On 6月30日, 下午12时51分, Romain Guy romain...@google.com wrote: Do not inflate a new view every time, not only is it less efficient but it can make your application run out

[android-developers] Re: Change Tab Background selector

2009-07-30 Thread Pushkar
Try, TabWidget tw = getTabWidget(); for (int i = 0; i tw.getChildCount(); i++) { View v = tw.getChildAt(i); v.setBackgroundDrawable(getResources().getDrawable (R.drawable.tabindicator)); } On Jul 28, 10:01 am, Ludwig Heinz ludwighe...@googlemail.com wrote:

[android-developers] Re: Farsi font for HTC Dream

2009-07-30 Thread Ali
I have the same question. Just got a new HTC hero and apparently Android does not support Persian. Anywhere out there to help us? On Jul 25, 7:58 am, Saeed saeed.est...@gmail.com wrote: Hi How can I getFarsifont on my HTC Dream Android phone? Saeed

[android-developers] Emulator quick start

2009-07-30 Thread jack
Hi, Is there a quick start mode for android emulator. It is a PIA to start the emulator many times since it is very slow. It will be great value to developer if there is a quick start mode which simply get the app loaded without any other unnecessary loadings. Thanks, Jack

[android-developers] Re: simple twitter query

2009-07-30 Thread Andy Droid
From the twitter search API documentation, this will grab a bunch of tweets from user al3x: http://search.twitter.com/search.atom?q=from%3Aal3x and this will find tweets with the word twitter in them, in json format, using a callback called foo.

[android-developers] Re: Is there a way to control the Android phone or do a automated test using a remote PC?

2009-07-30 Thread pinky
even I am looking for a way to control the android phone through computer for testing purpose. I want to know how to do it could any one give a complete info on it... On Jul 28, 11:04 am, chicochen chic...@gmail.com wrote: Thanks, I just read something about the instrumentation, and have the

[android-developers] Language support for Persian

2009-07-30 Thread Ali
Dear developers, I just got a new HTC hero and I can say my first introduction to Android has already made me a big fan. But it does not support Farsi (or Persian) fonts, i.e. the pages which were readable even in my Sony Ericson old brick (K800) are not supported here. Is there any chance that

[android-developers] Re: how to add a progressbar or other widget to some row of the listview??

2009-07-30 Thread peter
hi. you could use setOnItemClickListener for your listview the parameter of arg2 is the ID you selected onItemClick (AdapterView? arg0, View arg1, int arg2, long arg3) On Jul 30, 3:02 pm, frog bluewater0...@gmail.com wrote: hi,all I had this questions a few days ago.but no one give the

[android-developers] simple twitter query

2009-07-30 Thread Andy Droid
Just trying to search for a user's latest public twitter post. I have not worked with http in java before, so I don't know how it all comes together with http gets and requests, and such. I just want to get the latest post from a user (say Fred1000), in the form of a json object. If there is a

[android-developers] Re: Default number of Views constructed for a BaseAdapter?

2009-07-30 Thread xml gock
er... On 6月30日, 下午10时40分, Streets Of Boston flyingdutc...@gmail.com wrote: Your code in your getView implementation of the adapter looks good at first sight. The structure of this method looks good. I think there are a few issues though. In your getView(...) method, you access the variable

[android-developers] Query GroupMembership cannot find contacts in a specific group

2009-07-30 Thread ZHOU Peng
Hi all, I try to query contacts in a specific group by GroupMembership. But It only works fine with system built-in group Starred in Android. My codes is like this: -- private static String[] GRP_PROJECTION = new String[] { GroupMembership.PERSON_ID,

[android-developers] Unhandled Exception

2009-07-30 Thread bharath_mlore
[b]Hi, I am creating 4 buttons in the linear layout at the very bottom of the screen using the below code snippet [/b] LinearLayout android:clickable=true android:layout_width=fill_parent android:layout_height=wrap_content

[android-developers] Re: Strange ListView loading problems

2009-07-30 Thread xml gock
Hi,I have just encountered this problem. I guess you may have put a similar sentence into getView() as follows: if (convertView==null). just delete this and have a try! On 6月24日, 下午4时34分, Peter pkana...@gmail.com wrote: I have alistviewthat is populated by a couple threads that pull in

[android-developers] Re: password mode

2009-07-30 Thread peter
On Jul 30, 1:53 pm, Shang Hao sahilz...@gmail.com wrote: Hi, It is observed that while entering text in password mode, first the text is displayed and then after 1 second the asterisk (star) is displayed Is there no way to directly display the asterisk?? code:

[android-developers] Re: cropping and changing images on a soft keyboard

2009-07-30 Thread Spektor Yaron
Hi, I found an answer to my previous question (the code for it is attached below). i think the solution is not too elegant so if you have any input on how i can make it less hard coded i would love to hear it for example i would like to set the name of the original image with xml and also the

[android-developers] Listview Tabhost

2009-07-30 Thread Holden Karau
I'm trying to figure out how to emebed a listview in a tabhost Whenever I call l1 = (ListView) findViewById(R.id.list); l1.setAdapter(new ArrayAdapterString (this,android.R.layout.simple_list_item_1, SITES)); it dies a rather unglamorouis death. List is defined as ListView

[android-developers] Re: Memory management issues - stop crashing the party!

2009-07-30 Thread choff
Hi I'm also a programmer on this project. These arrays are class variables of our Activity class. When we change these from instance variables to static class variables it seems that the problem goes away in relation to these arrays ( we then start bumping into problems with other instance

[android-developers] KeyEvent for backspace.

2009-07-30 Thread Mathieu Plourde
Hello devs, This seem pretty trivial, but I can't find the key event constant for the backspace button. Which one is it? I tried KEYCODE_BACK, KEYCODE_CLEAR, etc. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Folder issues

2009-07-30 Thread 안호성
I want unsubscribe Android Developer's Group. Please Don't Send These emails any more... -Original Message- From: Andrei Bucurlt;andrei.bu...@gmail.comgt; To: Android Developerslt;android-developers@googlegroups.comgt; Cc: Sent: 09-07-30(목) 17:45:59 Subject:

[android-developers] left handed user

2009-07-30 Thread Sophie
Hi developers, As I'm just an Android user, I might be illegally here. But I just found out that being left handed, I have a slight problem with my recently purchased HTC Magic. I have searched Market already, but could not find anything to help me. My problem is this: as I am left handed, I like

[android-developers] Re: Mipmap Generation

2009-07-30 Thread nea
Hi I am also currently trying to get MipMaps to work and eventually this is the thread that pops up several times in the search ^^'. The problem I have with your posted solution, it does not work for me. As soon as I try it your way I do not get any texture at all. It just stays white. What

[android-developers] Re: Emulator quick start

2009-07-30 Thread rehab mohamed
do not close the emulator after run and you can run your application again and the emulator will be updated with out closing it this way is faster than close and run again From: jack jack.j...@gmail.com To: Android Developers

[android-developers] Re: Separating Widget from main Application

2009-07-30 Thread rycerz1411
It does only happen from Eclipse a, but I am not sure if this behavior would be identical when someones installs the app and launches it the first time. Thanks On Jul 30, 11:31 am, Michael Elsdörfer mich...@elsdoerfer.info wrote: Make sure this doesn't just happen when you launch from Eclipse

[android-developers] Re: Relative Layout XML attributes have no obvious programmatic equivalent.

2009-07-30 Thread doubleslash
Have you tried addrule? On Jul 29, 4:47 pm, bpellow bpello...@gmail.com wrote: Romain, Just like John and Pavel, I cannot figure out how to set some RelativeLayout XML attributes programmatically in Java. For example, I cannot find a programmatic way to define layout_centerVertical=true

[android-developers] Payment options for Android Market

2009-07-30 Thread kelly
Hello, Not long ago, I read a post at http://androidcommunity.com/google-to-expand-android-market-payment-choices-20090716/ about coming updates to the Android Market. These updates had to do with expanded options for billing beyond the current ones (free vs. paid). I was wondering if anyone had

[android-developers] Re: Widgets ( frequent updates )

2009-07-30 Thread Alexey Volovoy
Ok.. so i already have an receiver for the widget... and adding screen_on/screen_off should do it ? !-- Broadcast Receiver that will process AppWidget updates -- receiver android:name=com.package.NewsWidget android:label=@string/app_name intent-filter

[android-developers] Re: Widgets ( frequent updates )

2009-07-30 Thread Mark Murphy
Ok.. so i already have an receiver for the widget... and adding screen_on/screen_off should do it ? !-- Broadcast Receiver that will process AppWidget updates -- receiver android:name=com.package.NewsWidget android:label=@string/app_name intent-filter

[android-developers] Re: Widgets ( frequent updates )

2009-07-30 Thread Alexey Volovoy
Oh man.. that not going to fly .. I can't do it from the service, because service runs like for a second to update the widget and stopSelf(). So if i register something onStart() i'd have to unregister that onDestroy(). Therefore to actually catch that event while service is running becomes kind

[android-developers] Re: Widgets ( frequent updates )

2009-07-30 Thread Alexey Volovoy
is there anyway to get to the state of the phone/screen without listening to broadcasts ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Unhandled Exception

2009-07-30 Thread Jack Ha
Did you call setContentView() in onCreate()? BTW, why did you instantiate the buttons inside onClick()? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-developers] CursorAdapter question

2009-07-30 Thread skink
hi, i'd like to use CursorAdapter but Cursor its based on cannot be returned by simple sql query, since in db i have two fields and based on some criteria they build the String that would be displayed in the ListView. what is the best solution: forget CursorAdapter and use ArrayAdapter or

[android-developers] Re: access sms messeges

2009-07-30 Thread Jack Ha
Take a look at this link: http://code.google.com/p/android-smspopup/source/browse/trunk/SMSPopup/src/net/everythingandroid/smspopup/SmsPopupUtils.java -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the

[android-developers] Re: CursorAdapter question

2009-07-30 Thread Mark Murphy
skink wrote: i'd like to use CursorAdapter but Cursor its based on cannot be returned by simple sql query, since in db i have two fields and based on some criteria they build the String that would be displayed in the ListView. what is the best solution: forget CursorAdapter and use

[android-developers] Re: Relative Layout XML attributes have no obvious programmatic equivalent.

2009-07-30 Thread Mark Murphy
doubleslash wrote: Just like John and Pavel, I cannot figure out how to set some RelativeLayout XML attributes programmatically in Java. For example, I cannot find a programmatic way to define layout_centerVertical=true with only Java.

[android-developers] Re: Terminating Application (Activity)

2009-07-30 Thread Mark Murphy
droidin.net wrote: For the test purposes I need to terminate my app from within my code. Doing Activity#finish() doesn't do it. Doing Activity#getMainLooper#quit fails with exception. Here's sequence of steps I'm trying to do: 1. Activity calls another application 2. Original application

[android-developers] Re: Database problems...

2009-07-30 Thread Jack Ha
I don't see that you have CREATE_TABLE_COMPUTERS defined. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA,

[android-developers] Re: DDMS Allocation Tracker - Start Tracking Disabled

2009-07-30 Thread shaun
In the first line in the last post, I meant to say, I just exited eclipse and ddms, then STARTED the emulator from the command line, and ddms from the command line and it looks to work. On Jul 30, 2:05 pm, shaun shashepp...@gmail.com wrote: I just exited eclipse and ddms then the emulator from

[android-developers] How does app change icon of core apps?

2009-07-30 Thread Andy Droid
Some of those Home apps such as Better Home, change the graphics for some of the core apps, such as contacts? How do they do that? Are they opening up the apk, and replacing resources, and then zipping it back up again? You can always go back to the original Home though, so I don't get how

[android-developers] Re: How can you prevent somebody from calling in Android ?

2009-07-30 Thread Roman
If you write your own phone application you are able to add whatever checks you want. Problem is how to prevent that children are still using the old phone app? If you want to restrict the current phone application you might need to add your changes on framework level. -- Roman Baumgaertner Sr.

[android-developers] Re: Memory management issues - stop crashing the party!

2009-07-30 Thread fadden
On Jul 29, 12:15 pm, choff choff_2...@hotmail.com wrote: [...]  This would suggest that ANDROID itself is not letting go of the Activity instances.  That some how they are being queued up or hung on to... Again, your best bet is to look for the objects in the hprof data and see what's holding

[android-developers] Re: Questions about Android Calendar and Uninstall application

2009-07-30 Thread Elvis
I think the calendar should be installed in /system/app/ by default if it is already installed. BTW, I've met the same problem as you have. I tried to run calendar on emulator or on a custom device, both failed to launch. I searched in this group, someone said that google login service which is

[android-developers] Is Settings.Secure.HTTP_PROXY the same as APN on proxy?

2009-07-30 Thread Aaron Li
Hello all, I'm just curious about the proxy setting in APN, it seems that this setting will lead default browser traffic to pass through it. Is this APN proxy setting the same as HTTP proxy ? Any feedback will be highly appreciated. Best regards, Aaron

[android-developers] Audio stops after few seconds in service

2009-07-30 Thread Farhan
Hello, I am playing an audio file of about 1 minute length in a Service. I used startService method yet when I move away from the activity which starts the Service, playback stops after few seconds. If I stay with the Activity then I can listen to the whole audio. I thought playing an audio file

[android-developers] Getting the Projection Matrix in OpenGL

2009-07-30 Thread Richard Schilling
I'd like to get the projection matrix of my view using OpenGL on Android. What's the API call? I cannot find it. Thanks. Richard Schilling --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Can i make a Gallery to Vertical insted of Horizantal ?

2009-07-30 Thread Freshman
Hi Guys, As the subject states Can i make a Gallery to Vertical insted of Horizantal ? i tried but couldn't found anything that makes it vertical. Thax in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Can i make a Gallery to Vertical insted of Horizantal ?

2009-07-30 Thread Jack Ha
No. Gallery doesn't support vertical mode. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul

[android-developers] Re: Audio stops after few seconds in service

2009-07-30 Thread Farhan
I think I just solved it by calling setForeground(true). I wonder how I missed it in the API reference :P On Jul 30, 9:15 pm, Farhan russ...@gmail.com wrote: Hello, I am playing an audio file of about 1 minute length in a Service. I used startService method yet when I move away from the

[android-developers] Re: ExpandableListView won't redraw, static group data, dynamic child data

2009-07-30 Thread Steve
I don't know anything about datasetobserver, and I'm sure there are better ways to do this, but a hack that works for me is to keep track of when you need to refresh the list. If the user creates a new entry while in the expandable list, then I launch that as an activity for a result, and if it

[android-developers] Intercept home button?

2009-07-30 Thread Wah
In an activity, how do detect the fact that the user pressed the home button? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Listview Tabhost

2009-07-30 Thread Jack Ha
Can you post your logcat output with the stack trace? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA,

[android-developers] Does the apk compiled in the old version of android src run on the newer version?

2009-07-30 Thread max
Hi Everyone, Does the apk compiled in the old version of android src run on the newer version? Does google keep the api interface all the time during the update process of android src? I hear that a APK should be signed and then can be installed on the specific device, is it? Any article that

[android-developers] Re: Intercept home button?

2009-07-30 Thread Jack Ha
You won't be able to detect that as KeyEvent.KEYCODE_HOME can't be intercepted. It is for internal use only. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and

[android-developers] [repo/git/Ubuntu] Do I need to 'make' entire Android platform if I only want the Launcher?

2009-07-30 Thread alucard20004
Hi. My goal: - Re-build the (built-in)Launcher application and modify/re-skin it then publish as the new .apk. My current situation: 1. I installed Ubuntu on my machine and follow the instructions on this page: http://source.android.com/download 2. I successfully execute $ repo sync. Now the

[android-developers] Re: Memory management issues - stop crashing the party!

2009-07-30 Thread Rud
Are you running on the emulator or a device? There are some reports that on the emulator, espeically in debug mode, memory is not GC'd because the debugger is holding a refernece. I haven't experimented to see if this is true but it is worth checking into. You might try calling the GC prior to

[android-developers] Re: Unhandled Exception

2009-07-30 Thread Bharath B.G.
Ya i hav called setContentView() wat is the problem if i create adn instantiate the buttons inside the onCreate()...? On Fri, Jul 31, 2009 at 2:17 AM, Jack Ha jack...@t-mobile.com wrote: Did you call setContentView() in onCreate()? BTW, why did you instantiate the buttons inside onClick()?

[android-developers] Re: How to keep service alive?

2009-07-30 Thread Archana
Hi , I am also facing the same issue.My app exiting automatically after showing this error message in logcat log - INFO/ActivityManager(56): Low Memory: No more background processes. can you tell me how to solve this.I am using thread in my app.so i thought may be it becoz of that. But after

<    1   2