[android-developers] Re: Error on SharedPreferences for AppWidget

2009-07-13 Thread Alexey Volovoy
I think it's an issue with exiting config activity before saving widget settings. Put some logging around create/delete widget and in the service and see how many widgets you're ended up getting while rotating screen Log.d(TAG, " appWidgetId=" + appWidgetId); You can put some logging aroun

[android-developers] Re: ListView (ExpandableListView as well) selector highlight problems with custom background

2009-07-13 Thread Dimitris
Anyone? On Jul 13, 11:30 am, Dimitris wrote: > Hey all, > > I have an expandable list with a custom adapter. Everything works > great but there are two problems. > > First whenever a group or child has a custom background color set the > orange selector does not show up. If I dont setup

[android-developers] flag_fullscreen + windowNoTitle == button focus bug

2009-07-13 Thread Brady
Hi guys, I've found an irritating bug that I could please use some help with. My application is styled to show no title (android:windowNoTitle) and in onCreate() in the activity the system toolbar is hidden to display as fullscreen. There are two buttons in the activity's relative layout, aligne

[android-developers] Re: Test onUpgrade

2009-07-13 Thread skyman
onUpgrade is invoked only when SQLiteOpenHelper cunstructor's version paremeter is greater than when the database was created at first. In my app (pl.skyman.autobuser) I have constant field for "current" database version and in onUpgrade I compare oldVersion and newVersion with values from past t

[android-developers] Re: flag_fullscreen + windowNoTitle == button focus bug

2009-07-13 Thread Brady
Hi, just a quick note, bug.java was really named StatusBarBug.java like my project. Cheers, Brady On Jul 13, 12:46 pm, Brady wrote: > Hi guys, > > I've found an irritating bug that I could please use some help with. > > My application is styled to show no title (android:windowNoTitle) and > in

[android-developers] Re: translated application dealing with English only server

2009-07-13 Thread Yusuf T. Mobile
If I understand you correctly, you have an English-speaking server, and a multilingual Android UI. You also have a requirement to translate at runtime. In that case, I would recommend the server provide the translation map, comme ca: ogday When you build the list view or list activity, you put

[android-developers] Re: How to measuring elapsed time without currentTimeMillis?

2009-07-13 Thread fadden
On Jul 11, 10:09 pm, Victor Lin wrote: > "This method shouldn't be used for measuring timeouts or other elapsed > time measurements, as changing the system time can affect the > results." > > So, if this method should not be used for measuring elapsed time, then > what will be suitable? java.lan

[android-developers] Re: Android BUG....

2009-07-13 Thread Yusuf T. Mobile
Hello, M. Infinite. Thank you for identifying this issue, as well as for contributing your frank assessment of Google's business practices. In fact there is a process by which helpful individuals such as yourself can report bugs to the Android community who then often actually fix them: http://cod

[android-developers] Linking to apps in the Android Market

2009-07-13 Thread Carl Whalley
Is it possible to put a link to an app in the market on a webpage? If not, and the apk is hosted directly, can we assume download stats in the market will be unaffacted? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] flag_fullscreen + windowNoTitle == button focus bug

2009-07-13 Thread Ward Willats
Me too. Can't believe you and I are the only two who see this. http://groups.google.com/group/android-developers/browse_thread/thread/8d746b754c8064a8?fwc=1 -- Ward At 12:50 PM -0700 7/13/09, Brady wrote: >Hi, just a quick note, bug.java was really named StatusBarBug.java >like my project. > >

[android-developers] Re: Linking to apps in the Android Market

2009-07-13 Thread Alexey Volovoy
http://developer.android.com/guide/publishing/publishing.html#marketintent On Jul 13, 2:58 pm, Carl Whalley wrote: > Is it possible to put a link to an app in the market on a webpage? > If not, and the apk is hosted directly, can we assume download stats > in the market will be unaffacted? > Tha

[android-developers] Re: flag_fullscreen + windowNoTitle == button focus bug

2009-07-13 Thread Brady
This looks like a total hack but by adding this line getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); to the code I don't have the problem anymore. This workaround kind of makes sense assuming something was being drawn out

[android-developers] Re: Android TLS implementation

2009-07-13 Thread Yusuf T. Mobile
http://developer.android.com/reference/javax/net/ssl/SSLSocket.html Yusuf Saib Android ·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 J

[android-developers] Re: flag_fullscreen + windowNoTitle == button focus bug

