[android-developers] Re: How to Lock the phone by application

2009-02-05 Thread Johnny
According to a previous thread: http://groups.google.com/group/android-developers/browse_thread/thread/94312b8093042beb/ae00cf5ad4d176e7?#ae00cf5ad4d176e7 The permission DEVICE_POWER is not available for applications. On Feb 3, 6:46 pm, shahzad ahmad shahzad.s.ah...@gmail.com wrote: Hi, I'm

[android-developers] Re: I am getting SICK of 1 star ratings for charging!

2009-02-05 Thread Johan de Koning
Will this update also be available for the Android Dev Phone? On 4 feb, 20:52, mathiastck mathias...@gmail.com wrote: A new firmware is in the process of being sent to G1's, and the new version of Marketplace has a mark as spam feature for application comments. On Feb 4, 1:18 am, DouglasN

[android-developers] Re: android.app.Application global application variable store

2009-02-05 Thread MB
I have now sorted my problem. I used an ExpandableListView so globals were not needed. On Feb 3, 10:55 am, MB marcus.mm.bur...@googlemail.com wrote: How would you useglobalvariables?  That is what I would like to do. I have different files for each Activity so I was not sure how to have

[android-developers] Re: problem with playing sounds using media player

2009-02-05 Thread suhas gavas
hi, My program is a 3d game . And i m creating 6 to 7 media player in my game .. so is this y the warning is flashed ? On Thu, Feb 5, 2009 at 1:04 PM, Dave Sparks davidspa...@android.com wrote: The message could be a clue, it's trying to tell you that the CPU is

[android-developers] custom cleanup on application uninstall

2009-02-05 Thread shahzad ahmad
Is there any mechanism in android to perform post uninstall functions ? Are there any functions which an application can override to perform custom cleanup when it is being uninstalled ? Actually i want to delete some application specific files on uninstall thanks, shahzad

[android-developers] Re: is there any setStyle method?

2009-02-05 Thread Kennard Consulting
Dianne, I believe you can pass in null for it. No. That doesn't seem to work. If I do 'new TextView( context, null, myStyleId )' the label appears but the style is not applied. If I do 'new EditView( context, null, myStyleId )' the textbox doesn't appear at all (maybe it has zero width?). The

[android-developers] Re: Not able to open a website using WebView

2009-02-05 Thread Pratap
Please provide inputs as I am stuck at this. Give some pointers in the right direction On Feb 4, 11:58 am, Pratap ajit@gmail.com wrote: Hi I am trying to open a website using WebView. I am behind a proxy, but have already configured the settings database with the proxy values. When i

[android-developers] Re: Touch screen Issue with Android + i.MX31- Help

2009-02-05 Thread Rajesh N
Hi Jun'ichi, kudos It is *working* fine, finally touchscreen is enabled, thanks a lot...!! after patching u r file, touschscreen is working fine, but I see the co-ordinates r mapped wrongly, pressing extreme left icon will enable extreme right icon, I think co-ordinates r not set

[android-developers] Re: Application storage data growing

2009-02-05 Thread Chander Pechetty
Not sure if you can do this, but check out http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware to understand the tools and limitations --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Hiding toasts of volume keys in Android Emulator

2009-02-05 Thread sush
Hi, I am trying to develop a custom zoom control widget. On clicking the Emulator VolumeUp keys my widget should zoom out and vice - versa for the Volume down keys. But one problem that I face, is that when I click on the Vol Up keys a toast pops up with the volume progress bar in it. Is there

[android-developers] Re: Usage of MediaScanner while boot up

2009-02-05 Thread Rishi
I got the answer to this. MediaScanner.java is under \android\mydroid \frameworks\base\media\java\android\media and its hidden to the user and is Used from MediaScannerService. Native calls like processDirectory,processFile,.. are used from MediaScanner.java -Rishi Kaura On Feb 5, 4:17 pm,

[android-developers] Re: ACTION_CALL Permission Problem

2009-02-05 Thread Rajendrakumar C
Hi, Are you executing this is device or emulator... If emulator there is no need of any permission. If you do the same in the mobile you need to use the permission CALL_PHONE. With out this you can't diala number. Regards, Raj On Jan 22, 4:33 pm, Massimo Carli ca...@massimocarli.it wrote:

