[android-developers] How to handle widget's Long Click event on home screen?

2009-08-10 Thread Jimmy Huang
Dear All, Does anyone know how to handle widget's Long Click event on home screen? I want to implement: long click one widget on home screen then one menu will be popup. Thanks, Jimmy --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: How to handle widget's Long Click event on home screen?

2009-08-10 Thread Romain Guy
You cannot do this. Long press on Home is reserved to drag and drop. On Sun, Aug 9, 2009 at 11:15 PM, Jimmy Huanghuan...@gmail.com wrote: Dear All, Does anyone know how to handle widget's Long Click event on home screen? I want to implement: long click one widget on home screen then one

[android-developers] Re: about the hardware acceleration of Skia drawing

2009-08-10 Thread Romain Guy
No, we are not working on this at the moment. That said, we did an experiment about a year ago and you can probably find the results of that experiment in the source code of the platform. On Sun, Aug 9, 2009 at 10:57 PM, Zhiguo Gezhiguo.ge.w...@gmail.com wrote: Hi, Dianne     Thanks for your

[android-developers] Re: Will a notification still work if the device once shut down.

2009-08-10 Thread Kaj Bjurman
An Android device that is turned off, can't be started by an alarm. (Unlike e.g. SE and Nokia phones). Set the alarm clock on your Android phone, then turn it off. It will be kept off. On 6 Aug, 10:42, guishenl...@gmail.com guishenl...@gmail.com wrote: Hi all,     I have an application with

[android-developers] Re: How to handle widget's Long Click event on home screen?

2009-08-10 Thread Jimmy Huang
Thanks for your quick reply. But if I develop one myself's Home, then I can define the Long press event on myself widget on Home? Thanks, Jimmy On Aug 10, 3:01 pm, Romain Guy romain...@google.com wrote: You cannot do this. Long press on Home is reserved to drag and drop. On Sun, Aug 9, 2009

[android-developers] Re: How to find my apps´ locati on

2009-08-10 Thread Nox
Sorry, I mean, I want to integrate a menu(in an app) where I can tap to related apps.Then the app should open the Andoid-Market. But unfortunately I don't know how to do that. On Aug 9, 4:15 pm, Jack Ha jack...@t-mobile.com wrote: Not sure what you mean here by finding thelocationof your

[android-developers] Re: Why does my PhoneStateListener go quiet?

2009-08-10 Thread Ne0
Thanks for you input Chris. I have managed to get around the issue by using SCREEN_DIM_WAKE_LOCK, the PhoneStateListener still receives updates when held in that state. As my app is for engineering purposes and will not be for the general Market, i have decided to make it a platform application

[android-developers] Is there any alternative of ImageIO class in Android?

2009-08-10 Thread javame_android
Hi, I want to port Java Application to Android. The application is based on JOGL. For implementing Texture part I need to find out an alternative to ImageIO class. I have read about Bitmap class. Moreover, can someone let me know how to load texture from Inputstream which is not in the resource

[android-developers] Re: Is there any alternative of ImageIO class in Android?

2009-08-10 Thread Romain Guy
Look at BitmapFactory. On Mon, Aug 10, 2009 at 1:06 AM, javame_androidsu...@saltriver.com wrote: Hi, I want to port Java Application to Android. The application is based on JOGL. For implementing Texture part I need to find out an alternative to ImageIO class. I have read about Bitmap

[android-developers] Re: Is there any alternative of ImageIO class in Android?

2009-08-10 Thread Sujay Krishna Suresh
make use of the BitmapFactory class's static methods. On Mon, Aug 10, 2009 at 1:36 PM, javame_android su...@saltriver.com wrote: Hi, I want to port Java Application to Android. The application is based on JOGL. For implementing Texture part I need to find out an alternative to ImageIO

[android-developers] Re: ADC2

2009-08-10 Thread CraigsRace
Wait for instructions to appear on http://code.google.com/android/adc/ *bump* Still waiting for instructions... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] question about tabhost

2009-08-10 Thread tstanly
hi all, I have a questions for setting tab widget, if I set three tab initial, then how can I remove one of three tab? because form the reference, http://www.104.com.tw/area/army/search.cfm#go there only have the clearalltabs() method. thanks