2009-07-13 Thread Brady
Hey Ward, looks like exactly the same problem! Does my workaround fix your issue? Brady On Jul 13, 1:02 pm, Ward Willats wrote: > Me too. Can't believe you and I are the only two who see this. > > http://groups.google.com/group/android-developers/browse_thread/threa... > > -- Ward > > At 12:50

[android-developers] Re: Video with MediaRecorder

2009-07-13 Thread hanged_man
Muhammad, i tried the issue locally and it seems to be something wrong with the camcorder itself (in the emulator), my previously suggested workaround (http://groups.google.com/group/android-developers/ browse_thread/thread/60005bb7fff2e14f/eec39e24877d8b42? hl=en&lnk=gst&q=black+screen+camera+han

[android-developers] Re: Setting a scrollbar position.

2009-07-13 Thread Mathieu Plourde
Now let's say I have a Layout with a scrollbar. Is there any way to set it's location programmatically? On Jul 6, 5:20 pm, Romain Guy wrote: > > Is it possible to change a scrollbar's location programatically? I > > have a ListView and I want to set the position of the scrollbar in my > > code.

[android-developers] onTap display toast or message

2009-07-13 Thread alexdonnini
Hello, I looked for any information about onTap event processing for itemized overlays in this group. There is a lot of useful information but I could not find the answer to one question. The tutorial by Mark Murphy on itemized overlays, http://androidguys.com/?p=1413 describes how to generate

[android-developers] accessing local content from webview

2009-07-13 Thread Jason Proctor
i realise there's plenty of prior art around the network on this one, i'd like the official line if possible. i'm wondering why i can't reference static local content in a page which is coming in off the network. the specific situation i have is that my application's HTML depends on fairly hea

[android-developers] Re: onTap display toast or message

2009-07-13 Thread Mark Murphy
alexdonnini wrote: > I looked for any information about onTap event processing for itemized > overlays in this group. There is a lot of useful information but I > could not find the answer to one question. > > The tutorial by Mark Murphy on itemized overlays, > http://androidguys.com/?p=1413 >

[android-developers] Re: How to Handle Multiple Adapters for one ListView

2009-07-13 Thread Moto
Thanks guys all those are great tips. As of now I'm going to stick with 2 listviews. The only problem is that you loose the list scroll position :( **I wonder if having 8 adapters and two listViews would be just as efficient when having a listView for every adapter. About the slide in slide out

[android-developers] 3GP file plays on hardware, not on emulator

2009-07-13 Thread Mark Murphy
http://commonsware.com/misc/test2.3gp If you try the above streaming video in a full-screen MediaPlayer on a G1 or Google Ion, it plays back just fine. If you try the same video in the same application on the emulator (-t 3 or -t 1 AVD), it tries to play back but the video is garbled. Given a c

[android-developers] flag_fullscreen + windowNoTitle == button focus bug

2009-07-13 Thread Ward Willats
YES! Fixes it here too. Nice diagnosis/hacking Brady. Thanks very much. (And yes, it must be a bug.) -- Ward At 1:12 PM -0700 7/13/09, Brady wrote: >Hey Ward, > >looks like exactly the same problem! Does my workaround fix your >issue? > >Brady > >On Jul 13, 1:02 pm, Ward Willats wrote: >> Me

[android-developers] Re: Unable to write text file to sdcard on physical G1 device

2009-07-13 Thread doubleminus
Romain is? I don't understand. Is there something I should be doing to avoid filenotfound exception? On Jul 13, 12:40 am, 郑伟 wrote: > You are right... > > > > > > > Date: Sun, 12 Jul 2009 21:29:28 -0700 > > Subject: [android-developers] Re: Unable to write text file to sdcard on > > physical

[android-developers] Re: Multi-touch & My Touch Phone Questions

2009-07-13 Thread Streets Of Boston
Some hackers have been able to enable multi-touch on the G1. The hardware is there, but because of legal issues, it has not been enabled. It is a patent issue. Just google this: apple patent multi touch And to be honest, i don't miss multi-touch that much. I like that i can use only one hand t

[android-developers] Re: Unable to write text file to sdcard on physical G1 device

2009-07-13 Thread Streets Of Boston
Simple. :-) The error says that the file does not exist... that means you should create it. Use File#createNewFile(). On Jul 13, 5:53 pm, doubleminus wrote: > Romain is? I don't understand. Is there something I should be doing > to avoid filenotfound exception? > > On Jul 13, 12:40 am, 郑伟 wrot

