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

2009-07-30 Thread Archana
Hi, I already tried with setForeground(true) method.But no use.Same error Also I tried without using service and background ... I used some views which contains some images.Then also i am getting same error. On Jul 31, 11:39 am, Guillaume Perrot wrote: > You can use setForeground(true) inside y

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

2009-07-30 Thread Guillaume Perrot
You can use setForeground(true) inside your service's onCreate() to make your Service considered important, the service won't be killed so often... HOWEVER it's recommended (see previous post from Dianne) that you show an ongoing notification while the service is alive (show in onCreate(), dismiss

[android-developers] Re: Android Dev Phone 1 out of stock

2009-07-30 Thread Kaj Bjurman
Another option is to order a new phone from an online store. On 27 Juli, 21:15, AndyB wrote: > Nobody seems to have answered the question, > > Like you, i recently got fed up waiting for the G1 to be released in > my country (Ireland) so I decided to order the ADP1, only to find out > there was

[android-developers] Re: Custom tabs issue

2009-07-30 Thread Gulfam
I also have the same problem any update. Gulfam On Jul 30, 2:41 am, Pushkar wrote: > I could not find a straightforward way to do that, I use reflection > APIs to get rid of it. > > TabWidget tw = getTabWidget(); > > Field mBottomLeftStrip; >                 Field mBottomRightStrip; >          

[android-developers] Re: SoftKeyboard doesn't appear on AlertDialog

2009-07-30 Thread Gulfam
Hi, Can you please post your code snippet? Gulfam On Jul 30, 3:53 pm, drjunior wrote: > Hi, > > I have one EditText inside one AlertDialog. When the EditText has > focus the SoftKeyboard doesn't appear with vertical screen > orientation. I have other EditTex in a common Layout and this works

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

2009-07-30 Thread droidin.net
Mark! You are a genius! It did exactly what I need. I'll put it as a tip into my blog (http://dev.bostone.us) with due diligence, it's a great testing tool On Jul 30, 3:09 pm, Mark Murphy wrote: > droidin.net wrote: > > For the test purposes I need to terminate my app from within my code. > > Do

[android-developers] Re: Is there Galaxy simulator?

2009-07-30 Thread Gulfam
Hi I think you are asking about android emulators if yes then you can find at this URls. http://teavuihuang.com/android/ Gulfam On Jul 30, 9:55 pm, dan raaka wrote: >  simulator ? I guess you meant images for emulator .. > but oems can provide their images for the emulator as addon for SDKr

[android-developers] Re: Unhandled Exception

2009-07-30 Thread Bharath B.G.
Hi, No stack trace could be found, i hav attached the screen shot, u can make it out from it Regards Bharath BG On Fri, Jul 31, 2009 at 10:08 AM, Jack Ha wrote: > > Your original post said that the buttons were instantiated inside > onClick() not onCreate(). Just wanted to clarify that. > > Can

[android-developers] Did anyone have the experience of removing calendar / dailer from android source?

2009-07-30 Thread Elvis
Hi all I'm working on a custom board which have no phone function, is it possible to remove or hide dialer application? For calendar, I've tried to remove it directly from the android source, but it could not boot. Did any one experience working on this? Elvis --~--~-~--~~-