[android-developers] Re: String Enter problem

2009-02-05 Thread Chander Pechetty
1. Save as unix file/format 2. use dos2unix trick is to remove the carriage return character. On Feb 5, 7:44 am, Neo mobi.liub...@gmail.com wrote: i had a problem about read the file, in the inputstream, the string have a lot or Enter but the Enter display like this 口 i tried used the

[android-developers] Re: Custom dialog in PreferenceActivity loaded from addPreferencesFromResource()?

2009-02-05 Thread Chander Pechetty
DialogPreference android:key=yourdialogkey . .../DialogPreference In your PreferenceActivity class, just call Preference dialogPref = findPreference(yourdialogkey); Get the dialog Layout if you are using a custom View or call one of the SetMessage methods.

[android-developers] Not able to open a website using WebView

2009-02-05 Thread Pratap
Hi I am trying to open a website using WebView. I am behind a proxy, but have already configured the settings database with the proxy values. When i try to open any internal website like a Tomcat running on my desktop, it opens up properly. The problem comes up when i try to open any external

[android-developers] Re: Storing data in the APK after creating it

2009-02-05 Thread Georgios Galyfos
thanks for all your replies! I think using metadata on the manifest file is the only way of doing this: I have tried to get the metadata stored in the AndroidManifest.xml My manifest file is the one below: *XML:* ?xml version=1.0 encoding=utf-8? manifest

[android-developers] Usage of MediaScanner while boot up

2009-02-05 Thread Rishi
Hi, In the media store code of android, The file MediaScannerService has a code : MediaScanner scanner = new MediaScanner(this); scanner.scanDirectories(directories, volumeName); I am unable to figure out where is this function scanDirectories is and what it does. My intention here is to know

[android-developers] Re: ImageButton resizes within TableLayout -- How do i fix?

2009-02-05 Thread Chander Pechetty
yeah, its a hack, the other options don't seem to work. its really the job of the parent layout to take care of laying the children, so there must be some option in TableRow/TableLayout. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: ListView with the CheckBoxPreference look

2009-02-05 Thread Dan Dromereschi
Thanks a lot you both for the help. It works really nice. Dan On Jan 30, 9:34 pm, James Yum j...@google.com wrote: Hi Dan, android.R.layout.simple_list_item_multiple_choice and android.R.layout.simple_list_item_1 actually refer to built-in android layouts, so for example:

[android-developers] Not able to open a website using WebView

2009-02-05 Thread Pratap
Hi I am trying to open a website using WebView. I am behind a proxy, but have already configured the settings database with the proxy values. When i try to open any internal website like a Tomcat running on my desktop, it opens up properly. The problem comes up when i try to open any external

[android-developers] How to prevent my application being closed on clicking the back button on emulator

2009-02-05 Thread NewDev
Hi, I have an application with main view having a search button. On clicking the search button, search results are displayed in a text view. When I hit the back button at this view, instead of navigating to the previous screen, application itself gets closed. Could anybody please let me know

[android-developers] Re: RTSP Streaming on g1 phone

2009-02-05 Thread rktb
If you can provide me access to the RTSP server, I could try to be of some help. On Feb 5, 12:14 am, Jeff Oh jeff.o...@gmail.com wrote: Every H.264 video files are played well from SD card. This happens only when playing H.264 with streaming. On 2월5일, 오후12시16분, Jerry Yang

[android-developers] Re: How to add a calendar entry?

2009-02-05 Thread Teo
Hi, this is an issue for me too. I tried with the general (Java) Calendar API, and i managed to log in but the 'insert' method always throws an IOException (its message says 'unknown error'). Below is the code i am using: private static CalendarService mCalendarService; private static URL

[android-developers] Event to know about drag. Not dragging of object

2009-02-05 Thread Shadakshari Hiremath
Hello Android, I want to get drag event(s) when user holds finger on screen and drags it in any direction. The event need to repeatedly provide new touch position until finger is released in the form of callbacks. This is not related to dragging objects. I could see this drag feature working on

[android-developers] Re: Custom dialog in PreferenceActivity loaded from addPreferencesFromResource()?