[android-developers] Re: Linking to apps in the Android Market

2009-07-13 Thread Carl Whalley
"you can't currently load the URIs in a web browser, either on a desktop machine or on the device." Thats what I was trying to do - put a link on a site so that although the user didn't use the Market to discover the app, they used it to download it. Thats a shame - I guessed desktop browsers wou

[android-developers] Re: Weird ringtone bug...any solutions??

2009-07-13 Thread Alslayer
tydiz...@gmail.com do you have any sample code I can look at? --~--~-~--~~~---~--~~ 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@googlegroups.com To un

[android-developers] Re: Any updates on ADC-2?

2009-07-13 Thread David M.
We've posted an update on ADC 2 to the official Android blog: http://android-developers.blogspot.com/2009/07/adc-2-updates.html Key points to highlight: 1. Final deadline for submissions is August 31 2. The official terms and conditions are available (see http://code.google.com/android/adc/adc2

[android-developers] Re: 30 Days of Android Applications

2009-07-13 Thread lucky4me
Day 23: Scottris (Tetris) http://bakhtiyor.com/2009/07/scottris/ Day 24: Rotary Dialer http://bakhtiyor.com/2009/07/rotary-dialer/ Day 25: Twitter Client http://bakhtiyor.com/2009/07/twitter-client/ --~--~-~--~~~---~--~~ You received this message because you are s

[android-developers] Re: Detecting finger on display

2009-07-13 Thread Roman
Try to use the dispatchTouchEvent() method (http:// developer.android.com/reference/android/app/ Activity.html#dispatchTouchEvent(android.view.MotionEvent) which is called to process touch screen events. Your method would look like static boolean touchingScreen = false;

[android-developers] Re: flag_fullscreen + windowNoTitle == button focus bug

2009-07-13 Thread Dianne Hackborn
Note this this will break your interaction with the IME, if it is displayed. What is going on is that during the transition to your app, the status bar is still visible, so if you have something at the top of the UI that is in focus it will move your window to make it visible behind the status bar

[android-developers] Re: Able to use T-Mobile G1 without contract for application testing?

2009-07-13 Thread Roman
You could check out the Pre-Paid plan from T-Mobile. Make sure that you ask whether you can get the plan without purchasing a new phone and whether it works with the G1. With the Pre-Paid plan you have limited costs and you might be to testing on the cellular network if needed. -- Roman Baumgaer

[android-developers] Re: TIME_TICK in an AppWidget?

2009-07-13 Thread Jeff Sharkey
> Is there any way to make the dial dynamic? That's a crucial part of > the app I'm trying to build. Yep, assign a drawable to "android:dial" just like the other attributes. Here's the exact layout of the current clock widget: http://android.git.kernel.org/?p=platform/packages/apps/AlarmClock.g

[android-developers] Re: Uploading/Downloading/Listing files online from application

2009-07-13 Thread MrChaz
It's it fttp:// and not ftp:// ? On Jul 12, 1:25 pm, jonne wrote: > Dear developers, > > I'm searching for a way to store data files via FTP from my Android > application. > My approach is to create a Google Base account and upload/download > files from my application there. > > To achieve this,

[android-developers] Re: MemoryFile between processes

2009-07-13 Thread George
I have the same question too. What is the use-case for exposing MemoryFile without an API to get the File descriptor (to pass to another process) or a way to allow access from another process? On Jun 23, 2:13 pm, Alec wrote: > I tested the MemoryFile between threads just to make sure I was doing

[android-developers] Re: ADC2 full terms and conditions

2009-07-13 Thread RS
well ok now it is rewrit as 13th and is available http://android-developers.blogspot.com/2009/07/adc-2-updates.html On Jul 2, 12:07 pm, RS wrote: > Yes there are many threads discussing similar stuff. But am eagerly > waiting to read this. > The official site still says it shall be available in

[android-developers] oauth_callback is not calling the activity

2009-07-13 Thread bo
I have a Twitter app and I need user of my Android application to authorize its use. I'm at the point where I can call Twitter app page in the browser from my code and successfully authorize. However, the callback seem not to be working, I end up with the confirmation message and PIN in the brow

[android-developers] Re: Using Intent to view specific App in Android Market

2009-07-13 Thread Guillaume Perrot
The aim is not to automatically install the app. The goal is to go to the application's market page directly (instead of that annoying search screen with the only result). I am very surprised that there is no official URI to do that, why such a design choice ? Some time ago we could do that wi

[android-developers] Re: Linking to apps in the Android Market

2009-07-13 Thread nEx.Software
That statement is obsolete, since it certainly does work via browser link. Check http://www.cyrket.com for an example. On Jul 13, 3:09 pm, Carl Whalley wrote: > "you can't currently load the URIs in a web browser, either on a > desktop machine or on the device." > > Thats what I was trying to do

[android-developers] Hierarchy Viewer in landscape orientation

2009-07-13 Thread Peter Jeffe
Is there a trick to getting the Hierarchy Viewer to work in landscape orientation, or is it completely broken? In Pixel Perfect View it shows my screen sideways (i.e. in portrait aspect ratio), but when I click on the views in the explorer area it outlines the wrong areas of the screen. It looks

[android-developers] flag_fullscreen + windowNoTitle == button focus bug

2009-07-13 Thread Ward Willats
Hmm. Well, sounds like you are describing a race condition in the platform. All our activities are theme "@android:style/Theme.Black.NoTitleBar.Fullscreen" and they still wiggled, so that's not enough to close the window. Perhaps in our case, we make it happen because on being foregrounded we

[android-developers] Re: Hierarchy Viewer in landscape orientation

2009-07-13 Thread Romain Guy
HierarchyViewer does not support landscape properly yet. Patches welcome :) On Mon, Jul 13, 2009 at 4:41 PM, Peter Jeffe wrote: > > Is there a trick to getting the Hierarchy Viewer to work in landscape > orientation, or is it completely broken?  In Pixel Perfect View it > shows my screen sideways