[android-developers] Re: question about tabhost

2009-08-10 Thread tstanly
and the other question is when I want to add tab, the code is: eg: mTabHost.addTab(mTabHost.newTabSpec(tab_test1).setIndicator (one).setContent(R.id.mTextView); if now I want to add two component in a tab content such as TextView and Button widget, then how can I do that? thanks!! On 8月10日,

[android-developers] questions about tabHost

2009-08-10 Thread tstanly
hi all, I have two questions for setting tab widget, if I set three tab initial, then how can I remove one of three tab? because form the reference, http://developer.android.com/reference/android/widget/TabHost.html#setCurrentTabByTag(java.lang.String) there only have the clearalltabs()

[android-developers] Re: AppWigets into Applications

2009-08-10 Thread mtd
Hi, thanks for the answers but I still have doubts because I don't want to choose de widget from a list, instead of this, I want to insert a specifically widtget, so, is it necessary to use the android.appwidget.action.APPWIDGET_PICK intent in this case? Thanks On 7 ago, 10:02, Jeff Sharkey

[android-developers] disable scrolling touch events in ScrollView, just want to to scroll programmatically

2009-08-10 Thread rukiman
Just wondering if there is an easier way to simply stop ScrollView from being scrolled via touch inputs? I will programmatically get the ScrollView to scroll to top or bottom. As a last resort, I guess I will have to inherit from ScrollView and capture all the ontouch events. But wondering if

[android-developers] how can I move an Item to the center of the screen?

2009-08-10 Thread luo ian
hi guys; In a ListView, if we click one item that is at the button of the screen, can we move it to the center of the screen automatically when this click action happens? BR -- ian.luo --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: disable scrolling touch events in ScrollView, just want to to scroll programmatically

2009-08-10 Thread Atif Gulzar
do not use scrollView at all and use LinearLauout and use combination of touch events and scrollBy(int, int)file:///E:/android-sdk-windows-1.5_r3/docs/reference/android/view/View.html#scrollBy%28int,%20int%29, scrollTo(int,

[android-developers] Re: listview (text+icon) inside a class Atcivity and not ListActivity

2009-08-10 Thread Dany BREARD
Hi Mark Even if it's the same like what you said, I guess I have to make my own getView(int position, View convertView, ViewGroup parent) http://developer.android.com/intl/fr/guide/samples/ApiDemos/src/com/example/android/apis/view/List14.html Do you think its just possible to change severale

[android-developers] Close Application

2009-08-10 Thread Blackmarket
Hi, i want to add an exit button to the menu, but didn't see an easy way to close an application or acces all activities of an application and finish them. Is there an easy approach avaible? Regards, Pascal --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: disable scrolling touch events in ScrollView, just want to to scroll programmatically

2009-08-10 Thread rukiman
LinearLayout will not work for me as what I want to put in the ScrollView is much larger than the screen. So I think it is easier to use ScrollView as it knows to not render the widgets until it scrolls onto view? Unless can you get that behaviour using a LinearLayout? On Aug 10, 7:32 pm, Atif

[android-developers] Re: Setting a listener for drag animations in MapView

2009-08-10 Thread christoph widulle
Hi Daniel, check out mapview-overlay-manager. http://code.google.com/p/mapview-overlay-manager/ its a library that exactly addresses to your needs. would be great if you can give me some feedback. Greetings, Christoph On 7 Aug., 14:01, Cachapa cach...@gmail.com wrote: Hi, I have a class

[android-developers] Re: disable scrolling touch events in ScrollView, just want to to scroll programmatically

2009-08-10 Thread rukiman
Also I really want to use the .smoothScrollBy() function of the scrollView. On Aug 10, 7:39 pm, rukiman ruksh...@optushome.com.au wrote: LinearLayout will not work for me  as what I want to put in the ScrollView is much larger than the screen. So I think it is easier to use ScrollView as it

[android-developers] About https connection

2009-08-10 Thread UJ
Hello, experts, About Android new platform Donut... It cannot build a https connection which has a private certification . Such as, If we try to connect to a private certification website, the browser may show ignore, trust it, quit to continue browsing webpage. Will andorid has any plan to

[android-developers] Re: Close Application

2009-08-10 Thread Carl Whalley
System.exit(0) -- Android Academy http://www.androidacademy.com On Aug 10, 10:36 am, Blackmarket pascal.se...@gmail.com wrote: Hi, i want to add an exit button to the menu, but didn't see an easy way to close an application or acces all activities of an application and finish them. Is

[android-developers] AppAccelerator for Android and iPhone

2009-08-10 Thread Premier
does someone knows and uses appaccelerator (http:// www.appcelerator.com/products/titanium-mobile/) for android? What do you think about? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: disable scrolling touch events in ScrollView, just want to to scroll programmatically

2009-08-10 Thread rukiman
Ok my requirements for this were 1) need scrollview to do smooth scrolling however only wanted scrolling to occur programmatically and not via touch 2) scrollview hijacks some touch events that stop the inner widgets from working so didnt want this. so I had to extend scrollview to meet my

