[android-developers] Grant the root privilege to the application

2012-04-18 Thread Sam
Hi Developers, I have an application which consists of the native part and higher layer. Therefore, it needs to be granted the root privilege to run some native functions. As the article I post before, I added a piece of code taken from Bluez Utils(hidd.c). code if (bind(sk, (struct sockaddr

[android-developers] Chat Application

2012-04-18 Thread Alejandro Alves
Hello, I am doing an application that will allow users have one to one chats. I am wondering if there is an application that I could use for this. Regards -- 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] Drag and drop issue

2012-04-18 Thread vani reddy
Hi friends,, I am doing drag and drop application i am able to drag the view but when i drop the view i am getting the below exception 04-18 12:53:55.545: ERROR/AndroidRuntime(1915): java.lang.IllegalArgumentException: Given view not a child of com.xyz.drag.DragLayer@40f50340 04-18 12:53:55.545:

Re: [android-developers] Drag and drop issue

2012-04-18 Thread asheesh arya
may be you missing some permission in your manifest file. -- 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 unsubscribe from this group, send email to

[android-developers] Re: How to add facebook page in android apps

2012-04-18 Thread Ali Chousein
add facebook page of the client, .if any source code or any reference is there pls share with me. And how much hourly rate are you willing to pay to a competent developer who can do this for you? (Android Developer) Really -- You received this message because you are subscribed to the

[android-developers] kirupathiran Thambiaijah wants to chat

2012-04-18 Thread kirupathiran Thambiaijah
--- kirupathiran Thambiaijah wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit:

[android-developers] kirupathiran Thambiaijah wants to chat

2012-04-18 Thread kirupathiran Thambiaijah
--- kirupathiran Thambiaijah wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit:

Re: [android-developers] Drag and drop issue

2012-04-18 Thread Chandra Sekhar
K fine but still i didnt develop any app that belongs to Drag and Drop but i always follow the Vogella blog so if u need follow this link http://www.vogella.com/articles/AndroidDragAndDrop/article.html On Wed, Apr 18, 2012 at 12:56 PM, vani reddy vani.reddy.bl...@gmail.comwrote: Hi friends,,

Re: [android-developers] Drag and drop issue

2012-04-18 Thread vani reddy
no i have given all permissions On Wed, Apr 18, 2012 at 1:19 PM, asheesh arya asheesharya...@gmail.comwrote: may be you missing some permission in your manifest file. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Unable to open Html file using intent in deafult browser

2012-04-18 Thread Jovish P
In our app we are showing files stored in the sd card. We are unable to open html file which contains space in the name in default broswer. it invokes the default browser and shows following message *The Web page at ontent://com.android.htmlprovider/sdcard/company info.html?test/html could not be

Re: [android-developers] Re: How to install Market on Emulator ?

2012-04-18 Thread Jovish P
Thanks a lot for the info. I will give a try and let you know guys . On Tue, Apr 17, 2012 at 4:29 PM, Mark Murphy mmur...@commonsware.comwrote: On Tue, Apr 17, 2012 at 12:53 AM, Jovish P android.f...@gmail.com wrote: We are using push notification in our application. To test the

[android-developers] Broadcast receiver receive empty extras

2012-04-18 Thread viktor
Hi, I had a simple app that has Service and Application. Service sends broadcasts by Action with extras. Application receive this broadcast and handle some action by key that is in extras. Sometime application receive empty extras, so if I get Intent.getExtras(), the Bundle will be empty; Any

[android-developers] Accessing memory

2012-04-18 Thread Anurag Pratap Singh
Hi I have installed the Android emulator on my PC. And for running more I need to access the memory, something like accessing the gallery, putting contents in gallery, in music and all. Can anyone tell me how to do this and is it possible.? am using android 4.0.3 Thanks in advance -- You

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread ANKUR GOEL
Even i am loading 350 kb image its giving out of memory . I have image in drawable folder and setting the image in java code .:( On Tue, Apr 17, 2012 at 5:08 PM, Jim Graham spooky1...@gmail.com wrote: The question about blending methods resolved itself when I switched to making the bitmaps

[android-developers] Accessing memory

2012-04-18 Thread Anurag Pratap Singh
Hi I have installed the Android emulator on my PC. And for running more I need to access the memory, something like accessing the gallery, putting contents in gallery, in music and all. Can anyone tell me how to do this and is it possible.? am using android 4.0.3 Thanks in advance -- You

[android-developers] set focus not working + show all pins on map

2012-04-18 Thread giles ian
In the below code setfocus is not working. point = new GeoPoint((int)(18.60692*1E6), (int)(73.713276*1E6)); overlayitem = new OverlayItem(point, Me,Me); itemizedOverlayMe.addOverlay(overlayitem); itemizedOverlayMe.setFocus(overlayitem); mapOverlays.add(itemizedOverlayMe); Also, i have to

[android-developers] Service onStartCommand missing intent extras

2012-04-18 Thread viktor
Hi, I had a simple app that has Service and Application. Application starts Service by Action with extras. Service receive Intent with onStartCommand and handle some action by key that is in extras. Sometime Service receives empty extras, so if I get Intent.getExtras(), the Bundle will be

[android-developers] Multi Touch On Gallery Image

2012-04-18 Thread aru padam
Hi all, Any one know about the Multi Touch zooming on android gallery image view. Thanks and Regards Deepesh C -- 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] Accessing file stored on apache from android

2012-04-18 Thread Himanshi Saxena
Hi all, I am working on a project where it is required to access index file containing urls of media clips from android application.? How can this be done.? It is required that the android application (client) checks the index file and starts downloading media segments stored at server.I think we

Re: [android-developers] Accessing file stored on apache from android

2012-04-18 Thread azmat alikhan
Hi Himanshi, you need to make a Httprequest to your server and return list of files in a xml. At the client end you need to parse that xml to get your data. On Wed, Apr 18, 2012 at 4:46 PM, Himanshi Saxena himansh...@gmail.comwrote: Hi all, I am working on a project where it

[android-developers] Re: set focus not working + show all pins on map

2012-04-18 Thread lbendlin
check your code after that. Most likely something else is claiming the focus right after your setFocus. On Wednesday, April 18, 2012 6:38:07 AM UTC-4, giles ian wrote: In the below code setfocus is not working. point = new GeoPoint((int)(18.60692*1E6), (int)(73.713276*1E6)); overlayitem

[android-developers] [Android] : Inflate 'layout-xhdpi' layouts for TV/Monitor screen connected via HDMI with Android Phones

2012-04-18 Thread Ruppin
Hi All, I would like to know if there is any means to control display of newly attached Monitor/TV screens connected to Android phone (Such as Motorola Droid X) via HDMI cable. I know android as such displays the contents of Phone on to the connected screens via HDMI. But my idea

[android-developers] Re: Service onStartCommand missing intent extras

2012-04-18 Thread viktor
I had like this: App starts the service: data: Bundle[{requestId=24, requestUrl=http://www.we.we}] Service receives: data: Bundle[{}] On 18 Кві, 13:41, viktor victor.scherb...@gmail.com wrote: Hi, I had a simple app that has Service and Application. Application starts Service by Action

Re: [android-developers] how to integrate broadcastreceiver functionality in service class

2012-04-18 Thread asheesh arya
Actually i am building spy application in which i need to run these broadcast recevier continously this is the building block of my application. can you suggest me how i acheive my goal to start my application continously after the device bootup. please provid eme some links or code. -- You

[android-developers] Re: SlickUSB2Serial usage

2012-04-18 Thread RLScott
On Apr 10, 11:10 am, Neurobe bruce.ke...@gmail.com wrote: Anyone out there manage to get this library ro work half-way decent?? [I want my money back.] Actually I did get it working quite well. There were a few things I had to figure out on my own. In particular: The SlickUSB2Serial example

[android-developers] Re: How can I inject an event happened at one co-ordinate into another co-ordinate

2012-04-18 Thread lbendlin
if you talk about a touch event then simply do the remapping in the appropriate onTouch routine. On Friday, April 13, 2012 7:33:04 AM UTC-4, androider wrote: I want to simulate an event happened at one coordinate(x,y) at another coordinate(x1,y1) in the same activity or if possible in

[android-developers] how to use android library project jar and resource?

2012-04-18 Thread sha m
Hi folks, I have jar and resource folder of an android library project. I wanted to refer the resources of the library project in my project from eclipse. I do not want to refer the library project source code in the application project since android has provided an option to export the library

[android-developers] Show 3D object on top of camera view (augmented reality)

2012-04-18 Thread santy
I need to show a 3D object (an arrow) on top of camera view, in order to see at the same time the camera view and the object. I`ve been looking for this for weeks, but I haven´t found anything that works fine. Please, if someone knows how to do it, please explain it to me (sample code would be

[android-developers] UI Guidelines? What is the correct place for checkboxes and radio boxes?

2012-04-18 Thread Rainer
I am confused by the various options of where checkboxes and radio buttons appear. Android default widgets will show radio and checkboxes on the left, however on a PreferenceActivity checkboxes and radio buttons will be on the RIGHT. Also Google Music shows a checkbox in the options menu on

Re: [android-developers] how to integrate broadcastreceiver functionality in service class

2012-04-18 Thread David Olsson
Read up on the broadcast receivers and what they to, how they function etc. And please, format your questions so they are readable. To start a service at boot, check out: http://lmgtfy.com/?q=android+service+start+at+boot On Wed, Apr 18, 2012 at 1:49 PM, asheesh arya

Re: [android-developers] Re: PendingIntent getService

2012-04-18 Thread Mark Murphy
On Tue, Apr 17, 2012 at 10:13 PM, ndiiie90 rnd...@gmail.com wrote: so did you mean that I don't need to stop it because you said that which automatically shuts down when it is done processing the delivered command ? IntentService automatically stops itself once onHandleIntent() ends (assuming

Re: [android-developers] UI Guidelines? What is the correct place for checkboxes and radio boxes?

2012-04-18 Thread Mark Murphy
On Wed, Apr 18, 2012 at 8:24 AM, Rainer rbur...@gmail.com wrote: I am confused by the various options of where checkboxes and radio buttons appear. Android default widgets will show radio and checkboxes on the left, however on a PreferenceActivity checkboxes and radio buttons will be on the

Re: [android-developers] how to use android library project jar and resource?

2012-04-18 Thread Mark Murphy
On Wed, Apr 18, 2012 at 8:21 AM, sha m temptes...@gmail.com wrote: I do not want to refer the library project source code in the application project since android has provided an option to export the library jar and res seperately from r15. This is not supported for redistribution, AFAIK. That

[android-developers] Re: File IO Erros

2012-04-18 Thread Kiran
I should add that the errors that I've posted are appearing on the server side, not the client side. I've attached my Webserver and WebserverHandler code. On Tuesday, April 17, 2012 11:56:41 PM UTC-4, Kiran wrote: Hi All, I was wondering if you had any thoughts to some errors I am getting

Re: [android-developers] Unable to open Html file using intent in deafult browser

2012-04-18 Thread Mark Murphy
Hmmm... looks like Uri.fromFile() is not converting the space to %20 or +. Try doing that yourself and see if it helps. On Wed, Apr 18, 2012 at 4:13 AM, Jovish P android.f...@gmail.com wrote: In our app we are showing files stored in the sd card. We are unable to open html file which contains

[android-developers] Android isn't able to manage a PDF, this is bad.

2012-04-18 Thread sblantipodi
Since Android isn't able to manage a pdf inside the app I'm using google docs to translate some pdf into html and than show it inside a webview. The problem is that sometimes I need to manage local files and google docs wants URL instead of files. How can I pass local files to google docs in

[android-developers] Checkbox click fires OnlistItemclick in Custom listview android

2012-04-18 Thread vani reddy
HI, In my custom listview i have checkbox and 3 textviews, The problem is when i click on checkbox the onlistItem click is fired which i dont want, i want checkbox state to change when i click on checkbox and and when i click outside the checkbox i want the onlistItemclick to be fired.How to

[android-developers] Switch Camera in Android

2012-04-18 Thread perumal316
Hi All, I am following the sample available at: http://developer.android.com/guide/topics/media/camera.html for developing an camera application. This app shows a camera preview and a button and when user clicks on the button picture is taken and saved and camera preview is shown again. But

Re: [android-developers] UI Guidelines? What is the correct place for checkboxes and radio boxes?

2012-04-18 Thread Rainer
However, you are welcome to have an empty caption on a CheckBox and place it wherever you want, or even roll your own CompoundButton that has no caption. Well my point is that there doesn't seem to be a consistent recommendation on where stuff should be. Sometimes its on the left, sometimes

Re: [android-developers] How to auto start capturing of picture using native camera?

2012-04-18 Thread perumal316
Hi TreKing, Yes, thanks. Now I am using my own code using sample from: http://developer.android.com/guide/topics/media/camera.html, now the picture is taken upon the click of a button. Not sure how to automate this. Any idea how this can be done? I tried to just remove the button, but the

Re: [android-developers] how to integrate broadcastreceiver functionality in service class

2012-04-18 Thread Kristopher Micinski
You understand that basically ..., there are thousands of people ensuring your app is impossible to write... correct? Kris On Wed, Apr 18, 2012 at 7:49 AM, asheesh arya asheesharya...@gmail.com wrote: Actually i am building spy application in which i need to run these broadcast recevier

Re: [android-developers] UI Guidelines? What is the correct place for checkboxes and radio boxes?

2012-04-18 Thread Mark Murphy
On Wed, Apr 18, 2012 at 9:34 AM, Rainer rbur...@gmail.com wrote: Well my point is that there doesn't seem to be a consistent recommendation on where stuff should be. There is no recommendation on where checkboxes should reside, at least from my review of the Android Design guidelines. Perhaps I

Re: [android-developers] how to integrate broadcastreceiver functionality in service class

2012-04-18 Thread TreKing
On Wed, Apr 18, 2012 at 6:49 AM, asheesh arya asheesharya...@gmail.comwrote: Actually i am building spy application in which i need to run these broadcast recevier continously Aside from the hilarity of building spy application, I repeat: a broadcast receiver is not something that is run

Re: [android-developers] How to auto start capturing of picture using native camera?

2012-04-18 Thread TreKing
Replying back to the group. Please reply to the group and not to me directly. On Wed, Apr 18, 2012 at 8:38 AM, perumal316 perumal...@gmail.com wrote: Hi TreKing, Yes, thanks. Now I am using my own code using sample from: http://developer.android.com/guide/topics/media/camera.html, now the

Re: [android-developers] Re: File IO Erros

2012-04-18 Thread Daniel Drozdzewski
It is not really an Android SDK question. You did not post the Client code that receives the file. Your stacktrace indicates that the connection got closed (maybe by the client), while you are still trying to write to it. There are HTTP Headers for connection management. Do you specify these?

Re: [android-developers] UI Guidelines? What is the correct place for checkboxes and radio boxes?

2012-04-18 Thread Rainer
No more weird than are Web sites or Windows apps, where checkboxes also roam freely. You can always find worse examples :) However, I would wish for android design specs to be more clear and enforce a uniform experience for such elements. The UI framework should then assist in streamlining

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Srikanth Kotagiri
Hi, I faced the same problem of finding external storage devices connected to the user. My workaround was, I noticed that the LOST.DIR gets created for all storage devices that are connected to the android device. So I am searching for the locations for LOST.DIR in the filesystem

Re: [android-developers] Broadcast receiver receive empty extras

2012-04-18 Thread Justin Anderson
What action are you receiving? Is it your own custom action or one defined by Android? If it is a custom action then you would need to figure out why you are sending the broadcast without extras. If it is defined by Android, then it may be some other application that sends the broadcast, in

[android-developers] Re: Is frame extraction possible?

2012-04-18 Thread ScheffsBlend
It is indeed possible. You'll want to register a callback using setPreviewCallback http://developer.android.com/reference/android/hardware/Camera.html#setPreviewCallback(android.hardware.Camera.PreviewCallback). Check out

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Nadeem Hasan
That hasn't stopped many devices from making the removable storage their primary one. But if this is by design, I'd like to link to the design philosophy document. Maybe I can send that to the users. I can't find anything official, though. If the other devices are going to be unwriteable

Re: [android-developers] Show 3D object on top of camera view (augmented reality)

2012-04-18 Thread TreKing
On Wed, Apr 18, 2012 at 7:23 AM, santy santiago.gonzalez.iz...@gmail.comwrote: I haven´t found anything that works fine. Please, if someone knows how to do it, please explain it to me (sample code would be perfect) What have you tried? What doesn't work? You need to be a tad bit more

[android-developers] Re: Broadcast receiver receive empty extras

2012-04-18 Thread viktor
Sorry, it is problem with Service. this one: http://groups.google.com/group/android-developers/browse_thread/thread/f5c1f6af2914cde6 On 18 Кві, 18:14, Justin Anderson magouyaw...@gmail.com wrote: What action are you receiving?  Is it your own custom action or one defined by Android?  If it is

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Nadeem Hasan
On Tuesday, April 17, 2012 7:44:34 PM UTC-4, Kostya Vasilyev wrote: It also hasn't prevented from existing a few hundred million devices with removable, writable, user controllable and understandable, officially supported external microsd memory cards. Yes, I'm talking about phones

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Kostya Vasilyev
On 04/18/2012 07:54 PM, Nadeem Hasan wrote: On Tuesday, April 17, 2012 7:44:34 PM UTC-4, Kostya Vasilyev wrote: It also hasn't prevented from existing a few hundred million devices with removable, writable, user controllable and understandable, officially supported external

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Nadeem Hasan
Environment.getExternalStorageDirectory() returns the non-removable external memory location. But I see what you mean, on devices with only removable external memory, it could return that location. However, the point remains that the framework only considers one external storage as general

[android-developers] Re: Broadcast receiver receive empty extras

2012-04-18 Thread viktor
Application: public void sendRequest(int type, Bundle data) { Intent i = new Intent(getLocalServiceAction()); data.putInt(LocalApiService.INTENT_NAME_REQUEST_ID, type); i.putExtras(data); ALLogger.log(Log.DEBUG, TAG, sendRequest,

[android-developers] what is faster? surfaceview or imageview?

2012-04-18 Thread guich
Hi, I need to do frequent updates of a dynamically changed bitmap. What is faster? SurfaceView/SurfaceHolder.lockCanvas or ImageView/ setImageBitmap? thanks guich -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Nathan
On Wednesday, April 18, 2012 8:46:33 AM UTC-7, Nadeem Hasan wrote: That hasn't stopped many devices from making the removable storage their primary one. But if this is by design, I'd like to link to the design philosophy document. Maybe I can send that to the users. I can't find anything

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread digi owl
Seems to me like what has happened is that manufacturers have cooped a feature that was supposed to be for removable storage to support larger non-removable capacity (a simple way to upsell). In the process, we have found ourselves with partitioned internal storage (to allow USB file transfer) and

Re: [android-developers] Re: Broadcast receiver receive empty extras

2012-04-18 Thread Justin Anderson
I don't really see anything wrong there... Have you tried this method? http://developer.android.com/reference/android/content/Intent.html#putExtra%28java.lang.String,%20android.os.Bundle%29 Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Apr 18,

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Kostya Vasilyev
On 04/18/2012 08:41 PM, Nadeem Hasan wrote: Environment.getExternalStorageDirectory() returns the non-removable external memory location. On tablets that have both internal external and external external storage it does. On tablets and devices that only have internal external storage it

[android-developers] Re: Android DRM Sample Tutorials.

2012-04-18 Thread AnimeshKBhadra
Hi, I Had asked this question long time back, also did google but no specific example codes. Please help or provide some pointers. Regards, Animesh K. Bhadra. On Monday 02 April 2012 08:45 PM, AnimeshKBhadra wrote: Hi All, I wanted to make a simple DRM application just to learn how Android

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Nathan
On Tuesday, April 17, 2012 4:19:19 PM UTC-7, Dianne Hackborn wrote: On Tue, Apr 17, 2012 at 3:09 PM, Nathan wrote: On Monday, April 16, 2012 7:07:33 PM UTC-7, Dianne Hackborn wrote: On Sun, Apr 15, 2012 at 8:56 AM, digi owl wrote: looking at the 3.2 platform API changes, it appears that

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Nadeem Hasan
On Wednesday, April 18, 2012 12:55:00 PM UTC-4, digi owl wrote: Seems to me like what has happened is that manufacturers have cooped a feature that was supposed to be for removable storage to support larger non-removable capacity (a simple way to upsell). In the process, we have found

[android-developers] How do I validate in server side(authenticaton)

2012-04-18 Thread vamshi ch
hi, i've login credentials like username and password I need to validate by server with json parsing and http request and response so If u know send me sample code..thanks in advance... -- -- You received this message because you are subscribed to the Google Groups Android Developers group.

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Kostya Vasilyev
On 04/18/2012 09:35 PM, Nadeem Hasan wrote: On Wednesday, April 18, 2012 12:55:00 PM UTC-4, digi owl wrote: Seems to me like what has happened is that manufacturers have cooped a feature that was supposed to be for removable storage to support larger non-removable capacity (a

Re: [android-developers] How do I validate in server side(authenticaton)

2012-04-18 Thread TreKing
On Wed, Apr 18, 2012 at 12:56 PM, vamshi ch vamshi0...@gmail.com wrote: I need to validate by server with json parsing and http request and response That has zero to do with Android App development.

[android-developers] Re: Broadcast receiver receive empty extras

2012-04-18 Thread viktor
Seems works with i.putExtra(LocalApiService.INTENT_EXTRA, data), thanks. What is the problem was? On 18 Кві, 20:03, Justin Anderson magouyaw...@gmail.com wrote: I don't really see anything wrong there...  Have you tried this

[android-developers] how to get the average speed with GPS android

2012-04-18 Thread putzz12
hello,im doing a project and i need to know how to get the avg of the velocity when im running. for example if i run in the park or something i want to know the avg speed. if someone can help me will be soo good. thx. -- You received this message because you are subscribed to the Google

Re: [android-developers] Re: Broadcast receiver receive empty extras

2012-04-18 Thread TreKing
On Wed, Apr 18, 2012 at 1:24 PM, viktor victor.scherb...@gmail.com wrote: Seems works with i.putExtra(LocalApiService.INTENT_EXTRA, data), thanks. What is the problem was? Originally, you were putting the int in the bundle, then the bundle in the intent. On receipt, you were trying to get

[android-developers] how to disable ringtone of incoming sms

2012-04-18 Thread Amit Mangal
Hi developers, i am creating small app which will mute the incoming sms notification tone. please tell me how to mute incoming sms notification tone. thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

Re: [android-developers] how to get the average speed with GPS android

2012-04-18 Thread TreKing
On Wed, Apr 18, 2012 at 1:30 PM, putzz12 renatoespinoza...@gmail.comwrote: hello,im doing a project and i need to know how to get the avg of the velocity when im running. for example if i run in the park or something i want to know the avg speed. In all seriousness, do you know how to get an

Re: [android-developers] how to get the average speed with GPS android

2012-04-18 Thread James Black
Just get where you start, at time zero, and then you could just get the current location every several seconds. Determine the distance, there is a call for that, and speed is distance/time. You can just add up the distance to get an accurate total of how far the phone has gone. On Apr 18, 2012

[android-developers] Re: Broadcast receiver receive empty extras

2012-04-18 Thread viktor
Yes, I agree with but sometimes an Extras comes with Bundle[{}]; You also can take a look to this thread: http://groups.google.com/group/android-developers/browse_thread/threa... On 18 Кві, 21:36, TreKing treking...@gmail.com wrote: On Wed, Apr 18, 2012 at 1:24 PM, viktor

Re: [android-developers] Re: Broadcast receiver receive empty extras

2012-04-18 Thread Justin Anderson
Originally, you were putting the int in the bundle, then the bundle in the intent. On receipt, you were trying to get the data from the intent. Wow... can't believe I missed that. Woops! Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Apr 18,

Re: [android-developers] Re: Broadcast receiver receive empty extras

2012-04-18 Thread TreKing
On Wed, Apr 18, 2012 at 1:51 PM, viktor victor.scherb...@gmail.com wrote: Yes, I agree with but sometimes an Extras comes with Bundle[{}]; I don't know what that means. You also can take a look to this thread: http://groups.google.com/group/android-developers/browse_thread/threa... Your

Re: [android-developers] Re: Write storage on Samsung Galaxy Tab 7.7

2012-04-18 Thread Nadeem Hasan
Thanks. Very interesting indeed. I see that there is a long history with this. Anyway I see a direct contradiction is Dianne's responses: *The current CDD requires that the API return the directory of the primary external storage, that is the one you can count on always being there, that is

[android-developers] Re: Unable to open Html file using intent in deafult browser

2012-04-18 Thread Mike Wolfson
Jovish, you need to ask these questions elsewhere (like StackOverflow or the Android Developers list). I actually didn't even read your issue - because this list is for Discussion, not Development. You are not likely to get your answers here. -M On Wednesday, April 18, 2012 1:13:11 AM UTC-7,

[android-developers] Re: Unable to open Html file using intent in deafult browser

2012-04-18 Thread Nadeem Hasan
Mike, I think you are on the wrong list :) -- 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 unsubscribe from this group, send email to

[android-developers] Re: Unable to open Html file using intent in deafult browser

2012-04-18 Thread Nadeem Hasan
*The Web page at ontent://com.android.htmlprovider/sdcard/company info.html?test/html could not be loaded as: Th request file was not found.* The URL looks malformed to me. The scheme part is ontent? Or is this a copy/paste issue? -- You received this message because you are subscribed to

[android-developers] Re: Unable to open Html file using intent in deafult browser

2012-04-18 Thread Nadeem Hasan
Also, see this: http://android.stackexchange.com/questions/4775/how-can-i-open-an-html-file-i-have-copied-from-pc-to-sd-card-of-phone -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread JackN
350 kb jpg? in memory, that could be huge. perhaps even 20 or more mbs On Wednesday, April 18, 2012 3:29:46 AM UTC-7, ANKUR1486 wrote: Even i am loading 350 kb image its giving out of memory . I have image in drawable folder and setting the image in java code .:( On Tue, Apr 17, 2012 at

Re: [android-developers] Re: Socket sharing between activities

2012-04-18 Thread Federico Paolinelli
Thanks again for the clarifications. Federico On Wed, Apr 18, 2012 at 1:26 AM, Dianne Hackborn hack...@android.com wrote: On Tue, Apr 17, 2012 at 12:03 AM, Federico Paolinelli fedep...@gmail.com wrote: Not using a service will make the connection available to be killed if the

Re: [android-developers] Re: Unable to open Html file using intent in deafult browser

2012-04-18 Thread Justin Anderson
Jovish, you need to ask these questions elsewhere (like StackOverflow or the Android Developers list). According to http://developer.android.com/resources/community-groups.html, this list is for ANYTHING related to Android. *The water cooler of Android discussion. You can discuss just about

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Jim Graham
On Wed, Apr 18, 2012 at 12:50:41PM -0700, JackN wrote: 350 kB jpg? in memory, that could be huge. perhaps even 20 or more MB [corrected units in the above ... I've never actually SEEN anything that can store data in millibits, nor have I seen file sizes meansured in bits] I doubt that. I'm

Re: [android-developers] Re: Unable to open Html file using intent in deafult browser

2012-04-18 Thread Kostya Vasilyev
Getting back to the original issue: it's an Android bug. Even if the space is encoded properly (as %20) it may not open in the built-in HtmlViewer application on some devices. This is from my own little app's logcat output: 04-19 00:38:53.939 I/MimeUtil(23624): Intent: Intent {

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Kostya Vasilyev
On 04/19/2012 12:39 AM, Jim Graham wrote: I doubt that. I'm working with full-sized and near-full-sized images (3 MP//2048x1536 or 5 MP//2592x1944) and those are around 750 kB and 1.1 MB, respectively (give or take a few hundred kB). I can't remember which I was working with at the time, but

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread JackN
Depends on your depth. For 3 bytes per color (24 bit color), a 2592x1944 is 15 MEGABYTES. jpeg aint rle On Wednesday, April 18, 2012 1:39:39 PM UTC-7, Spooky wrote: On Wed, Apr 18, 2012 at 12:50:41PM -0700, JackN wrote: 350 kB jpg? in memory, that could be huge. perhaps even 20 or

[android-developers] Re: Anti-Aliasing Lines in openGL

2012-04-18 Thread ivan
Romain, can you please briefly elaborate on the technique of using a slightly more complicated mesh with a texture map? On Apr 12, 2:19 pm, ivan istas...@gmail.com wrote: Romain, can you please briefly elaborate on the technique of using a slightly more complicated mesh with a texture map? On

[android-developers] Free JavaScript, Dojo, jQuery, Ajax, Comet, DWR, JSON daily webinar series

2012-04-18 Thread sangshin
Free JavaScript, Dojo, jQuery, Ajax, Comet, DWR, JSON daily webinar series starts from April 16th. https://www3.gotomeeting.com/register/113100910 18 one-hour sessions during the 3 week period (April 16th - May 5th, 2012) 9PM-10PM EDT New York time, 5:30AM-6:30AM (next day) India Time Single

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Jim Graham
On Thu, Apr 19, 2012 at 01:55:18AM +0400, Kostya Vasilyev wrote: On 04/19/2012 12:39 AM, Jim Graham wrote: I doubt that. I'm working with full-sized and near-full-sized images (3 MP//2048x1536 or 5 MP//2592x1944) and those are around 750 kB and 1.1 MB, respectively (give or take a few hundred

[android-developers] Browser in emulator with proxy setting just exits when url is entered

2012-04-18 Thread David Karr
Today I installed the SDK and created a Phone_IceCreamSandwich AVD. I started it up and ran the browser in the emulator. I noticed that it wasn't completing the request for the home page. I'm inside a corporate firewall, so that's not surprising. I then restarted the AVD with a command-line

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Kostya Vasilyev
I'm not saying you dreamed those up, sorry, no offence meant. But since we seem to be discussing memory usage, not disk usage, the compressed size is irrelevant. And 5 megapixels at RGB_ is 32 bits per pixel or 20 megabytes in RAM, if stored as an uncompressed pixel array. -- K On

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Jim Graham
On Wed, Apr 18, 2012 at 03:02:41PM -0700, JackN wrote: Depends on your depth. For 3 bytes per color (24 bit color), a 2592x1944 is 15 MEGABYTES. Again ... READ THE FOLLOWING (with corrected units): On Wed, Apr 18, 2012 at 12:50:41PM -0700, JackN wrote: 350 kB jpg? in memory, that

[android-developers] Re: Will the browser in the ADT emulator use my desktop network connection for browsing sites?

2012-04-18 Thread David Karr
On Tuesday, April 17, 2012 9:31:47 PM UTC-7, Gene wrote: Yes. The emulator uses the host NIC as though it's a WiFi service provider. All the apps respond accordingly. Not sure if this will be important for you, but the emulated settings for Proxy and DNS for that emulated ISP all

[android-developers] Can RenderScript be called from native library?

2012-04-18 Thread extrapedestrian
This might be bad idea, but I was wandering if I can use RenderScript from native code? I have a library in C, and I want to draw some text from there using rsgDrawText(). Can I instantiate RSTextureViewhttp://developer.android.com/reference/android/renderscript/RSTextureView.html in Java

[android-developers] Re: Need example on how to use MonkeyRunner from java

2012-04-18 Thread gaurav
Have you found any solution, I am still looking for that On Monday, June 27, 2011 9:29:28 PM UTC-7, Karthikeyan R wrote: Hi, I require an example on how to use MonkeyRunner from java. I tried using it by extending MonkeyRunner.java but was not successful. Any help regarding this will

[android-developers] Re: Need example on how to use MonkeyRunner from java

2012-04-18 Thread gaurav
Please let me know, if you have found the way. -- 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 unsubscribe from this group, send email to

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Streets Of Boston
The size of the JPG/PNG file has almost nothing to do with the size of the corresponding image in memory. An RGB_565 takes 2 bytes per pixel (5+6+5=16bits=2bytes). An ARGB_ takes 4 bytes per pixel. This means a 5MPixel image will take 5M*2 = 10MByte in RAM when using RGB_565 or 5M*4=20MByte

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Jim Graham
On Thu, Apr 19, 2012 at 02:19:54AM +0400, Kostya Vasilyev wrote: I'm not saying you dreamed those up, sorry, no offence meant. But since we seem to be discussing memory usage, not disk usage, the compressed size is irrelevant. Thank you. My point exactly. And 5 megapixels at RGB_ is

  1   2   >