[android-developers] font typeface dynamically

2009-07-13 Thread sleith
i've learned that to set typeface needs font to be under asset folder how to dynamically load the ttf file to be used in code? or maybe how in runtime to add ttf file into the asset folder? is there any solution for this problem? thx --~--~-~--~~~---~--~~ You recei

[android-developers] Re: font typeface dynamically

2009-07-13 Thread Mark Murphy
sleith wrote: > i've learned that to set typeface needs font to be under asset folder > how to dynamically load the ttf file to be used in code? You can't, except out of the assets folder. > or maybe how in runtime to add ttf file into the asset folder? You can't, as the APK cannot be modified

[android-developers] Invisible Widget

2009-07-13 Thread Devomat
I wrote a widget. All is working fine. But... from time to time the Widget is invisible on standart home screen (Launcher). Only after firing the automated "Update_Widget" (in XML: android:updatePeriodMillis="3600") the Widget is visible again. Often this problem is visible when one of the

[android-developers] Re: font typeface dynamically

2009-07-13 Thread sleith
hm.. ok so i have to load all fonts into the asset folder thx for the reply :) On Jul 14, 7:00 am, Mark Murphy wrote: > sleith wrote: > > i've learned that to set typeface needs font to be under asset folder > > how to dynamically load the ttf file to be used in code? > > You can't, except out o

[android-developers] Re: Keyboard Backlight (G1) unavailable in Cupcake 1.5

2009-07-13 Thread Devomat
You're right... so i can't understand why cupcake has no settings to switch off the keyboard Backlight. I hope in future releases of Cupcake it will be possible. On 24 Mai, 09:02, milind wrote: > Practically every white and bronze G1 owners would like better control > over the backlight.  It wo

[android-developers] How to use CheckBox as children in ExpandableList?

2009-07-13 Thread kostmo
I would like to have expandable text categories which reveal children that are checkable entries. I've used the "simple_list_item_multiple_choice" layout for the childLayout argument of SimpleExpandableListAdapter. The activity shows up correctly, but when a child item is clicked, the check box w

[android-developers] Re: onTap display toast or message

2009-07-13 Thread alexdonnini
Hi Mark, Thanks. What I meant is that I thought that in your example, SitesOverlay is an inner class of the map activity "NooYawk". In my case, the custom itemized overlay class is not an inner class of the map activity. This means that an entry like NooYawk.this will not work. Am I wrong? I hav

[android-developers] Limit content provider access

2009-07-13 Thread AndroidKing
is there an easy way to limit my content provider access to only one or more packages I don't want other packages to access my data I looked at grantUriPermission but its not straight forward and it doesn't work any ideas? --~--~-~--~~~---~--~~ You received thi

[android-developers] HOWTO push kernel repo into android.git.kernel.org?