[android-developers] Re: Close Application

2009-08-10 Thread Blackmarket
Doesn't work. It just closes the active Activity and changes to the last Activity. Actually it has the same effect like finish() Regards, Pascal On 10 Aug., 11:54, Carl Whalley carl.whal...@googlemail.com wrote: System.exit(0) -- Android Academyhttp://www.androidacademy.com On Aug 10,

[android-developers] Re: Close Application

2009-08-10 Thread Alessio Grumiro
Android kills your application if it is unused for long time.Your job is to close all application's activities with finish() method. Bye 2009/8/10 Blackmarket pascal.se...@gmail.com Hi, i want to add an exit button to the menu, but didn't see an easy way to close an application or acces

[android-developers] Re: Close Application

2009-08-10 Thread Alessio Grumiro
you have to close all application's activities! When you change activity, you have to call finish() on old activity, so just one activity is shown on screen and in stack. 2009/8/10 Blackmarket pascal.se...@gmail.com Doesn't work. It just closes the active Activity and changes to the last

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

2009-08-10 Thread drjunior
Hi The bug is on alertdialog with one custom view on Title. If this view has one or more EdittText, the Softkeyboard doesn't appear when you click on they :s drjunior On Jul 31, 7:24 am, Gulfam gulfa...@gmail.com wrote: Hi,  Can you please post your code snippet? Gulfam On Jul 30, 3:53 

[android-developers] Animation across the layouts

2009-08-10 Thread BouHu
Hello. I've met a problem with animation when tried to make a View to perform the animation which should cross 2 layouts, e.g. make a translate animation so a view could move down to the TableRow below. This trick works fine when i try to move a view within a single TableRow but not when i try

[android-developers] How to add a new application to the cupcake source code?

2009-08-10 Thread Handy_Zhou
Some APIs is not supplied in SDK,such as bluetooth and so on. I want to develop an app in cupcake source code.It can simulate keyinject like Monkey and it should communicate with PC by bluetooth. What should I pay more attention?How do I change the makefile? Is it relizalible?

[android-developers] Re: Animation across the layouts

2009-08-10 Thread BouHu
I should add that the observed behavior for the animation across the layouts is interrupted movement, while animation within the same layout works fine without any interruptions. On 10 авг, 15:16, BouHu petrov@gmail.com wrote: Hello. I've met a problem with animation when tried to make a

[android-developers] Text-To-Speech library

2009-08-10 Thread Sujay Krishna Suresh
Hi all, is there any text to speech library in 1.5?? if so where is it??? how can we use it?? -- Regards, Sujay Charles de Gaullehttp://www.brainyquote.com/quotes/authors/c/charles_de_gaulle.html - The better I get to know men, the more I find myself loving dogs.

[android-developers] Re: how to use preferences widgets together.

2009-08-10 Thread String
On Aug 10, 6:03 am, ANKIT SOMANI ankitsomani...@gmail.com wrote: Is there any example of it like using the preferences with widgets. ? How about ExampleAppWidgetConfigure.java, in the Android API Demos? String --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: How to create XML file Programmatically?