2009-02-05 Thread g1bb
Gotcha. I'm trying to do this in onSharedPreferenceChanged(), but I can't seem to get it to hit. public class Settings extends PreferenceActivity implements OnSharedPreferenceChangeListener { public static final String PREFS_NAME = com.myapp.app_preferences; @Override

[android-developers] Re: How get text from EditText filed which is showing in alert Dialog

2009-02-05 Thread muckwarrior
I encountered the same problem. This is how I solved it: Declare a field private AlertDialog myDialog; Then when creating your dialog myDialog = new AlertDialog.. . public void onClick(DialogInterface dialog, int whichButton) { DoSomethingWithDialogContent(); } . private

[android-developers] Problem with focus

2009-02-05 Thread drago
Hi. When I try to type text in EditText, focus shifts to upper control. Details can be founded here. http://groups.google.com/group/android-developers/browse_thread/thread/8752958166842f11 --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Trackball Event

2009-02-05 Thread Ikon
Bump - Not sure how to ensure that my view has input focus. If it accepts touch events, doesn't that mean it IS in focus? It seems to not accept keyboard events either. Any input? Thanks, Ayan On Feb 2, 1:01 pm, Dianne Hackborn hack...@android.com wrote: Trackball events are dispatched to the

[android-developers] Re: Event to know about drag. Not dragging of object

2009-02-05 Thread Charlie Collins
I haven't done this directly myself, but if investigating the home screen might help you, then you can do that from the source. I believe that Launcher is the home screen package, and it uses a DragLayer/DragController/etc setup that is therein:

[android-developers] Re: Notification and PendingIntent

2009-02-05 Thread Dirk Jäckel
Hi! I had the same problem. It works if you set an Action. hilight.setAction(DUMMY); Then the extras are transmitted to the receiving Activity. HTH! Regards, Dirk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] WebView responding to touch events

2009-02-05 Thread Mark Nuetzmann
I have an Activity that has a WebView that contains some simple html that allows me to display a Terms Conditions link that if touched or clicked calls another activity. My problem is unless the link in the WebView has focus (ie, the text is wrapped with that little orange focus) I cannot touch

[android-developers] Re: WebView responding to touch events

2009-02-05 Thread Mark Nuetzmann
I just tried adding an OnTouchListener to the webview and I get ALL the touch events. However, the links in the webview to not appear selected/focused... This seems really weird to me. Anyone have an idea why I would receive an OnTouch event for the view but the view itself does not seem to

[android-developers] Re: Is it possible to have 2 launcher Activity in a single apk?

2009-02-05 Thread tauntz
On Tue, Feb 3, 2009 at 10:37 AM, Romain Guy romain...@google.com wrote: Yes :) Just put two activities in your manifest, both with the LAUNCHER category. I tried that but it seems I'm still doing something wrong (see code at the end of the message). The results I get are: * Two launcher

[android-developers] NO DISTINCT NO GROUP BY in ContentResolver's query

2009-02-05 Thread 邓亮
hi~ i just wanna find the rencent contacts in the call log . but what disappointed me is i couldn't do that with the ContentResolver. no rawQuery() method and even no distinct group by parameters in query... i hope they can fix it in the next sdk. or anyone can tell me how to do this with

[android-developers] Text format in TextView

2009-02-05 Thread magicpig
Hi, Two questions here: 1) newline is after space, could it be possible that newline comes after the suitable character, not only space? For example: a string X_X_ (X means a character. _ means space) is set to textView, and suppose there is at most 5

[android-developers] Problem loading using JNI if C++ class has virtual function (vtable)

2009-02-05 Thread jima
I've been expanding on the example given here: http://davanum.wordpress.com/2007/12/09/android-invoke-jni-based-methods-bridging-cc-and-java/ (thanks for that example!) and have am getting Unresolved symbols when I have a class with a virtual function. I am using the java code given in the

[android-developers] why the onion option in the emulator?

2009-02-05 Thread Milk Run
There is an option to the emulator, -onion filename.png, which allows you to pass in a png file and that png file is layered on top of the emulator's display window with 50% opacity. Why? I tried it. It works. I am stumped for an example of why this exists. -- Frank