2009-07-13 Thread Xinyu Chen
Hi All I'm working for Freescale Semiconductor on the i.MX series linux BSP. Now we have android running well on i.MX515 platform, and hope to push android kernel repo into android.git.kernel.org. Then what's the process need us to follow? How reviews will be done? And what we should provide? Ca

[android-developers] Re: HOWTO push kernel repo into android.git.kernel.org?

2009-07-13 Thread JBQ
This question is more likely to get answered on the android-kernel mailing list. JBQ On Jul 13, 6:34 pm, Xinyu Chen wrote: > Hi All > > I'm working for Freescale Semiconductor on the i.MX series linux BSP. > Now we have android running well on i.MX515 platform, and hope to push > android kernel

[android-developers] Some G1 phones getting "device not found" with adb...

2009-07-13 Thread Richard Schilling
I'm doing a lot of G1 development these days, and I'm seeing a problem others have talked about but there seems to be no consistent answer. I have multiple G1 phones. Same model, manufacturer, etc... One of them connects to the computer, is recognized by adb, etc. just fine. Works like a charm

[android-developers] Re: onTap display toast or message

2009-07-13 Thread alexdonnini
Scott Mikolyski (sc...@mikolyski.com) solved my problem. He suggested I add a private context to the custom itemized overlay, modify the itemized overlay constructor to assign a context to the private contxt. Then pass the context of the map activity to the instantiation of the custom itemized ov

[android-developers] Re: Some G1 phones getting "device not found" with adb...

2009-07-13 Thread nEx.Software
This occasionally happens to me on both my G1 and my Ion. I think its related to the data pins not contacting competely. Usually the old NES trick (blow in the cartridge) works for me. A quick little blow in both the USB connectors and it works like new. Unfortunately, I think there is a chance t

[android-developers] Re: httpclient multipart form upload

2009-07-13 Thread John Smith
2009/7/13 jottos > Is there any setup android requires to make a post/multipart file > upload work that you didn't specify in your example? > On Jun 26, 8:53 pm, Delta Foxtrot wrote: > Nope I copied the code from an actual application I have working, the difference might be the servers we're co

[android-developers] Re: how to obtain a virgin map ?

2009-07-13 Thread John Smith
2009/7/12 Eden > > > Is there a way to obtain a virgin map with the Google Map Api or other > API (no city and country names, i want only country borders) ? > The osmdroid map code and a custom tile set of world land boundaries. --~--~-~--~~~---~--~~ You received

[android-developers] More Appwidget Phantom Scenarios?

2009-07-13 Thread Brian Muramatsu
It seems there is no way to tell if a widget was successfully added to the home screen because there may not have been enough room. I was writing to the database in my config activity but realized this was dangerous, because there is no way to tell if the widget was really added? Is there a way t

[android-developers] Setting Default Ringer Issue

2009-07-13 Thread Donn Felker
I'm setting the default ringer to a resource in my application with the following code. Uri mediaUri = Uri.parse("android.resource:// com.Diligent.Apps.YoGabbaBoard/" + mediaId); RingtoneManager.setActualDefaultRingtoneUri(getApplicationContext(), RingtoneManager.TYPE_RINGTONE, mediaUri); I can

[android-developers] [Issue] Can't delete SMS in SIM

2009-07-13 Thread Light
Hi all : I try to delete SMS in SIM from Messaging , but neither I choice delete all or delete one SMS in SIM , the SMS can't be deleted. I check source code in SmsManager , I find that the function simISms.updateMessageOnSimEf always return false , but with Android 1.5 SDK no ISms.c anymore

[android-developers] Tab Background Issue

2009-07-13 Thread Donn Felker
I have an application which uses 6 tabs to display an interface to a user. This is a requirement for the app, I cannot use another type of view. Using the out of the box TabWidget I can create 6 tabs however there is an issue with the background of the tab. There is an odd veritcal line that is in

[android-developers] Re: 3GP file plays on hardware, not on emulator

2009-07-13 Thread dario
I had an identical problem when I saved videos with custom dimensions. So you may want to save to the common 352x288 and either clip or resize during playback or try saving using different aspect ratios. hope this helps, Dario On Jul 13, 5:32 pm, Mark Murphy wrote: > http://commonsware.com/mis

[android-developers] How to write async socket with Android?