2009-08-10 Thread Mark Murphy
Prajkti wrote: I want to create an XML file to Store my Application Settings into. ( I can't use SharedPrefs because i want that Settings file later to be accessed by Some other Code.) That makes absolutely no sense. I can easily create an XML with java's code and store it in File too.

[android-developers] Re: Text-To-Speech library

2009-08-10 Thread Alessio Grumiro
just googled and founded http://www.anddev.org/text-2-speech_tts_for_android_released-t3964.html 2009/8/10 Sujay Krishna Suresh sujay.coold...@gmail.com Hi all, is there any text to speech library in 1.5?? if so where is it??? how can we use it?? -- Regards, Sujay Charles

[android-developers] list with multiple selection

2009-08-10 Thread Honest
Hello, I want to create list with multiple selection. Can some one tell me how can i create it ? code snippt will be much useful. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: How/where to submit the apps to ADC2?

2009-08-10 Thread Mark Murphy
manoj wrote: Hi friends, I developed an application for android. I would like to submit the same to ADC2 (Android Developer Challenge 2). I didnt find any source to submit the apps. Can any one please suggest me the sites to submit the apps? They have not announced the process for

[android-developers] Re: listview (text+icon) inside a class Atcivity and not ListActivity

2009-08-10 Thread Mark Murphy
Dany BREARD wrote: Hi Mark Even if it's the same like what you said, I guess I have to make my own getView(int position, View convertView, ViewGroup parent) http://developer.android.com/intl/fr/guide/samples/ApiDemos/src/com/example/android/apis/view/List14.html Do you think its just

[android-developers] Re: Text-To-Speech library

2009-08-10 Thread Mark Murphy
Sujay Krishna Suresh wrote: is there any text to speech library in 1.5?? if so where is it??? how can we use it?? There is no TTS library in the Android SDK. However, there is a third-party TTS library that some projects have used: http://code.google.com/p/eyes-free/ -- Mark

[android-developers] add an activity pragmatically in Menifest.xml

2009-08-10 Thread Atif
Hi, I want to run an activity without adding it in Menifest.xml file. Is it possible? and how? Actually I am developing a component (Library) that other users can plugged with their programs. Best regards, Atif --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Text-To-Speech library

2009-08-10 Thread Sujay Krishna Suresh
Thnx for the reply guys... i tried searching developer.android.com for text to speech got to a class called InputMethodService. An input method has significant discretion in how it goes about its work: the

[android-developers] Re: add an activity pragmatically in Menifest.xml

2009-08-10 Thread Mark Murphy
Atif wrote: I want to run an activity without adding it in Menifest.xml file. Is it possible? and how? It is not possible. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available!

[android-developers] Re: Text-To-Speech library

2009-08-10 Thread Mark Murphy
Sujay Krishna Suresh wrote: Thnx for the reply guys... i tried searching developer.android.com http://developer.android.com for text to speech got to a class called InputMethodService. An input method has significant discretion in how it goes about its work: the

[android-developers] Re: add an activity pragmatically in Menifest.xml

2009-08-10 Thread Andrei Bucur
This is how I make libraries for Android in Eclipse: 1. I make a new Java project 2. In the project properties, at Java Build Path - Libraries, I replace the the JDK library with the android.jar, found in the Android SDK. From what I tested, this solution seems to work. On Mon, Aug 10, 2009 at

[android-developers] Re: Setting a listener for drag animations in MapView

2009-08-10 Thread Cachapa
Hi Christoph, thanks for your suggestion, but from playing with your library demonstrator you seem to be have the same problem I identified with my solution: since the only event available from the framework is when the user lifts his finger from the touchscreen (MotionEvent.ACTION_UP), the area

[android-developers] Re: Close Application

2009-08-10 Thread Blackmarket
Is there a way to access all Activities of an Application? My Problem is, that i don't know how to access other activities to close them. On 10 Aug., 12:49, Alessio Grumiro a.grum...@gmail.com wrote: you have to close all application's activities! When you change activity, you have to call

[android-developers] MediaPlayer bug, pls help!

2009-08-10 Thread Illidane
Hello! I have such code: public static MediaPlayer mp_click; mp_click = MediaPlayer.create(Context, R.raw.click); ... mp_click.start(); When my sound played for the first time, it's all fine. But when for second, third, etc.. it sounds like cutted, just

[android-developers] Proxy SDK 1.5r1

2009-08-10 Thread arnouf
Hi all, With this SDK version I can use my emulator using a proxy server. There is three solutions: - add values in system table - configure -http-proxy in eclipse run menu - configure APN on emulator to set the proxy When I use Android browser, it's really slow but it's working...If I try to

[android-developers] Re: Close Application

2009-08-10 Thread Alessio Grumiro
I don't know, but you can save each activitie in a static list. 2009/8/10 Blackmarket pascal.se...@gmail.com Is there a way to access all Activities of an Application? My Problem is, that i don't know how to access other activities to close them. On 10 Aug., 12:49, Alessio Grumiro

[android-developers] how to check button on focus?

2009-08-10 Thread guruk
Hi, i have a set of buttons. Usualy i can also move between em also with my trackball. But now I have set styles on my buttons and I dont see anymore if a button is focused. What can I do, is there a specific Styles Tag that I can use till now i use: style name=DoorButton item

[android-developers] is Android 1.5 SDK installed in most of the android phones now ? (I want to use GLSurfaceView)

2009-08-10 Thread tanin
I would like to use GLSurfaceView for my new cool application :) But I am still hestitating because Android 1.1 and Android 1.0 do not have GLSurfaceView class. And another question, If I don't use GLSurfaceView, how can I use OpenGL with SurfaceView class? Thanks