[android-developers] Wikitude Source

2009-02-05 Thread Bart
Hi everybody. Does anywone knows where the Wikitude application get it's content from? It says in the Marketplace description 'Wikipedia' and 'Panoramio'. I'd like to know what wikipedia pages are used as a source. Cheers Bart --~--~-~--~~~---~--~~ You received

[android-developers] Processing audio

2009-02-05 Thread Natalie
I would like to be able to extract frequency/amplitude info from incoming mic audio. From looking at previous posts, it looks like the way to do this with the current sdk is to write to a file, then tail that file. This means I need to be able to extract frequency/ amplitude information from

[android-developers] Stopping HTTP client from another thread

2009-02-05 Thread Bill
I'm writing a multi-threaded app in which multiple threads will use HttpClient to send client requests. In my situation, it's possible a request might be outstanding for a very long time as my server might take as long as several minutes before responding. (Don't ask.) My problem: If my app

[android-developers] Native code is not supported in the current SDK.

2009-02-05 Thread fructose
I keep seeing this quote everywhere whenever anybody asks a question about about C code. However I don't understand it, nor another quote which is used to futher explain it The SDK does not include support for native ARM code. I was under the impression it is possible to download the java

[android-developers] Limit emulator CPU clock

2009-02-05 Thread LuchoLaf
I don't have a G1 but I want the emulator to perform as similiar as a real device. I'm working on a game and want to have a real sense of the FPS i'll get. after 'adb shell' and 'cat /proc/cpuinfo' I get different values (670 MIPS last time) on different emulator instances. So, is there any way I

[android-developers] Online Iphone Mobile Programming Courses

2009-02-05 Thread dushyEDU
Hi, If you're interested in learning how to develop top class games and applications for the iPhone, HTC Touch (Android), Instinct, WinMobile, or any other mobile device or platforms - then you should definitely have a look at what they offer... http://EDUmobile.org The classes are taught as a

[android-developers] n810 running android is not accessible as a removable drive

2009-02-05 Thread disposableteen
Hello. I installed Android on the Nokia n810 and when I connect it via usb to my laptop, the sound of a new device attached is played, and two new removable disks, F: and G: appear in My Computer. When I try to access them, Windows tells me to insert a disk on those drives. I have all the usb

[android-developers] Testing Sync Application - Contacts and Calendar

2009-02-05 Thread Prashant M
We are debugging the Sync application which we have got from the android sources. We are able to understand and trace till SyncManager. SyncManager is failing to get the account details. How it is getting the account details ? Where these details are stored ? Please do the needful..

[android-developers] Testing Sync Application - Contacts and Calendar

2009-02-05 Thread Prashant M
We are debugging the Sync application which we have got from the android sources. We are able to understand and trace till SyncManager. SyncManager is failing to get the account details. How it is getting the account details ? Where these details are stored ? Please do the needful..

[android-developers] Data syncronization-- Contacts and Calendar

2009-02-05 Thread Prashant M
Trying to do the sync operation for contact and calendar using emulator ? Where and how to configure the account details. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] OpenGL-ES 2.0 support

2009-02-05 Thread AndroidDev
Hi. Is there any plan to support OpenGL-ES 2.0 in Android? Is it possible to write a renderer youself based on OpenGL-ES 2.0? In that case, where to start :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: customize tab indicator

2009-02-05 Thread ezmobile
hi check below posting for Customized Android Tabs. http://ezmobile.wordpress.com/2009/02/02/customized-android-tabs/ hope it helps On Jan 12, 11:04 am, skink psk...@gmail.com wrote: hi, Is there any way to customize tab indicators, by for ex. setting own bitmap drawables? pskink

[android-developers] How can I get the mms in my program?

2009-02-05 Thread Alfred
I want to backup all messages including SMS and MMS to the SD card, but I don't know how to fetch the MMS.How can do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Android PC connectivity

2009-02-05 Thread Hemant
How Android supports PC connectivity. Can android phone be seen as modem from PC via USB? What will be the requirements for this? The connection is through AT commands is there any Android Application on PC side? Thanks, Hvr --~--~-~--~~~---~--~~ You received

[android-developers] How to add app calendar on the G1 emulator?