2009-07-13 Thread Victor Lin
Hi, I am developing a program that needs async socket. I am new to Android and Java. As I can see in the document, to write network program, I got Socket and SocketChannel, but it seems they are all sync socket, it means, I need an extra thread to call blocking read, write... and etc. Here comes

[android-developers] List View not properly updated from AsyncTask

2009-07-13 Thread pperotti
Hi Everyone, After digging with the APIs I still cannot figure out how the AsyncTask properly works and why some behavior occur. I'm trying to achieve one contact list that can be updated from a background async task very frequently. There are situations where invoking UI updates from the backg

[android-developers] Re: unknownhostexception in my app on device

2009-07-13 Thread ravi
Hi Vinod, I have given Internet permission in Manifest.xml file. Currently problem is 40% times it work fine 60% time it gives unknown host exception. I don't why it it happens few times only? Regards, Ravi --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Is Zoom in And Zoom out is Possible for Image View In android............

2009-07-13 Thread android.vinny
Hi Is Zooming is possible to do in android for Image view . I have a images in full screen view, i need to zoom in and zoom out for that images present in image view . Can any body give me suggestions regarding this Thanks in advance. --~--~-~--~~~---

[android-developers] Re: List View not properly updated from AsyncTask

2009-07-13 Thread Romain Guy
Do NOT call invalidateViews(), it calls ListView to throw everything away. Use Adapter.notifyDatasetChanged() instead. On Mon, Jul 13, 2009 at 10:15 PM, pperotti wrote: > > Hi Everyone, > > After digging with the APIs I still cannot figure out how the > AsyncTask properly works and why some behav

[android-developers] Re: Is Zoom in And Zoom out is Possible for Image View In android............

2009-07-13 Thread Desu Vinod Kumar
Hi One More thing I need to Specify I need to zoom in and Zoom out with Touch ... not with key events On Tue, Jul 14, 2009 at 10:50 AM, android.vinny wrote: > > Hi > > Is Zooming is possible to do in android for Image view . > I have a images in full screen view, i need to zoom in a

[android-developers] Problem in running the android sky widget

2009-07-13 Thread n179911
Hi, I have download the android sky project and able to get it to compile it under eclipse. http://code.google.com/p/android-sky/ But when i try to add a 'Forecast' Widget on emulator, it pops up a 'Configure forecast widget', then I click 'Manual search' , I entered '60005' as my zip code. The

[android-developers] multiple-process in single application.

2009-07-13 Thread magicpig
HI, I need two activities run in different processes in the same application. Now I have made it work by specifying the different process name in "android:process". But I met a problem, from http://developer.android.com/guide/topics/manifest/application-element.html#nm, we have o

[android-developers] Re: multiple-process in single application.

2009-07-13 Thread Dianne Hackborn
Sorry, you can't do that. There are really very few reasons to have a custom Application anyway. I would generally suggest staying away from it, and just using statics for your globals. On Mon, Jul 13, 2009 at 11:17 PM, magicpig wrote: > HI, > > I need two activities run in different pro

[android-developers] Re: How to write async socket with Android?

2009-07-13 Thread James
Hi Victor Lin: I don't know why could your problem happen,As One socket have both inputstream and outputstreams,They are responsible for read and write; And as far as i call tell,Socket is not android-specified,Hope this helps! Bgs! James On Jul 14, 12:57 pm, Victor Lin wrote: > Hi, > > I am de

[android-developers] Re: Limit content provider access

2009-07-13 Thread Dianne Hackborn
By far the easiest way is to do this based on app certificates -- just use android:readPermission and android:writePermission in the manifest, and declare the permission you are using there with to be android:protectionLevel="signature". Then only apps signed with the same certificate as your own

[android-developers] Re: How to write async socket with Android?

2009-07-13 Thread Victor Lin
Well, but will the read of InputStream blocked when there is no incoming data? I mean... for example: I run the sock in specific thread, because those methods' call will blocked. The code might like this: /// This is the socket thread for checking data while not stop: data = read(); // if no

[android-developers] GPRS Data rate

2009-07-13 Thread kalyan simhan
hi all.. is there any way to get the gprs data transfer rate.. are there any APIs available??.. im using android 1.1 sdk... any code snippet would be of great help.. thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Detecting hiding of android keyboard

2009-07-13 Thread Lee
I've got an application where a button can be used to display the onscreen keyboard (so that the user can interact with the application). The button is positioned on top of a SurfaceView and when the button is pressed the onscreen keyboard is displayed and the button is hidden. I'm trying to det