[android-developers] Weird height of ScrollView

2009-08-10 Thread Evan Ruff
Hey guys, I'm trying to build an interface and I'm having some trouble with the ScrollView component. Basically, no matter what height I set the ScrollView, it only renders 45px high. Even if I set the height to a fixed pixel number (like, 200px) it still only renders into a tiny area of the

[android-developers] Re: Weird height of ScrollView

2009-08-10 Thread Mark Murphy
Evan Ruff wrote: then a ScrollView with a ListView inside of that You should not put a ListView, or any widget that does its own scrolling, in a ScrollView. Just drop the ScrollView and use the ListView. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy

[android-developers] Re: how to check button on focus?

2009-08-10 Thread Mark Murphy
guruk wrote: Hi, i have a set of buttons. Usualy i can also move between em also with my trackball. But now I have set styles on my buttons and I dont see anymore if a button is focused. What can I do, is there a specific Styles Tag that I can use till now i use: style name=DoorButton

[android-developers] Re: listview (text+icon) inside a class Atcivity and not ListActivity

2009-08-10 Thread Dany BREARD
I think I have 2 methode: - Take my list(icon+text) with my class extends ListActivity without buttons and i will find a methode to add my button later - Or conitnuous my code that i made with buttons and my class extends Acitvity and find a methode to add icon for each String. What do you

[android-developers] Re: listview (text+icon) inside a class Atcivity and not ListActivity

2009-08-10 Thread Mark Murphy
Dany BREARD wrote: I think I have 2 methode: - Take my list(icon+text) with my class extends ListActivity without buttons and i will find a methode to add my button later - Or conitnuous my code that i made with buttons and my class extends Acitvity and find a methode to add icon for

[android-developers] Re: Weird height of ScrollView

2009-08-10 Thread Evan Ruff
Doh! That was it! I knew it had to be something simple! Thanks Mark! E On Aug 10, 9:42 am, Mark Murphy mmur...@commonsware.com wrote: Evan Ruff wrote: then a ScrollView with a ListView inside of that You should not put a ListView, or any widget that does its own scrolling, in a

[android-developers] id specify

2009-08-10 Thread Honest
Hello, Can some one tell me how can i specify I.D in android ? acutlly i want to create List . I add the following code in main.xml file. But i do not know where i should specify @android:id /list. Can some one tell me where i should specify it ? ListView android:id=@android:id/list

[android-developers] Re: AsyncTask reuse

2009-08-10 Thread Streets Of Boston
Or use the ExecutorService (Future/Tasks/etc) in the java.util.concurrent package. On Aug 7, 2:02 pm, Dianne Hackborn hack...@android.com wrote: If you don't like it, use your own Thread or the slightly higher-level HandlerThread and implement the semantics you want. On Fri, Aug 7, 2009 at

[android-developers] Re: Close Application