2009-02-05 Thread aby
When I push app calendar button in emulator button by android 1.5, it can't display anything. Does anyone knows how to install the google calendar on the G1 emulator? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: ListView: Disable Focus Highlight

2009-02-05 Thread BoD
I too have this problem. I tried this solution (setting the listSelector to #), but even though it does suppress the Orange background there's a side effect: the text is darker. Isn't there a proper way to completely disable the focusable/ selectable behavior of a ListView? If you can

[android-developers] a receiver for outgoing sms and email?

2009-02-05 Thread Dietrich Ayala
i figured out how to listen for outgoing calls. however, i can't find any docs or code samples for making a Receiver that catches outgoing sms or email. is that possible? thanks! -dietrich --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Question about linking to Android camera libraries from C++

2009-02-05 Thread Chris Clark
I tried posting this question to the Android Internals mailing list, but that list seems to be inactive... Goal: I am trying to gain access to raw camera data on the G1 from native code (JNI C++) so that I can do real time image processing on camera frames at 15 fps. This will not work in the

[android-developers] how to use camera application without sd card detect?

2009-02-05 Thread FlyCry
Hi, All, There is a question I need for help. When I was using the camera application, the ERROR: Please insert SD card before using camera jumped out because the driver of sd card haven't been porting properly. Is there anyway to use android camera application without sd card?

[android-developers] Re: customize tab indicator

2009-02-05 Thread ezmobile
hi check below posting for Customized Android Tabs. http://ezmobile.wordpress.com/2009/02/02/customized-android-tabs/ hope it helps On Jan 12, 11:04 am, skink psk...@gmail.com wrote: hi, Is there any way to customize tab indicators, by for ex. setting own bitmap drawables? pskink

[android-developers] Re: ListView: Disable Focus Highlight

2009-02-05 Thread BoD
I too have this problem. I tried this solution (setting the listSelector to #), but even though it does suppress the Orange background there's a side effect: the text is darker. Isn't there a proper way to completely disable the focusable/ selectable behavior of a ListView? If you can

[android-developers] Re: Error: Read and parse xml file

2009-02-05 Thread Aman
Have you given your application the permission to open network sockets? If not, add the following line to your manifest file and then try running your application. uses-permission android:name=android.permission.INTERNET/uses- permission On Jan 21, 7:06 am, zxhwo...@gmail.com zxhwo...@gmail.com

[android-developers] Re: fileobserver

2009-02-05 Thread and.pradeep
what if I have to observe 2 or more folders (or paths)? even then threads are not required? how to register callbacks? On Feb 4, 11:03 pm, Dianne Hackborn hack...@android.com wrote: You don't need to create any threads to use FileObserver -- it is callback-based. On Tue, Feb 3, 2009 at

[android-developers] Re: fileobserver

2009-02-05 Thread and.pradeep
thanks solved it. instead of creating in separate threads i did it in single thread by creating an instance of fileobserver for each directory and calling startwatching(); in a loop. On Feb 4, 11:03 pm, Dianne Hackborn hack...@android.com wrote: You don't need to create any threads to use

[android-developers] Re: Question about linking to Android camera libraries from C++

2009-02-05 Thread Dianne Hackborn
This kind of discussion should be on android-platform or android-frameworks. You are way way way outside the bounds of the SDK. :) On Wed, Feb 4, 2009 at 8:03 PM, Chris Clark clark...@gmail.com wrote: I tried posting this question to the Android Internals mailing list, but that list seems to

[android-developers] Re: Is it possible to have 2 launcher Activity in a single apk?

2009-02-05 Thread Dianne Hackborn
If you want two fully distinct apps, you need to give them different task affinities. Please read this before you go farther: http://code.google.com/android/intro/appmodel.html On Thu, Feb 5, 2009 at 7:56 AM, tauntz tau...@gmail.com wrote: On Tue, Feb 3, 2009 at 10:37 AM, Romain Guy

[android-developers] Re: Problem loading using JNI if C++ class has virtual function (vtable)

2009-02-05 Thread Dianne Hackborn
Please move this to one of the open-source list, this is not SDK discussion. On Wed, Feb 4, 2009 at 2:14 PM, jima jima80...@gmail.com wrote: I've been expanding on the example given here: http://davanum.wordpress.com/2007/12/09/android-invoke-jni-based-methods-bridging-cc-and-java/ (thanks

[android-developers] Re: how to use camera application without sd card detect?

2009-02-05 Thread Dianne Hackborn
No, sorry. On Wed, Feb 4, 2009 at 10:55 PM, FlyCry flycry...@gmail.com wrote: Hi, All, There is a question I need for help. When I was using the camera application, the ERROR: Please insert SD card before using camera jumped out because the driver of sd card haven't been porting

[android-developers] Re: How to use findViewById() in a dialog

2009-02-05 Thread Al
setPositiveButton() is for setting the button text and listener. To use findViewById, you need to set your own custom layout, but this won't work with AlertDialog.Builder (iirc), you need to use the Dialog class. Here is some code I use for this in my application: mDialog = new Dialog(this);

[android-developers] Re: How to add a calendar entry?

2009-02-05 Thread Markus Junginger
For my purpose, I resolved it partly using a different approach. There seems to be an undocumented Intent to bring up the Calendar UI and fill start and end time in advance. I found out that the ZXing Apps does it like this. Maybe this helps: Intent intent = new

[android-developers] Re: ImageButton resizes within TableLayout -- How do i fix?

2009-02-05 Thread James Yum
You could try wrapping the button with another layout. Cheers, James On Thu, Feb 5, 2009 at 2:48 AM, Chander Pechetty cspeche...@gmail.comwrote: yeah, its a hack, the other options don't seem to work. its really the job of the parent layout to take care of laying the children, so there must

[android-developers] Re: Memory leak in BitmapFactory/Gallery?

2009-02-05 Thread blindfold
Ah yes, perfect! Works like a charm now - I had not been aware of the need to use su. Thanks! On Feb 5, 2:05 am, fadden fad...@android.com wrote: The adb daemon still runs as a regular user on the ADP1.  You need to run su to become root, then issue the chmod.

[android-developers] Re: Is it possible to have 2 launcher Activity in a single apk?

2009-02-05 Thread tauntz
Thanks Dianne. Just for the record (if someone else needs the solution and finds this thread): If you want to have two different applications in one .apk then you need to have both launcher Activities with the LAUNCHER category as Romain said. You also need to add different task affinities to

[android-developers] Application did not load to market place now the app is gone, please help

2009-02-05 Thread srajpal
I tried to upload an update to my app but I got the following now my app has disappeared from my interface and i cannot load an app with the same name, You have another published application on Market with the same package name (com.x.x). Go to that other application, and click upgrade. I

[android-developers] Re: How to use findViewById() in a dialog

2009-02-05 Thread Emmanuel
R.string.btn_yes is the string that appear on your button. Not the id ! findVienwById wants an id ! Emmanuel http://androidblogger.blogspot.com/ On Feb 5, 8:35 am, Lucius Fox lucius.fo...@gmail.com wrote: Hi, I create a dialog using this: Dialog d = new

[android-developers] Re: Market statistics for apps targeting The Netherlands are not correct

2009-02-05 Thread Ronald van der Lingen
At this moment the developer console is still showing 0 downloads after the app has been available for a week. I really suspect that something is wrong with the download count for applications targeted to the Netherlands (or even downloads from the Netherlands in general). I have checked several

[android-developers] using G1 without network

2009-02-05 Thread Rob Ruff
Is it possible to use the G1 without a sim card if we only intend to use the wifi/usb interfaces? Thanks, Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: using G1 without network

2009-02-05 Thread Mark K
You can use it without a SIM card once you have the phone initially setup, but it does seem like you need a SIM card to do the initial boot, and Google registration. Mark On Feb 5, 12:44 pm, Rob Ruff rr...@scires.com wrote: Is it possible to use the G1 without a

[android-developers] Re: Radio Off

2009-02-05 Thread Mark K
You can use android.provider.Settings, see the SDK docs. Mark On Feb 4, 2:14 am, Kamal Hasan kamal.hasa...@gmail.com wrote: Hi, Programatically how to switch off Radio, bluetooth and wifi in android  ? Can I enable airplane mode ? Kamal

[android-developers] What is the difference between managedQuery() and getContentREsolver().query()

2009-02-05 Thread Meryl Silverburgh
I have read: http://code.google.com/android/devel/data/contentproviders.html But I don't understand what is the difference between managedQuery() and getContentREsolver().query()? Seems to me both take a Uri and query parameters and then return a Cursor. I appreciate if anyone can tell me the

[android-developers] Re: What is the difference between managedQuery() and getContentREsolver().query()

2009-02-05 Thread Romain Guy
managedQuery() will use ContentResolver's query(). The difference is that with managedQuery() the activity will keep a reference to your Cursor and close it whenever needed (in onDestroy() for instance.) If you do query() yourself, you *will* have to manage the Cursor as a sensitive resource. If

[android-developers] Current orientation of the device

2009-02-05 Thread Layeeq
Hi, 1. How do i find the current orientation of the phone (portrait or landscape) ? 2. How do i find the slider position ? Thanks, Layeeq --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] BitmapShader performance