[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

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

2009-07-30 Thread Jeff Sharkey
When you register for AppWidget updates through the updatePeriodMillis parameter, the system schedules an update for you using setInexactRepeating() with a WAKEUP flag. (Which forces the device awake for every update.) Here's the relevant system service code: http://android.git.kernel.org/?p=pl

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

2009-07-30 Thread Jeff Sharkey
Sounds like you're looking for View.setVisibility(View.GONE). Use findViewById() to obtain a reference to the ProgressBar, then hide or show it as needed. j 2009/7/28 frog : > hi,all > Someone have try add some widget to listview here? I want to add a > progressbar to the bottom of some row of

[android-developers] Re: Support for German / Polish Characters

2009-07-30 Thread Jeff Sharkey
RemoteViews.setTextViewText() takes a CharSequence, which should work just fine with extended character sets. Can you reproduce the issue if you use a normal TextView in a layout inside your app instead of pushing the text through RemoteViews? j On Mon, Jul 27, 2009 at 7:53 AM, Nick wrote: > >

[android-developers] Re: what's wrong in this code

2009-07-30 Thread gopu
http://android-developers.blogspot.com/2009/05/painless-threading.html On Jul 31, 9:08 am, Marco Nelissen wrote: > Can you be more specific than "it's not working" ?Does it crash? If so, post > the stack trace from the log. > > On Thu, Jul 30, 2009 at 11:20 AM, rizwan wrote: > > > it is not wo

[android-developers] Re: Unhandled Exception

2009-07-30 Thread Jack Ha
Your original post said that the buttons were instantiated inside onClick() not onCreate(). Just wanted to clarify that. Can you post your exception stack trace here? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are tho

[android-developers] Re: MediaScannerConnectionClient which content provider?

2009-07-30 Thread Marco Nelissen
That is determined by the location of the file you're scanning. On Thu, Jul 30, 2009 at 11:38 AM, Sonja_android wrote: > > Sounds good. Is there a way to specify which database I'd like the > MediaScannerConnectionClient to use? > > On Jul 29, 6:56 pm, Marco Nelissen wrote: > > On Wed, Jul 29,

[android-developers] Re: what's wrong in this code

2009-07-30 Thread Marco Nelissen
Can you be more specific than "it's not working" ?Does it crash? If so, post the stack trace from the log. On Thu, Jul 30, 2009 at 11:20 AM, rizwan wrote: > > it is not working . I don't know why please advise at your earliest. I > m stuck here . > > > public myclass extends Activity implement

[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 wrote: > Did you call setContentView() in onCreate()? BTW, why did you > instantiate the buttons inside onClick()? > > -- > Jack Ha > Op

[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 re

[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 2

[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 d

[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: 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, Inc.

[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@googlegr

[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 c

[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 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 activity which > s

[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 30

[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 "And

[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] 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] 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] 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] Re: Memory management issues - stop crashing the party!

2009-07-30 Thread fadden
On Jul 29, 12:15 pm, choff 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 on to them. There

[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] 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 that

[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 wrote: > I just exited eclipse and ddms then the emulator from the command > lin

[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, I

[android-developers] Re: CursorAdapter question

2009-07-30 Thread skink
On Jul 31, 12:07 am, Mark Murphy wrote: > 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

[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 applic

[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. http://developer.android.com/reference/and

[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 Ar

[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 author

[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 Matrix

[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] 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-develo

[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 o

[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 ? > > android:label="@string/app_name" > > > android:name="android.intent.action.SCREEN_ON" /> > android:name="android.intent.actio

[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 ? Strangely i don't receive SCREEN_OFF/SCREEN_ON in my @Override public void

[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: 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 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" with only Ja

[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 wrote: > Make sure this doesn't just happen when you launch from Eclipse - this > is actually a

[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 To: Android Developers Sent: Thursday, July 30, 2009 10:37:59 AM Subject: [a

[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 coul

[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: 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 Bucur" To: "Android Developers" Cc: Sent: 09-07-30(목) 17:45:59 Subject: [android-developers] R

[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 Grou

[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 varia

[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 ArrayAdapter (this,android.R.layout.simple_list_item_1, SITES)); it dies a rather unglamorouis death. List is defined as I suspect I'm missing something rat

[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 coord

[android-developers] Re: password mode

2009-07-30 Thread peter
On Jul 30, 1:53 pm, Shang Hao 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: > mInputPwd.setTransformationMethod

[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] similarly other 3 buttons such as Add, Find and Next [b]I initialised all 4 buttons inside the onClick() using the following snippet[/b]

[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 wrote: > I have alistviewthat is populated by a couple threads that pull in > data from the networ

[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, GroupMembers

[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 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 'appList': > >

[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] 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 s

[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 wrote: > hi,all > I had this questions a few days ago.but no one give the answer,perhaps that

[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 wrote: > Thanks, I just read something about the instrumentation, and have the > last question tha

[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. http://search.twitter.com/search.json?callback=f

[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: 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 wrote: > Hi > > How can I getFarsifont on my HTC Dream Android phone? > > Saeed --~--~-~--~~~---~--~~ You r

[android-developers] Re: Change Tab Background

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 wrote: > Hi guys, > > a simple ques

[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 wrote: > Do not inflate a new view every time, not only is it less efficient > but it can make your application run out of memory if the u

[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: Thanks, Ben

[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] 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" grou

[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. requestWindowFeature(Window.FEATURE_NO_TITLE)

[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: Custom tabs issue

2009-07-30 Thread Pushkar
I could not find a straightforward way to do that, I use reflection APIs to get rid of it. TabWidget tw = getTabWidget(); Field mBottomLeftStrip; Field mBottomRightStrip; try { mBottomLeftStrip = tw.getClass().getDeclaredField ("mBottomLeftStri

[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 Klaus Kartou
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 b

[android-developers] Database problems...

2009-07-30 Thread Skeniver
Hi there I am trying to create a database with two tables. Employees and Computers. A spinner with employee names fill properly when I don't try create and do anything with the second table... The code to create is: private static class DBOpenHelper extends SQLiteOpenHelper { pri

[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?

2009-07-30 Thread TaoK
Hi, I got this working in windows XP (french), but not following any of the suggestions I have seen so far exactly: 1) Set the device in debug mode, under applications (mentioned everywhere, clearly required) 2) Install Samsung New PC Studio (not sure this actually did anything useful...) 3) I

[android-developers] SoftKeyboard doesn't appear on AlertDialog

2009-07-30 Thread drjunior
Hi, I have one EditText inside one AlertDialog. When the EditText has focus the SoftKeyboard doesn't appear with vertical screen orientation. I have other EditTex in a common Layout and this works fine. Someone with same problem? --~--~-~--~~~---~--~~ You receive

[android-developers] OPHOne JIL widgets and Android

2009-07-30 Thread Fred Grott(shareme)
I have a question.. It appears that OPHOne has JIL web widgets.. Since OPHone is base don andorid OS has anyone started work on supporting JIL web widget sdk/api in Android ? Fred Grott http://mobilebytes.wordpress.com --~--~-~--~~~---~--~~ You received this mess

[android-developers] Re: what's wrong in this code

2009-07-30 Thread riz
it is causing a problem in Thread.sleep (2000); but why ? please if any body explain On Jul 30, 11:23 pm, riz wrote: > I m just trying to call drawScore method from another Thread . > drawScore method just changes the text of textView but it's not > working .any idea ? > > On Jul 30, 11:20 pm, r

[android-developers] Modifying the built-in Alarm Clock. No way to return to the snooze/dismiss dialog.

2009-07-30 Thread alucard20004
(Please excuse my imperfect English) Hi. I'll get straight to the point. I downloaded the built-in Alarm Clock source and trying to modify it so that user need to play mini game in order to stop the alarm. What I did: 1. I removed the "dismiss" and "snooze" button. (so user will have no choice

[android-developers] Re: MediaScannerConnectionClient which content provider?

2009-07-30 Thread Sonja_android
Sounds good. Is there a way to specify which database I'd like the MediaScannerConnectionClient to use? On Jul 29, 6:56 pm, Marco Nelissen wrote: > On Wed, Jul 29, 2009 at 8:26 AM, Sonja_android wrote: > > > > > I am using the MediaScannerConnection and corresponding > > MediaScannerConnectionC

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

2009-07-30 Thread Michael Elsdörfer
Make sure this doesn't just happen when you launch from Eclipse - this is actually a pretty useful feature for development. Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] Terminating Application (Activity)

2009-07-30 Thread droidin.net
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 terminates (basically I'm t

[android-developers] Free app with paid subscriptions for "premium" content

2009-07-30 Thread kelly
I'm interested in knowing whether the TOS for Android Market allows for a freely-downloadable application to be distributed on the Market, with a means of charging the customer (via Google Checkout, PayPal, etc.) for access to "premium" features (which would also be available external to Android

[android-developers] Re: what's wrong in this code

2009-07-30 Thread riz
I m just trying to call drawScore method from another Thread . drawScore method just changes the text of textView but it's not working .any idea ? On Jul 30, 11:20 pm, rizwan wrote: > it is not working . I don't know why please advise at your earliest. I > m stuck here . > > public myclass exten

[android-developers] Re: ALL DEVELOPERS PIRATED APPLICATION ALL OVER!

2009-07-30 Thread Jeff
Just discovered my app was pirated. The user who posted in the forum was dumb enough to use his real name so that I know which customer did it. I think that people that download the pirated app won't get upgrades unless they purchase. Can anyone confirm this? If this is the case, maybe some of

[android-developers] what's wrong in this code

2009-07-30 Thread rizwan
it is not working . I don't know why please advise at your earliest. I m stuck here . public myclass extends Activity implements ICounter{ TextView view ; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); view = new Te

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

2009-07-30 Thread shaun
I just exited eclipse and ddms then the emulator from the command line, and ddms from the command line and it looks to work. eclipse must be running ddms also causing multiple instances to run when I ran ddms from command line like you mentioned. I guess I have to figure out how to use the one i

[android-developers] Re: ListView: invisible dividers still take up space. Is it a bug or a feature?

2009-07-30 Thread Romain Guy
> but the code related to the layout of the children seems to ignore the > presence of disabled items. It's reserving space for dividers that > will not be drawn by dispatchDraw. > > Maybe this is intended as well. But anyway, I wish it was intended > (and implemented) the other way ;) This is th

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

2009-07-30 Thread shaun
I start with eclipse running, emulator not running, ddms not running. I then run my application on emulator (I don't know if the eclipse plugin will start some ddms process at that time or not). Just looking around logcat for errors or strange occurrences and I see quite a few errors and warning

[android-developers] Re: Maximum Number of Connections

2009-07-30 Thread fadden
On Jul 29, 6:31 pm, Rich wrote: > D/libc-abort( 1180): abort() called in pid 1180 > I/DEBUG   (  551): *** *** *** *** *** *** *** *** *** *** *** *** *** > *** *** *** > I/DEBUG   (  551): Build fingerprint: 'generic/google_sdk/generic/:1.5/ > CUPCAKE/148875:eng/test-keys' > I/DEBUG   (  551): p

[android-developers] Re: startActivity Problem

2009-07-30 Thread Dianne Hackborn
There was never a point at any stage in the development of the platform where startActivity() would start a Service. :) On Thu, Jul 30, 2009 at 10:21 AM, kolbysoft wrote: > > Thanks Yusuf, > > that worked. > Still curious though, when did the startActivity behavior change? It > worked in an olde

  1   2   >