2009-08-10 Thread Marco Nelissen
System.exit() is definitely not the same as Activity.finish() On Mon, Aug 10, 2009 at 3:45 AM, Blackmarketpascal.se...@gmail.com wrote: Doesn't work. It just closes the active Activity and changes to the last Activity. Actually it has the same effect like finish() Regards, Pascal On 10

[android-developers] Re: MediaPlayer bug, pls help!

2009-08-10 Thread Marco Nelissen
On Mon, Aug 10, 2009 at 5:48 AM, Illidaneillid...@gmail.com wrote: Hello! I have such code:        public static MediaPlayer mp_click;        mp_click = MediaPlayer.create(Context, R.raw.click);            ...            mp_click.start(); When my sound played for the first time, it's

[android-developers] Re: SurfaceView behavior - what gives?

2009-08-10 Thread Nightwolf
You should redraw the whole canvas. It's possible to lock only part of the canvas though. SurfaceView is intended for game applications that refresh their screen very often. On Aug 10, 7:59 am, SChaser crotalistig...@gmail.com wrote: I wrote a little test program that has a custom SurfaceView

[android-developers] Re: Switching carriers

2009-08-10 Thread Andrzej Dobrucki
Thanks. I think, there's still hope, the RIL radio module can be accessed on the framework's level which is encouraging. By sending AT commands you could possibly reach the same effect as with traditional TAPI, which you kindly mentioned. As soon as we lay our hands upon the whole source code,

[android-developers] Re: listview (text+icon) inside a class Atcivity and not ListActivity