2009-02-05 Thread tomgibara
I'm experimenting with tiling a fullscreen image (480x320px ARGB bitmap) with a square image (160x160px ARGB bitmap). My initial implementation was naive: public void render(Canvas canvas) { final int size = tile.getWidth(); final int w = canvas.getWidth(); final int h =

[android-developers] Re: How to hang up outgoing call?

2009-02-05 Thread Tilekus
Can you please provide more details? For me it doesn't seem to be possible for now. On Feb 3, 9:58 am, Kamal Hasan kamal.hasa...@gmail.com wrote: You can abort a call using BroadcastReceiver in your application. Kamal On Feb 3, 1:31 am, Tilekus tile...@gmail.com wrote: Hi everyone,

[android-developers] Re: Current orientation of the device

2009-02-05 Thread Dianne Hackborn
Context.getResources().getConfiguration() On Thu, Feb 5, 2009 at 1:57 PM, Layeeq nlah...@gmail.com wrote: Hi, 1. How do i find the current orientation of the phone (portrait or landscape) ? 2. How do i find the slider position ? Thanks, Layeeq -- Dianne Hackborn Android framework

[android-developers] How to improve browser performance in Emulator?

2009-02-05 Thread Videoguy
Hi I am running Emulator on XP. I find webkit browser on emulator to be very sluggish even though same page from IE on the desktop loads 10x faster. Is there any emulator/qemu startup parameter that can make it faster? I appreciate any pointers. Thanks Puri