[android-developers] WebView: How to work with Plugins and WebViewClient? Was: How to play YouTube Video in WebView?

2009-07-13 Thread Mariano Kamp
So, it works when using WebView.setPluginsEnabled(true). Well, it works until setting up a WebViewClient. WebView webView = (WebView) findViewById(R.id.content_web_view); webView.getSettings().setPluginsEnabled(true); webView.setWebViewClient(new WebViewClient() {}); // MARK webView.loadUrl(

[android-developers] Re: how to avoid the showing of prev,next buttons of MediaController

2009-07-13 Thread tstanly
according to the link, it's impossible invisiable to the prev/next button, the referece of widget says: The "previous" and "next" buttons are hidden until setPrevNextListeners () has been called hidden is not invisible On 6月24日, 下午10時29分, Marco Nelissen wrote: > According > tohttp://develop

[android-developers] chinese keyboard

2009-07-13 Thread and.pradeep
How to set font for a IME? if i want it to be in chinese? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscr

[android-developers] Re: how to set font for softkeyboard?

2009-07-13 Thread Dianne Hackborn
You need to use a Chinese IME. One may not have shipped with your device, but there might be one in Market. On Sun, Jul 12, 2009 at 11:44 PM, and.pradeep wrote: > > Thanks for reply but how set set font for the IME? > > On Jul 12, 8:39 pm, Dianne Hackborn wrote: > > You can't customize it from

[android-developers] Re: Avoid Failed Binder Transaction

2009-07-13 Thread Dianne Hackborn
I don't believe the code you lists causes any Binder IPC -- that is all just normal Linux stuff. On Sun, Jul 12, 2009 at 10:47 PM, Don Tran wrote: > > My application is getting a failed binder transaction, which causes it > to completely hang, when I do the following: > > Process process = Runt

[android-developers] Re: Calender app on [emulator/custom devices]

2009-07-13 Thread Dianne Hackborn
The calendar APIs are not public, so unfortunately right now you can't create anything that could be put on Market. On Sun, Jul 12, 2009 at 10:18 PM, vishal bhoj wrote: > Hi, > > > Has anyone got the calender application running on emulator/ custom > devices. > Can we use the client.jar availabl

[android-developers] Re: Calender app on [emulator/custom devices]

2009-07-13 Thread vishal bhoj
ok fine, but what about custom devices who want to have a calendar application. How can they get the default application running on their device. Is there any way we can get the application running ? On Mon, Jul 13, 2009 at 1:32 PM, Dianne Hackborn wrote: > The calendar APIs are not public, so u

[android-developers] Re: HTC Magic vs G1 performance

2009-07-13 Thread Eric Wong (hdmp4.com)
Maybe you can run the benchmark and post your test results http://forum.xda-developers.com/showthread.php?t=532668 those results at XDA certainly shows the Magic to be slowerdespite Magic having more ram and rom over G1... Maybe also post the results using CaffeineMark I know G1 have over

[android-developers] ListView (ExpandableListView as well) selector highlight problems with custom background

2009-07-13 Thread Dimitris
Hey all, I have an expandable list with a custom adapter. Everything works great but there are two problems. First whenever a group or child has a custom background color set the orange selector does not show up. If I dont setup a color the selector draws nicely and also the fade away for contex

[android-developers] Re: Video with MediaRecorder

2009-07-13 Thread Zeeshan Muhammad
Hi Hanged, no it doesn't work on emulator and not even on real device. i dont see anything except application title when i run the above intent On Sun, Jul 12, 2009 at 12:49 AM, hanged_man wrote: > > Zeeshan, does (the intent solution) work on the emulator or not ? > > On Jul 12, 1:10 am, Zeesha

[android-developers] Re: Video with MediaRecorder

2009-07-13 Thread hanged_man
Muhammad, This is the very same problem that i used to have with the camera and i've managed to get around it with the solution that i suggested before. However, you might want to send me your source code (or more like a snippet) and ill try it locally on my machine. On Jul 13, 11:37 am, Zeesha

[android-developers] Re: how to set font for softkeyboard?

2009-07-13 Thread and.pradeep
if I want to develop a chinese IME, Where am i suppose to set the font? On Jul 13, 12:59 pm, Dianne Hackborn wrote: > You need to use a Chinese IME.  One may not have shipped with your device, > but there might be one in Market. > > > > > > On Sun, Jul 12, 2009 at 11:44 PM, and.pradeep wrote: >