2009-08-10 Thread Dany BREARD
Ok thanks So I try to us ListActivity I try to play your simple code here: *** public class MyActivity extends ListActivity { public TextView selection; public

[android-developers] Re: MediaPlayer bug, pls help!

2009-08-10 Thread Illidane
Thanks for answer! When I calling seek(0) before start() nothing changes.. Thanks for the SoundPool, I'll try it. On 10 авг, 17:31, Marco Nelissen marc...@android.com wrote: On Mon, Aug 10, 2009 at 5:48 AM, Illidaneillid...@gmail.com wrote: Hello! I have such code:        public static

[android-developers] Reading Calendar?

2009-08-10 Thread Kaj Bjurman
Hi, I think I've seen somewhere that it's still not possible to read Google Calendar entries? I tried to search the forum, but didn't find any relevant threads. They mostly contain questions on java.util.Calendar. Can I read entries? I understand that it might be fragile if it still isn't in

[android-developers] Re: listview (text+icon) inside a class Atcivity and not ListActivity

2009-08-10 Thread Mark Murphy
Dany BREARD wrote: Ok thanks So I try to us ListActivity I try to play your simple code here: *** public class MyActivity extends ListActivity { public TextView

[android-developers] Re: listview (text+icon) inside a class Atcivity and not ListActivity

2009-08-10 Thread Mark Murphy
Mark Murphy wrote: Please re-read the PDF I linked to several messages ago. You can get source code that matches that excerpt from: http://commonsware.com/Android (click on the Source Code link, and look in the FancyLists directory in the ZIP file) Also, you might wish to read:

[android-developers] Re: ProgressBar doesn't allow control of visibility in AppWidgetProvider App Widget?

2009-08-10 Thread Craig
Thanks Jeff, the work-around works well. On Aug 7, 7:45 pm, Jeff Sharkey jshar...@android.com wrote: Doh, good catch.  The View.setVisibility() method is marked with the @android.view.RemotableViewMethod annotation, which is what allows it to be called through RemoteViews.  In this

[android-developers] Back Navigation to defined Activity

2009-08-10 Thread Aracos
HI @all, I would like to have a Menu – Button, called Home, that goes back to my root activity and removes all activities from the stack. Therefore, if I press the back button afterwords, the application would close. I tried calling the Activity with the intent flag 'FLAG_ACTIVITY_CLEAR_TOP'

[android-developers] Setting tab heights

2009-08-10 Thread Mark Murphy
The only way I know of to change the heights of the tabs in a TabWidget is via code akin to: tabHost .getTabWidget() .getChildAt(0) .setLayoutParams(new LinearLayout.LayoutParams(width,height)); (and iterate from 0 to whatever to do all of the tabs) This feels fragile.

[android-developers] Re: Back Navigation to defined Activity

2009-08-10 Thread Marco Nelissen
On Mon, Aug 10, 2009 at 7:50 AM, Aracoskai.hen...@googlemail.com wrote: HI @all, I would like to have a Menu – Button, called Home,  that goes back to my root activity and removes all activities from the stack. Therefore, if I press the back button afterwords, the application would close.

[android-developers] Re: list with multiple selection

2009-08-10 Thread Jack Ha
Take a look at List11.java in ApiDemos. -- 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 Aug 10,

[android-developers] Re: Proxy SDK 1.5r1

2009-08-10 Thread arnouf
The 1.5r3 fixes these issue...So if you have the problem upgrade your SDK :) On Aug 10, 2:48 pm, arnouf arnaud.far...@gmail.com wrote: Hi all, With this SDK version I can use my emulator using a proxy server. There is three solutions: - add values in system table - configure -http-proxy in

[android-developers] Inserting the 'status-bar' within ones own full-screen View

2009-08-10 Thread gosh
I read somewhere in the Android documentation that (paraphrasing here): 'if you do make your own View take up the whole screen, it is then possible/even-advisable, to insert and manage the 'status-bar' within your View'. How do you do that? - i.e. insert the status-bar within ones own 'full-

[android-developers] Re: questions about tabHost

2009-08-10 Thread Jack Ha
You can't remove a tab currently. To answer your second question, you can do something like this: mTabHost.addTab(mTabHost.newTabSpec(tab_test1).setIndicator (one).setContent(R.id.content); LinearLayout id=...@+id/content″ android:orientation=”vertical” android:layout_width=”fill_parent”

[android-developers] Re: How/where to submit the apps to ADC2?

2009-08-10 Thread manoj
Thanks for your reply. On Aug 10, 4:37 pm, Mark Murphy mmur...@commonsware.com wrote: manoj wrote: Hi friends, I developed an application for android. I would like to submit the same to ADC2 (Android Developer Challenge 2). I didnt find any source to submit the apps. Can any one

[android-developers] Re: Using AsyncTask as Serializable or Parcelable -- To void activity destruction(orientation or during incoming phone call)

2009-08-10 Thread Vikas
Hello, I was able to come up with a small framework to handle all types of issues(phone calls/orientation changes etc), and it is behaving pretty well. Thanks Mark/Maher/Dianne. There is another question I wanted to ask which I thought I might utilize in my framework.(Sorry for a big message

[android-developers] Re: Inserting the 'status-bar' within ones own full-screen View

2009-08-10 Thread Dianne Hackborn
I'd be interested in knowing where this in in the documentation. The status bar is not something you can insert into your view and manage at all -- it is a completely separate window, on top of your window, that is owned by the system. The only thing you can do with it is have it hidden by the

[android-developers] Re: How to add a new application to the cupcake source code?

2009-08-10 Thread Dianne Hackborn
These kinds of questions should be posted to android-porting, since they are outside the bounds of the supported SDK and so require building your own system image. On Mon, Aug 10, 2009 at 4:07 AM, Handy_Zhou qdzhouhanq...@gmail.com wrote: Some APIs is not supplied in SDK,such as bluetooth and

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

2009-08-10 Thread Dianne Hackborn
If you are running on the emulator, and by vertical orientation you mean landscape, then this is the expected behavior since the emulator currently emulates a G1 where a hard keyboard is available in landscape. On Thu, Jul 30, 2009 at 3:53 AM, drjunior drjunior@gmail.com wrote: Hi, I

[android-developers] Calling setContentView() more than once in method onCreate() ?

2009-08-10 Thread Emre A. Yavuz
Hi, I was wondering whether anybody has tried calling setContentView() more than once in method onCreate() when creating an Activity. It seems only the last view is displayed. Or am I missing something here ? Say we have an Activity: public class SampleActivyt extends Activity {

[android-developers] Re: Calling setContentView() more than once in method onCreate() ?

2009-08-10 Thread Mark Murphy
Emre A. Yavuz wrote: Hi, I was wondering whether anybody has tried calling setContentView() more than once in method onCreate() when creating an Activity. It seems only the last view is displayed. Or am I missing something here ? Say we have an Activity: * public* *class*

[android-developers] Simply touching screen reduces fps

2009-08-10 Thread sahn0
Yes, it is. Try SpriteMethodTest, set 100 sprites, select OpenGL / Use VBO, let it run for a while. You will get something around 20ms / 50 fps. Now run it second time, and simply touch screen while test is running. You will get something around 35ms / 29 fps. So it is 15 ms difference. As I

[android-developers] Memory leak - heap size (again)

2009-08-10 Thread Seb
Hi, First at all, sorry for my english. I know that's a subject which was discuss a lot of time and I try to find a solution since more than 6 day for the memory leak which appears in my application. I've read this page: http://www.curious-creature.org/2008/12/18/avoid-memory-leaks-on-android/

[android-developers] I don't receive broadcasts

2009-08-10 Thread Frank von Daak
Hello! I have started developing a tool, which should react on an outgoing call or sms and also to be started at boot time. The start at boot time does work properply, but I'm not able to receive the broadcasts for the outgoing calls. Who can tell me, what is wrong with my code?? For this, I

[android-developers] Integrating Calendar/Contacts apps into your own application

2009-08-10 Thread Chirag Patel
Hi, I'm working on an application that allows a user to manage different email accounts all from one app. The application has it's own list of contacts / PIM (Personal Information Management) data obtained from each email service. To display the list of contacts/PIM data I was wondering if it

[android-developers] Android Market timeline

2009-08-10 Thread ST
Does anyone know if some time-line exists for when paid apps will be available in which countries? Specifically, I need to know when I can sell apps in the market in Norway. I have an app completed and waiting but at the moment we can only upload free apps :( Thanks ST

[android-developers] Will Animated GIF format be supported in Android Browser?

2009-08-10 Thread JeffJ
We understand that currently there is no Media Format support for Animated GIF from the standard Android platform. Is there any roadmap for that to be supported in Android Browser in the future? Thanks --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Publishing Applications on the Android Market: Tax implications

2009-08-10 Thread Androidmate
I'm a developer in the UK who wants to publish (and charge for) some applications to the Android Market. I don't have my own company, and don't know anything about tax. What do I need to do regarding tax? 1. Should I put all (or half or any fraction of) the earnings aside until the taxman asks

[android-developers] WebView in emulator

2009-08-10 Thread Matt
Hi, I have created an application using webview however whenever I load it up in the emulator even with asking it to load google.com in my code it comes up: Web page not available And then says the web page at http://www.google.com may be down etc. Any ideas why its doing this? Thanks. Matt.

[android-developers] Waiting Dialog?

2009-08-10 Thread chaoz1336
Hi Guys, I got the following prob: -I have to implement an interface -in most methods its like show dialog and get the selected result -afaik in android there is no way to wait for such a result so... that's the base; [syntax=java]public int showDlg() { int iSelectedChoice = -1;

[android-developers] Driver issues on windows 7

2009-08-10 Thread wypatt
I cannot get windows to install the SDK drivers instead of its preloaded disk drivers. I have tried to do a manual update from the device manager, but windows believes it knows better and says the best drivers are already installed. I also tried to shut of the automatic driver installation

[android-developers] farsi font

2009-08-10 Thread omidlahabi
Hi i have a HTC DREAM and i need farsi font for my mobile phone could u help me please --~--~-~--~~~---~--~~ 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] The Map keys of the Google APIs Add-on

2009-08-10 Thread Electron
In the Web When we apply the Map Keys, we need sumbit the URL of our sites. In the Google APIs Add-on , we need the MD5 of our soft to get the Map keys. but here is a big question. 1. MD5 is easy to be changed. 2. First I got the MD5 of my app ,and then submit, but when I add the new keys

[android-developers] Can an end user disable 2G data, or GSM function?

2009-08-10 Thread brycen
Is there a way for end users to disable 2G data services (e.g. make the phone just a phone)? Or disable the GSM function as well (say, for a device used on a hiking trip as a GPS tracker, where there is no coverage)? Is there enough control in the SDK to pursue writing an app with a control

[android-developers] Add user-agent / x-mailer to android mail

2009-08-10 Thread Dominik
Hey there, I couldn't find a user-agent or x-mailer information in the source codes of mails sent with android mail. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

  1   2   >