[android-developers] Does Android Browser support right menu - open with ?

2009-01-22 Thread Guolong
Hello, I want to implement the following scenario: when user browses a web page and right-click a link, then user can choose to open the link with a different Application (except Browser). Is it possible in Android? --~--~-~--~~~---~--~~ You received this

[android-developers] Re: How to get Available Device RAM

2009-01-22 Thread JS
Isn't this kinda meaningless in the context of managed app architecture (Dalvik)? On Jan 21, 11:39 pm, android_soft cspeche...@gmail.com wrote: Hi Diana, Couple of things: 1. Display available RAM - 2. Allocate static memory based on certain percentage of available RAM and let the user do

[android-developers] How do you save the state of an activity on an ActivityUnitTestCase

2009-01-22 Thread J . Pablo Fernández
Hello, In an ActivityUnitTestCase I'm trying to do: Activity activity = startActivity(INSERT_INTENT, initialState, null); Bundle outState = new Bundle(); getInstrumentation().callActivityOnSaveInstanceState(activity, outState); But on the save

[android-developers] How can i close my project?

2009-01-22 Thread ipeg . student
Hi developers I have a problem. I have a project which has 5 activities. All the activities are connected through intent. I have a exit button to exit the whole project . I have used finish() function but it just close the current activity. It works like back. Please

[android-developers] Re: How can i close my project?