[android-developers] Re: Video with MediaRecorder

2009-07-13 Thread Zeeshan Muhammad
* here is my code: package* net.sleepy.video; i*mport* android.app.Activity; * import* android.content.Intent; * import* android.os.Bundle; * public* *class* Capture *extends* Activity { /** Called when the activity is first created. */ @Override *public* *void* onCreate(Bundle savedIn

[android-developers] Re: Mix tab with ImageView and TextView

2009-07-13 Thread Christian S.
I solved this - was actually quite easy through XML - here is how it looks if someone is interested: http://schemas.android.com/apk/res/android"; android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent">

[android-developers] Re: Help to develope keyboard driver!!!

2009-07-13 Thread and.pradeep
for software keyboard http://developer.android.com/reference/android/inputmethodservice/InputMethodService.html On Jul 13, 11:09 am, Ulzii wrote: > I am a Mongolian developer and I need to create a Mongolian crylic > letter keyboard driver for typing Mongolian text. > How can I develop this keyb

[android-developers] Re: How to get the video stream from MediaRecorder?

2009-07-13 Thread manoj
Hi Gergely Kis , Thanks for your reply. I followed your blog, and able to stream it. On the server side, I have written a socket which reads the data and writes it into the local file system. The server able to save the file. But when I tried to play the file, it showing some error message th

[android-developers] Service won't stop when exiting application

2009-07-13 Thread Lex
Hi everyone, this message is in addition to the posts at http://groups.google.com/group/android-developers/browse_thread/thread/3f01a8576ebb0d7c/1a065e23513c1523 I have a service receiving and sending data to a server in separate threads each. The service lifecycle methods look like this:

[android-developers] Forced line break in xml layout using simple list adapter

2009-07-13 Thread Christian S.
I am struggling with applying a forced line break in the xml layout when using a simple list adapter. The data for the list adapter is being pulled from an sqlite db. Here is the code: SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.item, curs

[android-developers] Re: How to get the video stream from MediaRecorder?

2009-07-13 Thread manoj
I can able to view the video in vlc player if I change the video encoder to VideoEncoder.MPEG_4_SP and output format to OutputFormat.MPEG_4. But the video is playing very fastly not in usual speed. If I tried to open it in quicktime player, I am getting -2048 error. can you please help me to sol

[android-developers] Re: How to contact device with ADB from Windows NT?

2009-07-13 Thread Chenny
I tried set ADBHOST=xx.xx.xx.xx And it is OK for adb shell. Thanks very much! On Jul 10, 6:40 pm, Chenny wrote: > Hi All, > I can contact device withADBtool from Linux PC. Such as: > >   On Linux PC: >   $ exportADBHOST=XX.XX.XX.XX #(IP of Android device) >   $adbkill-server (you must make

[android-developers] Get certificate used to sign an application

2009-07-13 Thread Lutz Schönemann
I need some info about the android.content.pm.Signature object. Currently I do the following to get the certificate used to sign the package: ---8<---8<---8<--- ByteArrayInputStream is; CertificateFactory cf; try { cf = CertificateFactory.getInstance("X.509"); } catch(CertificateExce

[android-developers] Issue: java.lang.SecurityException: Neither user 10013 nor current process has android.permission.WAKE_LOCK

2009-07-13 Thread Chenny
Hi All, When I port my Android APP from Cupcake to Donut, I meet the following issue: Anybody has clue for it? (BTW, the APP can be worked well on Cupcake.) E/AndroidRuntime( 2225): java.lang.SecurityException: Neither user 10013 nor cur rent process has android.permission.WAKE_LOCK. E/AndroidRun

[android-developers] Installation error: failure -12

2009-07-13 Thread bluestar
Hi all, I used Eclipse-SDK1.5 to create one app from apk(myClient.apk), and install on OpenMoko(Android version 1.0) but i received this error: pkg: /data/local/tmp/myClient.apk Failure [-12] My apk can install successfully on Android-Emulator under WinXP. An

[android-developers] Re: Installation error: failure -12

2009-07-13 Thread Lutz Schönemann
Maybe you have compiled your application for Android 1.5. Make sure to set Android 1.1 as target. Am 13.07.2009 um 13:10 schrieb bluestar: > > Hi all, > >I used Eclipse-SDK1.5 to create one app from apk(myClient.apk), >and install on OpenMoko(Android version 1.0) >but i received t

  1   2   3   >