[android-developers] Re: BitmapShader performance

2009-02-05 Thread Romain Guy
Tom, A shader is a per-pixel operation, which lets you apply it to any shape, respecting alpha blending as well. As such it is not surprising that your first method is faster. On Thu, Feb 5, 2009 at 2:08 PM, tomgibara m...@tomgibara.com wrote: I'm experimenting with tiling a fullscreen image

[android-developers] Re: BitmapShader performance

2009-02-05 Thread tomgibara
Romain, Thanks for the explanation. On Feb 5, 10:26 pm, Romain Guy romain...@google.com wrote: Tom, A shader is a per-pixel operation, which lets you apply it to any shape, respecting alpha blending as well. As such it is not surprising that your first method is faster. On Thu, Feb 5,

[android-developers] Re: How to use findViewById() in a dialog

2009-02-05 Thread Emmanuel
On last note : I finally found the Id of this button : android.R.id.button1. here's my try (succesfull ): public void onClick(DialogInterface dialog, int whichButton) { Dialog curDialog = (Dialog) dialog; Button curButton = (Button) curDialog.findViewById ( android.R.id.button1

[android-developers] Re: How get text from EditText filed which is showing in alert Dialog

2009-02-05 Thread Emmanuel
As Romain said you're getting the content from your activity ( that don't possess a username_edit item ). you should do : ... Dialog curDialog = (Dialog) dialog; EditText enterNumberField = (EditText) curDialog.findViewById (R.id.username_edit); ... It works for me... Emmanuel

[android-developers] Re: ListView: Disable Focus Highlight