2009-01-22 Thread for android
start the activities with startActivityForResult(intent,MY_CODE) and on each Activity override onActivityResult close that activity protected void onActivityResult(int requestCode, int resultCode, Intent data) { switch (resultCode) { case Constants.MY_CODE:

[android-developers] Android TCK?

2009-01-22 Thread Peter Neubauer
Hi all, I am thinking of porting Android to a new device with some hacking required related to some Android subsystem (Dalvik, media codecs etc). However, is there any TCK available or guidelines on what is possible to be called Android, and how many of the Android APIs that are mandatory to

[android-developers] How to set sdp file in the MediaPlayer

2009-01-22 Thread develop code
Hi, I want to play a video file sitting in a server by setting local sdp file in the mediaplayer. How to set the mediaplayer to read the local sdp file and start playing depending on the sdp connect (if it has unicast/multicast, start corresponding session)? I want to test unicast for now.

[android-developers] Re: Screen Orientation change performance Question

2009-01-22 Thread blindfold
According to DDMS, my app leaks about 30 KB every time I quit and restart it. It may well be that this is caused by context references, but so far I have been unable to track it down. I think we desperately need some tool or a straightforward method to know exactly *what* is leaking *where* from

[android-developers] Re: I can use Intent make outgoing call, but how to detect the call state?

2009-01-22 Thread legerb
You can't detect this. On Jan 20, 3:38 am, ben ben.flash...@gmail.com wrote: hi all. i can use this code make outgoing call.         Intent dial = new Intent(Intent.ACTION_CALL);         dial.setData(Uri.parse(tel:5556) );         context.startActivity(dial); but how to detect callee

[android-developers] MotionEvent its historical values

2009-01-22 Thread skink
hi, i have to call offsetLocation on my MotionEvent but what i saw in the sources it may be a bit performance bottleneck since offsetLocation updates also historical values. thats why i'd like to ask if there is a way to force not to add any history since i simply don't need it. i saw that

[android-developers] Re: Help required: ListView

2009-01-22 Thread Don Rules
Hi Romain, I dont want the list items to be selected. But i have a button in the listItem which has to be focused when i use the navigation keys.. I tried by setting the ListView.setItemsCanFocus(false); It is still getting the focus.. Please help.. REgards, Don On Thu, Jan 22, 2009 at 12:52

[android-developers] Re: How to make my application know where I am, in country level.

2009-01-22 Thread legerb
String networkOperator = ((TelephonyManager) context .getSystemService (Context.TELEPHONY_SERVICE)).getNetworkOperator(); String locationCode = networkOperator.substring(0, 3); First 3 digitis are the mcc code - Mobile Country Code which will tell you what you need. On Jan 20,

[android-developers] Re: Repo Client init problem ubuntu 8.10

2009-01-22 Thread the_dude
Yes, GIT is installed. I belive that it is not repo it self but that lib32readline5-dev is related to the problem. As far as I understand it is needed if you run on a AMD 64 bit arch but I'm running Virtualbox + Ubuntu on my Intel Centrino Duo laptop so I'm a bit confused. When looking in

[android-developers] Re: Repo Client init problem ubuntu 8.10

2009-01-22 Thread the_dude
Sorry, I missed flags. - flags : fpu vme de pse tsc msr mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 constant_tsc up pni monitor And since it doesn't contain lm (long mode) I'm back to square 1. /dude On Jan 22, 10:16 am, the_dude d0...@hotmail.com wrote: Yes, GIT is

[android-developers] peer-to-peer via XMPP?

2009-01-22 Thread JS
I have smack xmpp lib working fine for GChat messages, but how do I send data messages via xmpp? Thx --~--~-~--~~~---~--~~ 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] if size of image is larger than or smaller than specified display size

2009-01-22 Thread jalandar
if size of image is larger than or smaller than specified display size (on screen), then it is automatically, compressed and stretched resp by android run time or require to handle by explicitly. will somebody clear me. --~--~-~--~~~---~--~~ You received this

[android-developers] Re: How to re-install sign android built-in applications

2009-01-22 Thread Marcio Alexandroni
I thought part of the point of the AOSP was that you could use those apps as bases for your own development. (I can go digging for more website/marketing/etc quotes if you really want, but..) Ok, perhaps we should move this discussion to android-discuss but as it started and continued here...

[android-developers] Re: Make a photo with Android Emulator

2009-01-22 Thread ANDREA P
If I use the Camera of Emulator appear this text :Please insert the SDCARD before using the Camera How do I simulate a SDCARD Thanks ! On 21 Gen, 21:06, Dave Sparks davidspa...@android.com wrote: You need to call startPreview() before takePicture. You also need to supply a

[android-developers] what is image file format of images taken from camera

2009-01-22 Thread jalandar
what is image file format of images taken from camera, and images provider and images which are displayed in Picture app(android's inbuilt app ) anybody clear me in detail. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Debugging on actual G1

2009-01-22 Thread Anil Yadav
Hi These steps will help you to debug the system applications (Messaging, IM, Phone book etc.) in target or emulator. For debugging application in emulator no need to install or push new APK into emulator you can map existing APK (preinstalled APK) in emulator with eclipse source code. Step 1:

[android-developers] Re: Make a photo with Android Emulator

2009-01-22 Thread ANDREA P
Problem Resolved Thanks On 22 Gen, 11:18, ANDREA P andrewpag...@gmail.com wrote: If I use the Camera of Emulator appear this text :Please insert the SDCARD before using the Camera How do I simulate a SDCARD Thanks ! On 21 Gen, 21:06, Dave Sparks davidspa...@android.com

[android-developers] Re: Dev Phone Warranty

2009-01-22 Thread xilak
To all of you that are monitoring this thread closely... :-) It was the battery that was the problem. I am now using a seidio battery with 1400 mAh and it's working just fine. http://www.seidioonline.com/ProductDetails.asp?ProductCode=BASI14TMG1 /Lars On 13 Jan, 09:56, xilak

[android-developers] Re: Make a photo with Android Emulator

2009-01-22 Thread Gavin Aiken
There is a command line tool for making an SD card, you then need to pass it in as a command line argument to the emulator. Presuming tools is in your PATH; Command line: mksdcard 1024M sd.iso Argument to emulator: -sdcard C:\PATH_TO_SD\sd.iso Add files manually: adb push local_file

[android-developers] How do I refer to a string ressource in the array.xml?

2009-01-22 Thread code_android_festival_way
Is there a possibility to refer to a string ressource in the arrays.xml? I have tried: string-array name=services item@strings/call/item /string-array which I would normally do in a layout file. But it failed. Could someonte tell me the right way to do that. Regards

[android-developers] Re: How to set sdp file in the MediaPlayer

2009-01-22 Thread Paranoia
open this file directly... but you have to need add a new data source PVMF_DATA_SOURCE_SDP_FILE in playerdriver.cpp On Jan 22, 4:58 pm, develop code developcod...@gmail.com wrote: Hi, I want to play a video file sitting in a server by setting local sdp file in the mediaplayer. How to set

[android-developers] Re: How to set sdp file in the MediaPlayer

2009-01-22 Thread develop code
1. what do you mean by open? do you mean open the file and get file descriptor in the application? 2. And what all changes do I need to do in playerdriver.cpp, PlayerDriver::handleSetDataSource( ...) { if (strncmp(url, rtsp:, strlen(rtsp:)) == 0) {

[android-developers] How to switch from Activity to ListActivity ?

2009-01-22 Thread Nico
Hi, I have a main class derived from Activity, I need a ListActivity (displayed when the menu button is clicked). How can I proceed. I don't understand how I can switch from one to the other ? Thx --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: WebKit/WebView and Focus Highlighting

2009-01-22 Thread Mark Murphy
Fred Grott(shareme) wrote: Found it :) I hope how about webkit-focus-ring-color Does that sound correct Mark? I mean there would have to be say an admin.css with webkit in Android setting this to orange correct? Thus, the question is can we override it? In my case, I'd settle for

[android-developers] Re: WebKit/WebView and Focus Highlighting

2009-01-22 Thread Fred Grott(shareme)
Your welcome Mark, Currently I am seeking side projects to take care of my own seed capital needs so if you see anything let me know.. I expect to find more tricks over the weekend..switching to using QuickConnect for Android.. On Jan 22, 7:07 am, Mark Murphy mmur...@commonsware.com wrote:

[android-developers] setDefaultTab(int) not working

2009-01-22 Thread Timothy DeWees
Hello, I have an application with a preferences pane that allows you to show/ hide tabs. I've walked through the code below and I AM passing the right index to the setDefaultTab(int) method; however, when the screen renders the tab is NOT selected. Any idea? SharedPreferences

[android-developers] Re: Does Android Browser support right menu - open with ?

2009-01-22 Thread Fred Grott(shareme)
touch screens do not have a right click...think in terms of finger tip movements On Jan 22, 2:16 am, Guolong liuguolong...@gmail.com wrote: Hello, I want to implement the following scenario: when user browses a web page and right-click a link, then user can choose to open the link with a

[android-developers] Re: How to get Available Device RAM

2009-01-22 Thread Jean-Baptiste Queru
If there's any RAM free, it's wasted. RAM can be used to keep processes, applications and paused activities around, to keep uncollected garbage in the virtual machines, to cache files, etc... and it's really a goal to keep RAM usage as high as reasonable all the time. JBQ On Wed, Jan 21, 2009

[android-developers] Re: How to get Available Device RAM

2009-01-22 Thread android_soft
Thanks for your responses... -Chander On Jan 22, 6:39 pm, Jean-Baptiste Queru j...@google.com wrote: If there's any RAM free, it's wasted. RAM can be used to keep processes, applications and paused activities around, to keep uncollected garbage in the virtual machines, to cache files, etc...

[android-developers] Re: Does Android Browser support right menu - open with ?

2009-01-22 Thread Mike Reed
If you long-press on a link, the browser brings up a menu of options. If that isn't sufficient, can you explain in more detail the scenario you'd like to support? What is the link to? Is it sufficient that you can copy the link to the clipboard? On Thu, Jan 22, 2009 at 3:16 AM, Guolong

[android-developers] Re: Why Android?

2009-01-22 Thread Jon Smith
Thanks a lot, Can anyone else add to this? Any input would be appreciated. On 16 Jan, 20:46, hmmm akul...@mail.ru wrote: I did some programming in Symbian and now I'm doing someAndroidstuff and for meAndroidis much easier in comparison with Symbian. This is because Symbian has some real

[android-developers] Re: Repo Client init problem ubuntu 8.10

2009-01-22 Thread the_dude
Problem solved... It seems that the download of repo ($curl http://android.git.kernel.org/repo ~/bin/repo) failed and I ended up with only parts of the file. Try the command until curl succeeds (verify by $less ~/bin/repo). BR the_dude On Jan 22, 10:29 am, the_dude d0...@hotmail.com wrote:

[android-developers] Re: How to deploy large DB with my APK

2009-01-22 Thread jsm
Even if you had the import feature, the user would still need to get the 800k data...from somewhere either online or from the device? Sorry if I did not understand your problem... On Jan 22, 6:59 am, Svend Erix svenderiknyga...@gmail.com wrote: Thanks for the clear answer - yes the restriction

[android-developers] Re: Why Android?

2009-01-22 Thread Fred Grott(shareme)
John, mine is different in places. I come from the bowels of j2me and Symbian development..even have source code ina dev tol that Nokia, IBM, SonyEricsson, and etc use.. My outlook is that its too expensive to port among mobile platforms both in time and money. Thus, my new direction is to

[android-developers] Re: Does Android Browser support right menu - open with ?

2009-01-22 Thread kelly
To right-click something, be sure you use the rightmost finger on the hand you're using to click. For example, if you normally use the index finger of your right hand to click something, use your right pinky instead. If you normally use your left index finger, use your left thumb to right-click.

[android-developers] Google Map Key

2009-01-22 Thread Fred Grott(shareme)
I have a question since I will be using Google Maps Api in webview in the same ruleet and tos as native Android in that the app is free to use and etc and thus I am assuming that I can still use the same Android Debug Cert keys to apply for a Google MAp key.. Is this a correct assumption?

[android-developers] Re: if size of image is larger than or smaller than specified display size

2009-01-22 Thread gymshoe
My limited experience has been that Android does automatically compress and stretch at runtime. If you want to keep the proportions, you need to specify: android:adjustViewBounds=true in XML formatting, or equivalent in Java. jim On Jan 22, 3:07 am, jalandar jagtap...@gmail.com wrote: if size

[android-developers] Re: spurious WAKE_LOCK SecurityException?

2009-01-22 Thread Al
Don't know how big a difference it'll make, but try uses-permission android:name=android.permission.WAKE_LOCK / instead. Also, which element have you put the line under? Try putting it immediately after manifest . On Jan 22, 12:01 am, dreamerBoy paul.hube...@gmail.com wrote: I am very

[android-developers] Re: Query about Content Provider queries...

2009-01-22 Thread A T
So, I'm working on an app that is accessing an existing content provider which holds a significant amount of data. I will be querying and updating this content provider frequently, and it has proven to cause noticeable delays due to the constraints that are required for these queries. I am

[android-developers] Re: Query about Content Provider queries...

2009-01-22 Thread Dianne Hackborn
It would be hard to say, it depends very much on what exactly you are doing. In general direct queries on a database are quite fast, but it would be hard to say how fast it will be to retrieve all data from an existing provider and write it into your own database. On Thu, Jan 22, 2009 at 8:52

[android-developers] Re: Is it possible to get incoming caller id (phone number) in real time ?

2009-01-22 Thread monmonja
Yes, its possible you have to either use a BroadcastReceiver or a Service and listen to PHONE_STATE. There is a lot of example here in the groups and forums like anddev.org. You might find this helpful. Look at the onCallStateChanged, there is a incomingNumber argument

[android-developers] Re: Query about Content Provider queries...

2009-01-22 Thread A T
Oh, that's not the problem. That will only have to be done once -- the first time the app is run on a device. The rest of the queries and updates will be to and from my own database. The updates to the content provider will be done in the background, and it's ok if the data isn't up to date

[android-developers] Re: How secure are the IPC methods?

2009-01-22 Thread Dianne Hackborn
It depends on how paranoid you want to be. The IPC channels are secure -- they generally use shared memory, but it is only mapped either between the processes that are communicating or between a single process and the kernel. Often though people like to be extra paranoid about passwords, and now

[android-developers] Re: what is image file format of images taken from camera

2009-01-22 Thread Scynasty
jpeg On Jan 22, 5:19 am, jalandar jagtap...@gmail.com wrote: what is image file format of images taken from camera, and images provider and images which are displayed in Picture app(android's inbuilt app ) anybody clear me in detail. Thank you

[android-developers] Re: How to switch from Activity to ListActivity ?

2009-01-22 Thread Scynasty
you have to create another class which extends listadapter either in the same java file or a new one. On Jan 22, 8:02 am, Nico nicolas.d...@gmail.com wrote: Hi, I have a main class derived from Activity, I need a ListActivity (displayed when the menu button is clicked). How can I proceed. I

[android-developers] Re: How do I refer to a string ressource in the array.xml?

2009-01-22 Thread James Yum
Hi, That looks fine. The problem must be somewhere else. What is the error you're seeing? Cheers, James On Thu, Jan 22, 2009 at 4:18 AM, code_android_festival_way festival.s...@googlemail.com wrote: Is there a possibility to refer to a string ressource in the arrays.xml? I have tried:

[android-developers] how to remove the image displayed in ImageView

2009-01-22 Thread cindy
Hi How can we removed image displayed in Imageview? Thanks! Cindy --~--~-~--~~~---~--~~ 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

[android-developers] Re: Does Android Browser support right menu - open with ?

2009-01-22 Thread Scynasty
there is a way to run a two finger click like the one on macs. if you run an if statement in ontouchevent if (event.getSize .6) { } this will get the size of the touch to the screen. placing two fingers on the screen makes the screen see one big finger even if the fingers are not touching.

[android-developers] Re: want urgent solution for this

2009-01-22 Thread James Yum
Hi, Android has good support for creating and manipulating bitmaps. Can't you create small bitmaps from the original source bitmap? Perhaps using something like this: http://code.google.com/android/reference/android/graphics/Bitmap.html#createBitmap(android.graphics.Bitmap, int, int, int, int,

[android-developers] Re: How to deploy large DB with my APK

2009-01-22 Thread info.sktechnol...@gmail.com
Not the best solution, but may save your users some memory: Have 2 versions of the software, one with the database and one without. After the database is installed, have the user download the new version wothout the database. You could have a menu item in the large application that downloads

[android-developers] Re: Help required: ListView

2009-01-22 Thread Scynasty
you could try running an onitemselected with a setfocus to the button so when an item is selected focus is placed to the button. On Jan 22, 2:17 am, Don Rules don.rulz.wo...@gmail.com wrote: Hi Folks, I have a list view, in which each of the list item contain a TextView and a button. when i

[android-developers] Re: disable scrolling

2009-01-22 Thread Scynasty
ScrollView.setVerticalScrollBarEnabled(false); On Jan 22, 1:15 pm, ena enu1...@gmail.com wrote: Hi All, Im using scrollview...i need to disable scrolling bar on particular time ..is it possible??plz help me out... --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: MotionEvent its historical values

2009-01-22 Thread skink
skink wrote: On 22 Sty, 08:12, skink psk...@gmail.com wrote: hi, i saw that history is appended via addBatch method but failed on finding who/where/when/why call it. seems i didn't grep good enough... now i found that addBatch is called from com.android.server.InputDevice but

[android-developers] FloatBuffer.put() bug...

2009-01-22 Thread Patrick
There seems to be a bug where calling FloatBuffer.put() on a buffer create as such : ByteBuffer bufferVerts = ByteBuffer.allocateDirect(numVerts * 3 * 4); bufferVerts.order(ByteOrder.nativeOrder()); m_bufferVerts = bufferVerts.asFloatBuffer(); m_bufferVerts.position(0); does not properly write.

[android-developers] Preferences not saved *sometimes*

2009-01-22 Thread A T
I'm having this problem with one of my apps where some people are reporting that their preferences are not being saved when they close and resume the app. The preferences theyre talking about happen to be actual Preferences (i.e. the built-in preferences manager for an activity). They say they're

[android-developers] Re: How to deploy large DB with my APK

2009-01-22 Thread Svend Erix
It is important that the application is fully functioning imeediately after download. The user should not need to do anything further to use it - so no second downloads. On Jan 22, 8:40 pm, info.sktechnol...@gmail.com info.sktechnol...@gmail.com wrote: Not the best solution, but may save your

[android-developers] Re: How to deploy large DB with my APK

2009-01-22 Thread Svend Erix
I just got an idea: Anyone know if and how the following could be done: Can I create the SQLite DB (a single SQLite file) and then include it in my APK and connect to it? - or is the SQLite DBs in an android application shielded from such a solution. On Jan 22, 1:52 am, Mark Murphy

[android-developers] Re: How to deploy large DB with my APK

2009-01-22 Thread Stoyan Damov
I'm not sure I understand your problem. You have 100K app code and 800K initialization data - that's below 1 MB. If the app is worth it I don't see any user would complain about your app's size. Most (non-trivial) games will be bigger than that. Cheers, Stoyan On Thu, Jan 22, 2009 at 12:52 AM,

[android-developers] android:manageSpaceActivity ?

2009-01-22 Thread deepdr...@googlemail.com
hi there, does there anywhere exist an example on how the applications attribute android:manageSpaceActivity is used? .. The documentation sounds interesting, but I do not really have an exact idea on what this attribute does. Or what an Activity named here (that is the attribute value, right?)

[android-developers] SaxParser with POST to URL

2009-01-22 Thread Mark Hansen
I have an API I'm using that requires me to POST instead of use GET to submit my credentials before receiving back my XML response. I've parsed a bunch of various XML services like this, but this is the first time I've run across having to post to the URL. Basically they want a username and

[android-developers] Re: TCP connections

2009-01-22 Thread Michael
I want to setup a TCP connection between two devices running the Android OS. Is this possible, If so, please tell me how to accomplish it. Just like you would with Java on any other platform. Perhaps pick up a Java networking book? --~--~-~--~~~---~--~~ You

[android-developers] Re: P2P Android

2009-01-22 Thread Michael
Im guessing you'll need a central server with which to relay files between. I dont believe phones have unique IPs which you can directly access from phone to phone - its been a while since I checked though, maybe someone else can confirm this? If they're on wifi, you can assign them any IP

[android-developers] Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Stoyan Damov
Hi guys, I think there's a bug in either showDialog, dismissDialog or showing/dismissing a ProgressDialog using these 2 methods, which might or might not be related to the fact that I'm displaying the dialog from another thread (marshalled correctly via runOnUiThread). Here's what I do: I have

[android-developers] Re: android:manageSpaceActivity ?

2009-01-22 Thread Dianne Hackborn
It's just the activity component to be launched from the manage applications UI. There is nothing more to it than that. On Thu, Jan 22, 2009 at 2:02 PM, deepdr...@googlemail.com deepdr...@googlemail.com wrote: hi there, does there anywhere exist an example on how the applications attribute

[android-developers] Re: How to deploy large DB with my APK

2009-01-22 Thread Svend Erix
OK, I found a thread dealing with this option (Including SQLite database with application) On Jan 22, 10:37 pm, Svend Erix svenderiknyga...@gmail.com wrote: I just got an idea: Anyone know if and how the following could be done: Can I create the SQLite DB (a single SQLite file) and then

[android-developers] Re: MotionEvent its historical values

2009-01-22 Thread Dianne Hackborn
offsetLocation() is called as the event is dispatched down the hierarchy. You calling it one more time isn't going to be a big deal. :) On Thu, Jan 22, 2009 at 12:19 PM, skink psk...@gmail.com wrote: skink wrote: On 22 Sty, 08:12, skink psk...@gmail.com wrote: hi, i saw that

[android-developers] Re: How to switch from Activity to ListActivity ?

2009-01-22 Thread Dianne Hackborn
You don't -have- to derive from ListActivity, that class is just a convenience for the common case when an activity contains a list. You can just use a regular Activity and put a list in its content view hierarchy if you want. On Thu, Jan 22, 2009 at 5:02 AM, Nico nicolas.d...@gmail.com wrote:

[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Romain Guy
DIALOG 888: about to display: Blah // onCreateDialog is NOT called, which is what's expected, the dialog is cached DIALOG 888: prepared with message: Blah DIALOG 888: dismissed How much time is spent between prepared with message and dismissed.? It looks like you are simply dismissing the

[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Stoyan Damov
Hi Romain, Actually before I posted this I put a SystemClock.sleep(1000) between the 2 calls and it didn't make any difference. But thanks for asking me about this, it seems you guys at Google are paying attention! I wish someone read my post about the surfaceHolder.lockCanvas(dirtyRectangle)

[android-developers] Re: FloatBuffer.put() bug...

2009-01-22 Thread fadden
On Jan 22, 12:51 pm, Patrick bpatm...@gmail.com wrote: There seems to be a bug where calling FloatBuffer.put() on a buffer create as such : There are some known problems with the 1.0 implementation, e.g.: http://code.google.com/p/android/issues/detail?id=1585 Can you provide a stand-alone

[android-developers] Age of GPS data

2009-01-22 Thread Anna PS
Hi When you get GPS location using getLastKnownLocation, is there a way to check how old the data is, i.e. when the location was last updated? I'm noticing that sometimes my app is giving me an out-of-date location (usually because the sky is not visible when the app starts) - it'd be good to

[android-developers] Re: Screen Orientation change performance Question

2009-01-22 Thread Mark Murphy
cindy wrote: My application also crashes somtimes when screen oritention change. I don't have big image at all. Do I need to some special code to handle screen orientation change? Possibly. By default, your activity is destroyed and recreated when the screen orientation changes. In theory,

[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Stoyan Damov
Any ideas? On Fri, Jan 23, 2009 at 12:40 AM, Stoyan Damov stoyan.da...@gmail.com wrote: Hi Romain, Actually before I posted this I put a SystemClock.sleep(1000) between the 2 calls and it didn't make any difference. But thanks for asking me about this, it seems you guys at Google are

[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Romain Guy
Try with a longer sleep. If it still doesn't work, could you come up with a small and simple reproducible case that we can run on our side to see what's going? You can also file a bug at code.google.com/p/android/issues. On Thu, Jan 22, 2009 at 3:46 PM, Stoyan Damov stoyan.da...@gmail.com wrote:

[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Dianne Hackborn
On Thu, Jan 22, 2009 at 2:40 PM, Stoyan Damov stoyan.da...@gmail.comwrote: I wish someone read my post about the surfaceHolder.lockCanvas(dirtyRectangle) post too :) I read it, but lockCanvas() is used by the system fairly extensively and works in those cases. Without having simple easy to

[android-developers] Re: Progress Bar Color

2009-01-22 Thread Torgny
I think it could be possible if you extended res/drawable/ progress_small.xml. Take a look at those inside the git repository. Not sure, but it's an idea. On Dec 3 2008, 4:31 am, Gnanesh Radhakrishnan gnanesh@gmail.com wrote: Hello, I'm using the circular progress bar in the title of my

[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Stoyan Damov
On Fri, Jan 23, 2009 at 1:49 AM, Romain Guy romain...@google.com wrote: Try with a longer sleep. If it still doesn't work, could you come up with a small and simple reproducible case that we can run on our side to see what's going? You can also file a bug at code.google.com/p/android/issues.

[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Stoyan Damov
On Fri, Jan 23, 2009 at 1:57 AM, Dianne Hackborn hack...@android.com wrote: On Thu, Jan 22, 2009 at 2:40 PM, Stoyan Damov stoyan.da...@gmail.com wrote: I wish someone read my post about the surfaceHolder.lockCanvas(dirtyRectangle) post too :) I read it, but lockCanvas() is used by the

[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Stoyan Damov
Well, at least I found that this behavior is not 100% reproducible, because I wrote that sample app which demonstrates the bug, and it works as expected :( My code, and the code in the sample app is pretty much the same, but I guess I'll have to review it a few more times. Thanks Romain - that

[android-developers] Re: Activity.showDialog/dismissDialog BUG

2009-01-22 Thread Dianne Hackborn
On Thu, Jan 22, 2009 at 4:36 PM, Stoyan Damov stoyan.da...@gmail.comwrote: Hang on - my problem is not related to locking the entire surface, but only a part of it, passing a dirty rectangle. Locking the entire surface works, locking a part of it doesn't. I would assume that

[android-developers] Re: How to re-install sign android built-in applications

2009-01-22 Thread Anonymous Anonymous
Hi Romain, How this can be achieved using intent filter? Can you please show an example assuming IM.apk? Thanks in Advance Steve On Thu, Jan 22, 2009 at 1:34 AM, Romain Guy romain...@google.com wrote: Replacing a core application is achieved using intent filters. This is how you can replace

[android-developers] Re: How to re-install sign android built-in applications

2009-01-22 Thread Dianne Hackborn
You just have an application with the same activities etc that support the same actions. Then the system will let the user pick your app when it is appropriate. On Thu, Jan 22, 2009 at 4:55 PM, Anonymous Anonymous firewallbr...@googlemail.com wrote: Hi Romain, How this can be achieved using

[android-developers] Re: P2P Android

2009-01-22 Thread jtaylor
In August this was on the Android Developers Blog. I haven't heard any more on it though. One of our top priorities after the first devices ship is to develop a device-to-device (and possibly device-to-server) RPC mechanism that is fast, reliable, and protective of developers and users alike.

[android-developers] Re: How to re-install sign android built-in applications

2009-01-22 Thread Dianne Hackborn
Anything that requires root access to install an application is in no way how Android is designed to work. First you really need to separate developer restrictions from user restrictions. Whether or not a phone allows root access is ultimately a decision of the manufacturer, but generally for

[android-developers] Re: FloatBuffer.put() bug...

2009-01-22 Thread Patrick
As a standalone app, it might be difficult, since the problem does not seem to occur if we look at content of the buffer through java code. But it does have a problem if openGL tries to access it to render, so to get the bug requires a lot of code around it. To get the bug to repro, in the API

[android-developers] How to get the UTC bias from TimeZone information?

2009-01-22 Thread yukinoba
to dear all Android developers, I need to know the UTC bias of my phone to correct the UTC time information I got from a site. I have read earlier posts and already found the solution to get TimeZone information from the System.currentTimeMillis(); method. However, I need to translate the

[android-developers] Re: Does Android Browser support right menu - open with ?

2009-01-22 Thread Guolong
Thanks you all, guys... In my scenario, the link is just a common HTML page. User could choose to open the link with another application. So copy the link to the clipboard could work. Then user paste the link to the application for input. I just wonder are there some more user-friendly solution

[android-developers] Re: Does Android Browser support right menu - open with ?

2009-01-22 Thread Guolong
thanks, I'll take a try... On Jan 23, 3:28 am, Scynasty tornquis...@gmail.com wrote: there is a way to run a two finger click like the one on macs. if you run an if statement in ontouchevent if (event.getSize .6) { } this will get the size of the touch to the screen. placing two

[android-developers] Re: After the ADT 0.9 update, Eclipse can not create R.java automatically

2009-01-22 Thread tony
I met same issue. On 1月21日, 下午11时12分, moontain chen.worksp...@gmail.com wrote: Hi, I checked out cupcake branch yesterday and made the full build and sdk successfully, and I also built the ADT 0.9 with the command cupcake/development/tools/eclipse/scripts/build_server.sh on another Linux

[android-developers] why Android disable wlan interface when receive EVENT_SUPPLICANT_DISCONNECT

2009-01-22 Thread sky_walker
Hi, From Android source, WifiStateTracker will resetInterface when disconnect with current AP. In resetInterface, disableInterface will be called. It is strange, because when device disconnect from current AP, most cases will rescan APs and continue to other AP for data communication or monitor

[android-developers] String resource issue

2009-01-22 Thread 川何
Hi, All In Android, resources are packaged into each .apk file. Now I'd like separate string resources with other resources - put all string resources into a single file which I can easily replace. Does anybody know about this? Thanks --~--~-~--~~~---~--~~ You

[android-developers] Re: Emit a signal

2009-01-22 Thread simpcl
I think that Nico want to send a signal clicked instead of pressing the button manually. Am I right? If it is, I want to know how to implement that. BRs, simpcl On Jan 22, 2:00 am, Gavin Aiken gavin.ai...@imperial.ac.uk wrote: Hey, Cool, I misunderstood, I think this is what you're looking

[android-developers] Re: Repo Client init problem ubuntu 8.10

2009-01-22 Thread Bismark
Try sudo apt-get install libreadline5-dev instead of lib32readline5-dev Bismark --~--~-~--~~~---~--~~ 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] Using android 1.5 emulator, the sdcard can't be mounted

2009-01-22 Thread tony
Command sequence is: 1.make sdk first, and cd /home/tony/android-sdk_eng.tony_linux-x86/tools/ 2../emulator -image ../platforms/android-1.5/images/system.img - kernel ../platforms/android-1.5/images/kernel-qemu -ramdisk ../ platforms/android-1.5/images/ramdisk.img -data ../platforms/

[android-developers] ACTION_CALL works without permission

2009-01-22 Thread massimocarli
Hi all, I'm makeing some test about Android permission with a very simple application. I'm launching this Intent Uri callUri = Uri.parse(tel://12345678); Intent callIntent = new Intent(Intent.ACTION_CALL,callUri); callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

[android-developers] Porting JMF - Native source code to android based

2009-01-22 Thread MRK
I am creating an Android application which uses the JMF (SIP, RTP, JAIN). So i downloaded the JMF source code for some adhoc change to my application. The basic questions 1. How will it behave the native files - C/C++/header in JMF source files(downloaded)? because android is based on java right

  1   2   >