2009-02-05 Thread Emmanuel
In order not to have the items selectable, I disable them by code ( but it is perhaps doable in the xml files ), in the adapter definition : ListAdapter adapter = new SimpleCursorAdapter(MyList, Layout, c, new String[] { Name, Score }, to) { public boolean

[android-developers] Re: How to use findViewById() in a dialog

2009-02-05 Thread Lucius Fox
Thanks for sharing this info. On Thu, Feb 5, 2009 at 2:57 PM, Emmanuel emmanuel.ast...@gmail.com wrote: On last note : I finally found the Id of this button : android.R.id.button1. here's my try (succesfull ): public void onClick(DialogInterface dialog, int whichButton) { Dialog

[android-developers] Merging spannables?

2009-02-05 Thread Ivan Soto
Is it possible to merge spannables? like Spannable spa = null; spa = Html.fromHtml(text text b asds/b); spa = spa + Html.fromHtml(asdasdasd); Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Android Instrumentation for unit testing

2009-02-05 Thread Lucius Fox
Hi, I understand that Android has an Instrumentation for unit testing. In my android activity, I have a ListView and when user clicks on it, it pops up an dialog which 2 choices. And when user clicks one of the choices, it will pop up another form which allow users to enter move information and

[android-developers] RC33 for Dev Phone

2009-02-05 Thread Timothy DeWees
Hello, can someone help me understand how I can get the latest RC33 release for the dev phone? --~--~-~--~~~---~--~~ 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: Merging spannables?

2009-02-05 Thread Dianne Hackborn
TextUtils.concat(). On Thu, Feb 5, 2009 at 4:20 PM, Ivan Soto ivanso...@gmail.com wrote: Is it possible to merge spannables? like Spannable spa = null; spa = Html.fromHtml(text text b asds/b); spa = spa + Html.fromHtml(asdasdasd); Thanks -- Dianne Hackborn Android framework

[android-developers] Re: RC33 for Dev Phone

2009-02-05 Thread Brad Fuller
On Thu, Feb 5, 2009 at 4:56 PM, Timothy DeWees whtdrgn...@gmail.com wrote: Hello, can someone help me understand how I can get the latest RC33 release for the dev phone? I'd like to know too. I saw this: http://www.mobilecrunch.com/2009/02/05/how-to-get-rc33-on-your-g1-without-the-wait/

[android-developers] debugging integrated Java and native code

2009-02-05 Thread Sergey Ten
Hi, I am trying to figure out what is the best way to debug a mix of Java and native code? Please notice, that I am NOT trying to develop a native app. The app will be written entirely in Java, using Android SDK. However, I noticed that some pieces of the SDK use native methods (e.g.

[android-developers] Re: String Enter problem

2009-02-05 Thread Neo
Thank you very much , i resolved it On 2月5日, 下午7时01分, Chander Pechetty cspeche...@gmail.com wrote: 1. Save as unix file/format 2. use dos2unix trick is to remove the carriage return character. On Feb 5, 7:44 am, Neo mobi.liub...@gmail.com wrote: i had aproblemabout read the file, in

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-02-05 Thread Rohit
I've tried the unbind method and it doesnt seem to help my case :( It is a good thing to know and keep in mind. Rohit On Jan 23, 2:07 pm, JP joachim.pfeif...@gmail.com wrote: There's a bunch of discussions about this issue in this forum, just dig a little and you will find what you need to

[android-developers] Re: RC33 for Dev Phone

2009-02-05 Thread Timothy DeWees
This one doesn't seem to work for me. It fails at the verifying package stating that it's not signed. On Feb 5, 8:20 pm, Brad Fuller bradallenful...@gmail.com wrote: On Thu, Feb 5, 2009 at 4:56 PM, Timothy DeWees whtdrgn...@gmail.com wrote: Hello, can someone help me understand how I can

[android-developers] How can i find out what is the top 'view' of my activity?

2009-02-05 Thread Meryl Silverburgh
Hi, Is it possible for me to find out what is the 'view' of my activity? e.g. if my activity pops up a 'dialog', can I get a reference of that dialog? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Android on HTC P3600 Samsung SC32442A CPU

2009-02-05 Thread cyber5tar86
Hi! I need some informations.. I want to know if is possible to run android on HTC P3600. It have a Samsung SC32442A cpu inside... Thanx for your help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

  1   2   >