[android-developers] Query about SlideShow Implementation.

2010-10-27 Thread BlueDares
HI All, I'm want to implement Dynamic SlideShow of Images similar to Gallery. On Drag, i Should be able to change to next images. I'm looking into Gallary1.java class from APIDemo Example, i think there is no sufficient information in that, so is there any better code example which could help

[android-developers] Re: How to pass objects around activities using A HashMap of WeakReferences to Objects?

2010-10-27 Thread Doug
Anil didn't say WeakHashMap, he said HashMap of WeakReferences. I think the idea is that if you've just placed something in a (shared) HashMap with the value being a WeakReference to the object of interest, then immediately launch an activity to grab that value by id, the value you placed in the

[android-developers] Re: Android Market Licensing intermittently fails

2010-10-27 Thread JonFHancock
I had that problem quite often at first. I fixed it by modifying the static variables in the lvl code to cache the credentials more than one minute. The code is well documented. Check it out. On Oct 26, 2:28 pm, Arron arro...@gmail.com wrote: I included the Android Market licensing (LVL) in my

Re: [android-developers] Re: GK:How to give conditions in android XMLs

2010-10-27 Thread Tauno Talimaa
Just a small correction to this. If you just specify the MNC, then the strings will be used for Verizon only in the US. In other countries they would be used for other operators who have the same MNC value (for example strings in res/values-mnc005/strings.xml would be displayed in Estonia for the

[android-developers] Re: How to take a picture using the Camera App and have it NOT appear in the Gallery?

2010-10-27 Thread nakvic
The problem might be more complicated. This is what experienced with HTC Sence camera. Whatever destination you suggest with intent, an image is stored twice: one in media folder where all the photos are stored, and second in suggested destination, i.e. where you want to store it. I'm not sure

[android-developers] audio buffer problem in cupcake

2010-10-27 Thread B U J J I
hi all, i have ported gstreamer to cupcake and when i am playing an mp3 file i am getting breaks in audio. and my logact is like this W/AudioFlinger( 25): write blocked for 48 msecs W/AudioTrack( 25): obtainBuffer timed out (is the CPU pegged?) user=0001c100, server=0001c000 W/AudioTrack( 25):

[android-developers] Re: Application still Running After Exit

2010-10-27 Thread mort
I would have to strongly disagree with this first statement. Lots and lots of very popular Windows applications do NOT provide any indication of background activity. True, but I was more relating to the usual user experience. For most Windows applications, one assumes they're running as long

Re: [android-developers] Question regarding Message object

2010-10-27 Thread Dianne Hackborn
On Tue, Oct 26, 2010 at 9:25 PM, Sohan badaya sohan.bad...@gmail.comwrote: String name = null; switch (msg.what) { case 1: name= (String) msg.obj; --- } so

Re: [android-developers] Re: Application still Running After Exit

2010-10-27 Thread Mark Murphy
On Wed, Oct 27, 2010 at 3:34 AM, mort m...@sto-helit.de wrote: - Ready = waiting for AlarmManager/C2DM events (maybe with an alarm clock as status icon?) There should be no code running at this point; hence, IMHO, this status is pointless and confusing. There could even be an unified stop

[android-developers] Re: How to take a picture using the Camera App and have it NOT appear in the Gallery?

2010-10-27 Thread nakvic
I've just checked it out again on htc with sence and in emulator. The following code (it is just a part ofthe code, might not be working, but give an idea) works fine in emulator storing the file test.jpg in SD card root, but with HTC Sense I get one /sdcard/ test.jpg and one in

[android-developers] Re: Gallery Control Fling operation

2010-10-27 Thread Ganapathy.C
Did you find any thing... -- 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+unsubscr...@googlegroups.com

[android-developers] How to Disable few items in list view.

2010-10-27 Thread Mutturaj
Hi All, I want to disable few items in List View and i am using Simple Adapter to do that. I am not getting how to disable the items. Can any one help me to come out of this??? Regards, Ajj -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: send events from Android device to PC

2010-10-27 Thread Miguel Pellón
Thanks for the suggestion. I have check the android-notifier, but I would need to do it via USB, and apparently this is not yet implemented :( On Oct 15, 8:13 pm, Lee Fisher blib...@gmail.com wrote:   [...] Does anyone   know about a (easy) way of messaging between android device and PC? This

[android-developers] trying to open new image on clicking a image button

2010-10-27 Thread Alok Upadhyay
hii, can anybody please guide me how to write the code for opening the new image after clicking the imagebutton in android. I have tried something like this: package com.example.imageButton; import android.app.Activity; import android.os.Bundle; import android.view.View; import

[android-developers] Re: Application still Running After Exit

2010-10-27 Thread mort
On 27 Okt., 09:42, Mark Murphy mmur...@commonsware.com wrote: - Ready = waiting for AlarmManager/C2DM events (maybe with an alarm clock as status icon?) There should be no code running at this point; hence, IMHO, this status is pointless and confusing. I don't think so. From a user's point

Re: [android-developers] Re: GK:How to give conditions in android XMLs

2010-10-27 Thread Ganesh Kumar R - .
Hi ., How can i do this XSL (xsl:when/ xsl:otherwise/) in android string.xml ? Any file or import is required to this da ? Its showing error for me .., tnx, ganesh r On Wed, Oct 27, 2010 at 12:15 PM, Bob Kerns r...@acm.org wrote: Yes, and XSLT can be easily invoked from an ant script. As

[android-developers] Rounded RelativeLayout

2010-10-27 Thread Ajmer Singh
Hi All I want a RelativeLayout to have a rounded corner just like we have it in the Iphone.Please let me know how can we do this in Android. -- Thanks and Regards Ajmer Singh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Show a bubble when tap on marker

2010-10-27 Thread Ferro Francesco
Hello everybody, I was wondering how can I display a bubble (a bubble like when you use google map and you click on a marker there is that bubble that appear with a picture ans some informations) when I tap on one of my Marker that are on my Android google map ? For now I just managed to show a

[android-developers] Can an image be embedded in an email body?

2010-10-27 Thread Zarah Dominguez
Hi guys, Hope you can help me with my question. I am trying to embed an image in an email body. I am trying to use the ImageGetter to retrieve the bitmap, and send my Intent like this: Intent intent = new Intent(Intent.ACTION_SEND); intent.setType(text/html);

Re: [android-developers] Can an image be embedded in an email body?

2010-10-27 Thread Kumar Bibek
I suspect if you the gmail app has been designed to do so. Your approach is correct, but it all depends on how the GMail app is designed. On Wed, Oct 27, 2010 at 3:06 PM, Zarah Dominguez zarahj...@gmail.comwrote: Hi guys, Hope you can help me with my question. I am trying to embed an image

[android-developers] how to change the behavior of back button

2010-10-27 Thread RKJ (Android developer)
Hi, i want to change the behavior of back button, I have 3 activity, activity1, activity2, and activity3 another activity, activity4 is a login activity start -activity1-clickActivity2-clickactivity3 on activity2 i'm using @Override public void onBackPressed ()

[android-developers] Re: Can an image be embedded in an email body?

2010-10-27 Thread Zarah Dominguez
Hi Kumar, Thanks for your response. I'm having misgivings about the GMail app. First of all, it doesn't even recognize the market:// URI, what's up with that? Anyway, do you have any suggestions on how can I achieve what I want? As much as possible I want the image to be embedded/inline instead

Re: [android-developers] Re: Can an image be embedded in an email body?

2010-10-27 Thread Kumar Bibek
The Gmail app, or any other email app doesn't have a published set of parameters that you can use to achieve this. Had it been your app, then I know how to do it. But, with the Gmail app, I have no clue. On Wed, Oct 27, 2010 at 3:28 PM, Zarah Dominguez zarahj...@gmail.comwrote: Hi Kumar,

[android-developers] Resource not found

2010-10-27 Thread Surfer
Hi Hi, i have an app that runs on some 1.5 devices and is preloaded. I have now created an update for my app. I have just tested upgrade and it has an issue. I'd like to mention that my upgraded version has more string/drawable resources than the old one. What happens is when i get to the

[android-developers] Re: Widget Configure Activity Issue - ANRs on device, OK in debugger

2010-10-27 Thread Alex
Ah, I didn't know about that file (as a long time Microsoft dev, I'm new to Android/Java/Linux). It shows that it is my update service that is ANR, not the Configure Activity. I still don't understand why it works when the debugger is attached, but it gives me a new line of enquiry. Thanks. On

[android-developers] Re: Can an image be embedded in an email body?

2010-10-27 Thread Zarah Dominguez
Uh-oh, that sounds ominous. Just out of curiosity, how would I do it if I have my own app? As for the GMail App alternative, is there a way to send the image an attachment without first having to save it in a cache or the SD card? Sorry for so many questions. Best regards, Zarah. On Oct

Re: [android-developers] Android phones

2010-10-27 Thread Marcin Orlowski
On 27 October 2010 06:25, kypriakos demet...@ece.neu.edu wrote: Do most of the Android developers on this list use their own phone for testing? Or there are ways to obtain Android phones that are unlocked and require no contract? Any advice on that? There's no problem in getting I believe any

[android-developers] Image loading from remote problem

2010-10-27 Thread umakantpatil
I have HTML text, I need to show it in textview. I did it. There are some images in it. I also made ImageGetter which loads image from remote server and displays it. But the issue is now its very slow. I know i can load it async. But i haven't got a single example or help for this. Below is the

[android-developers] Re: Can an image be embedded in an email body?

2010-10-27 Thread Zarah Dominguez
After fiddling around for many hours, I tried this approach: - Download the image - Byte64-encode the downloaded bitmap - Use the resulting string as the image source String thumbData = Base64.encodeBytes(data); String thumb = data:image/jpeg;base64, + thumbData; (Base64 is an open-source

Re: [android-developers] how to change the behavior of back button

2010-10-27 Thread Vinay Julme
Why don't u make activity4 as a MAIN activity. Or are you trying to say something different? On Wed, Oct 27, 2010 at 3:27 PM, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi, i want to change the behavior of back button, I have 3 activity, activity1, activity2, and activity3

Re: [android-developers] Image loading from remote problem

2010-10-27 Thread Kumar Bibek
Do the fetching image part in a thread. That will solve your problem. On Wed, Oct 27, 2010 at 4:25 PM, umakantpatil umakantpat...@gmail.comwrote: I have HTML text, I need to show it in textview. I did it. There are some images in it. I also made ImageGetter which loads image from remote

Re: [android-developers] Re: Widget Configure Activity Issue - ANRs on device, OK in debugger

2010-10-27 Thread Kostya Vasilyev
27.10.2010 14:21, Alex пишет: Ah, I didn't know about that file (as a long time Microsoft dev, I'm new to Android/Java/Linux). It shows that it is my update service that is ANR, not the Configure Activity. I still don't understand why it works when the debugger is attached, but it gives me a

[android-developers] Re: Android phones

2010-10-27 Thread James Elsey
Well in the UK at least you can buy prepaid Android 2.2 phones for £99, so technically you could just buy that and use for development and not be tied into any contracts I think the handset is the San Francisco on Orange - Regards www.JamesElsey.co.uk On

[android-developers] Testing the speed and quality of service of a connection

2010-10-27 Thread Emre A. Yavuz
Dear all, I am looking for an open source app or code snippet to measure the speed (in both directions) and quality of service (delay, jitter and packet loss; probably via ping) of a connection for academic purposes. Is anybody aware of such apps, open source projects or code snippets ?

[android-developers] Re: Problem with OpenGL ES application,please help

2010-10-27 Thread gambiting
Ok.that's a start.could you tell me what should I do to build the cubes in one mesh? I have no idea how to do it, I'm not an OpenGL pro :P If you have any tutorials describing the process, I would be very grateful ;-) On Oct 26, 10:44 pm, Leigh McRae leigh.mc...@lonedwarfgames.com wrote: -

[android-developers] Re: GK:How to give conditions in android XMLs

2010-10-27 Thread Bob Kerns
You don't put it in your strings file! The idea is you make a copy of your project for each carrier, and use an XSLT script to make changes This makes sense if each carrier's files are mostly the same. If you can separate the files into files that have stuff that is the same for each carrier,

[android-developers] Trackball / d-pad navigation and Tabbed activities

2010-10-27 Thread andfan22
Hi all When creating a tabbed display using TabHost TabWidget, one of the options for specifying the tab content is TabHost.TabSpec.setContent(Intent intent), which causes an activity to be launched as the tab content. This works fine except for one problem. I can't seem to use the trackball /

[android-developers] Trackball / d-pad navigation and Tabbed activities

2010-10-27 Thread andfan22
Hi all When creating a tabbed display using TabHost TabWidget, one of the options for specifying the tab content is TabHost.TabSpec.setContent(Intent intent), which causes an activity to be launched as the tab content. This works fine except for one problem. I can't seem to use the trackball /

Re: [android-developers] Re: Application still Running After Exit

2010-10-27 Thread Mark Murphy
On Wed, Oct 27, 2010 at 5:01 AM, mort m...@sto-helit.de wrote: There should be no code running at this point; hence, IMHO, this status is pointless and confusing. I don't think so. From a user's point of view, there's no difference if there's a started service that's actually doing something

Re: [android-developers] How to Disable few items in list view.

2010-10-27 Thread Mark Murphy
On Wed, Oct 27, 2010 at 4:41 AM, Mutturaj muttur...@gmail.com wrote: I want to disable few items in List View and i am using Simple Adapter to do that. I am not getting how to disable the items. Can any one help me to come out of this??? Step #1: Extend SimpleAdapter to make AjjSimpleAdapter

Re: [android-developers] Rounded RelativeLayout

2010-10-27 Thread Mark Murphy
Use a background with rounded corners, perhaps via a ShapeDrawable: http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape On Wed, Oct 27, 2010 at 5:06 AM, Ajmer Singh ajmersing...@gmail.com wrote: Hi All I want a RelativeLayout to have a rounded corner just like we

Re: [android-developers] Show a bubble when tap on marker

2010-10-27 Thread TreKing
On Wed, Oct 27, 2010 at 4:19 AM, Ferro Francesco ferro.france...@gmail.comwrote: I was wondering how can I display a bubble ... when I tap on one of my Marker that are on my Android google map ? Create a layout that defines your bubble. Then on tapping your icon, add the layout to the MapView

Re: [android-developers] Location/maps issues

2010-10-27 Thread TreKing
On Tue, Oct 26, 2010 at 4:52 PM, Pikoh pik...@gmail.com wrote: - I´m loading about 400 overlays in a mapview, but it takes 2-3 minutes. Is there any way to speed things up? Don't load 400 overlays. - On the other hand, I use another overlay to point device gps position, but when

Re: [android-developers] Get IOException in HTTPClient.execute(httppost)

2010-10-27 Thread TreKing
On Tue, Oct 26, 2010 at 6:56 PM, Weikang Wan weikang@gmail.com wrote: But an IOException was thrown out. Which is what? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago

Re: [android-developers] How to know if somebody has changed the Locale in Settings-Language keyboard

2010-10-27 Thread TreKing
On Wed, Oct 27, 2010 at 12:12 AM, Deepak dipak...@gmail.com wrote: Is there a way to do this? Looking through the documentation, it looks like there is. - TreKing

[android-developers] Increase Ram Virtually

2010-10-27 Thread Sami
http://softsami.blogspot.com/2010/09/increase-ram-virtually.html -- 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: Resource not found

2010-10-27 Thread Lance Nanek
One thing to watch out for is that recent Android SDK versions will append -v4 to resource folders that use a specifier that Android 1.5 doesn't understand. Before this Android 1.5 would sometimes read the folder anyway. So, for example, if you had a drawable-mdpi directory and switched to the

[android-developers] Imsdroid account setting issue with HTC desire [resolution 480*800]

2010-10-27 Thread Er. syed imran ali
Hi All, Tomorrow i bought new Android HTC desire with higher resolution 480*800 but when i tried to do sip setting for Imsdroid then every time it has been giving message Unregistered. though on another phone HTC desire with resolution 320*480 is working fine. so, is it issue due to resolution,

[android-developers] Overriding the home button

2010-10-27 Thread Schoel
Hello, I am trying to override the home button in my application. I am aware that this is not recommended behaviour and all links I've found about this says that it is actually not possible. However, the native dialer of HTC Sense as well as the dialer for Sony Ericsson (tested on X10 mini) both

[android-developers] Re: Android Market - installation never finishes

2010-10-27 Thread Kostya Vasilyev
FYI: This came up again today. I emailed the .apk to the user, and he was able to install it without any issues. Since it's the same .apk as I publish to Market, I hope that the phone will pick up any future updates. -- Kostya 19.10.2010 15:11, Kostya Vasilyev пишет: I recently

Re: [android-developers] Overriding the home button

2010-10-27 Thread TreKing
On Wed, Oct 27, 2010 at 9:02 AM, Schoel samuelsson.j...@gmail.com wrote: I am trying to override the home button in my application. Why? However, the native dialer of HTC Sense as well as the dialer for Sony Ericsson (tested on X10 mini) both ignore the home button press on incomming calls.

[android-developers] Is there a way to get the app drawer to refresh?

2010-10-27 Thread Jeremy Statz
I've got a bunch of live wallpapers for sale, and have a lot of 1-star comments that just say Doesn't open. This is because there's no launcher activity, so the open button is greyed out after download. I'm attempting to fix this by including an activity that explains what to do, and I'm trying

Re: [android-developers] Is there a way to get the app drawer to refresh?

2010-10-27 Thread TreKing
On Wed, Oct 27, 2010 at 9:50 AM, Jeremy Statz jst...@gmail.com wrote: This is because there's no launcher activity, so the open button is greyed out after download. http://developer.android.com/reference/android/content/Intent.html#CATEGORY_INFO

[android-developers] Re: Location/maps issues

2010-10-27 Thread Pikoh
Thx for your answer. I didn't knew about MyLocationOverlay, seems exactly what I needed. About loading 400 overlays, well, my app is a bus stop locator and there are 400 bus stops in my city, so I don't know any other way to show all of them in a map without loading 400 overlays. On 27 oct,

[android-developers] Re: inner classes in android

2010-10-27 Thread DanH
First you need to understand that inner classes and subclasses are two distinctly different things. Inner classes are mostly just a convenience, simplifying coding without actually providing significant additional function. Subclasses, on the other hand, are the meat and potatoes of OO

Re: [android-developers] Re: Get IOException in HTTPClient.execute(httppost)

2010-10-27 Thread TreKing
On Wed, Oct 27, 2010 at 12:07 PM, Weikang Wan weikang@gmail.com wrote: The MSG is: IOException: myurl That's the entire message? There's no stack trace or more details to the message? -

[android-developers] Re: Increase Ram Virtually

2010-10-27 Thread DanH
Wow! Virtual memory! Why, it seems only back in 1960 that was just a gleam in the eye of computer designers. And here we have it already! On Oct 27, 8:19 am, Sami sami...@gmail.com wrote: http://softsami.blogspot.com/2010/09/increase-ram-virtually.html -- You received this message because

[android-developers] Building with ant. Builds OK. App fails.

2010-10-27 Thread Robert Schmid
I am using eclipse to develop my app and that has worked fine to build and deploy. However, I need to create an ant-based build script for automated build-test. So far, all my attempts to do this have failed. I tried using the android ant task and had problems so I've been trying to use the

Re: [android-developers] Re: Location/maps issues

2010-10-27 Thread TreKing
On Wed, Oct 27, 2010 at 12:49 PM, Pikoh pik...@gmail.com wrote: About loading 400 overlays, well, my app is a bus stop locator and there are 400 bus stops in my city, so I don't know any other way to show all of them in a map without loading 400 overlays. Why do you have to show all of them?

[android-developers] Re: Android Market Licensing Test App

2010-10-27 Thread John Gaby
I was using my Google developer account on the emulator, and it did not work until I uploaded and 'Saved' it. I did not need to publish it, however. I have not tried it with a test account yet. On Oct 27, 9:24 am, MarcoAndroid marco...@gmail.com wrote: When you test with your developer google

Re: [android-developers] Re: Increase Ram Virtually

2010-10-27 Thread James Burley
Virtual memory leads to virtual performance. -- Seymour Cray On Wed, Oct 27, 2010 at 1:55 PM, DanH danhi...@ieee.org wrote: Wow! Virtual memory! Why, it seems only back in 1960 that was just a gleam in the eye of computer designers. And here we have it already! On Oct 27, 8:19 am, Sami

[android-developers] How to wrap and delegate ACTION_RECOGNIZE_SPEECH?

2010-10-27 Thread DulcetTone
I am trying to receive RecognizerIntents asking for free form speech recognition and then pass them on to Google Voice Search. My code is basically this: Intent intent = new Intent(getIntent()); intent.setClassName(com.google.android.voicesearch,

Re: [android-developers] Re: Location/maps issues

2010-10-27 Thread Frank Weiss
Are you using 400 overlays with one item each instead of 1 overlay with 400 items? -- 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

[android-developers] Re: Segmented video streaming on Android

2010-10-27 Thread Dana L
There have been a couple of threads on this topic over the past few weeks. I've been trying to get this working as well, and no matter what I do, there is always a brief pause between segments. I have seen a bunch of other suggested approaches on here that also don't work. I've managed to do POCs

[android-developers] Anyone have an experience dealing with Ubinuri?

2010-10-27 Thread Flying Coder
I'm sure many, if not most, of us have been contacted by Ubinuri about distributing apps in Korea. Just wondering if anyone has any experience dealing with them? Good, bad? Thanks, Steve -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Anyone have an experience dealing with Ubinuri?

2010-10-27 Thread Kumar Bibek
Never heard of it. There are some rumours about Market supporting Paypal. That's gonna be interesting. On Oct 28, 12:07 am, Flying Coder av8r.st...@gmail.com wrote: I'm sure many, if not most, of us have been contacted by Ubinuri about distributing apps in Korea.  Just wondering if anyone has

[android-developers] Re: how does emulator simulate SMS?

2010-10-27 Thread Kumar Bibek
The ADB bridge. I can take a guess about that. Perhaps sockets. :) On Oct 27, 9:10 pm, tedx txt...@gmail.com wrote: What is the mechanism used to simulate SMS messaging between emulator instances? Does it use sockets? Is there documentation of this available? -- You received this message

[android-developers] Re: trying to open new image on clicking a image button

2010-10-27 Thread Kumar Bibek
If you have the Uri to the media, you can trigger an intent with ACTION_VIEW. That should work. On Oct 27, 1:52 pm, Alok Upadhyay maddy.luck...@gmail.com wrote: hii, can anybody please guide me how to write the code for opening the new image after clicking the imagebutton in android. I have

[android-developers] Re: Will there be extra APIs for Google TV development?

2010-10-27 Thread Kumar Bibek
I am sure there will be a few extra things. Wait and watch. :) On Oct 27, 6:06 am, Dianne Hackborn hack...@android.com wrote: There is no GoogleTV SDK yet. On Tue, Oct 26, 2010 at 2:56 PM, Michael J txaggiemich...@gmail.com wrote: Or is it essentially the same SDK/APIs as standard Android

[android-developers] Re: Developing using Eclipse for Android and Java desktop application

2010-10-27 Thread Kumar Bibek
No you can't. On Oct 26, 11:31 pm, Vikas1976 vikas.shah.1...@gmail.com wrote: Hi everyone, I am writing because I am writing an application that uses crypto to encode information in files that will be stored and read on an Android device, and I would like to develop a desktop SWT app to

[android-developers] Re: Increase Ram Virtually

2010-10-27 Thread DanH
(Sami, virtual memory has been around for a looong time, even in Windoze. Generally there's no need/reason to muck with the Windows defaults, since most machines have enough RAM that you don't need VM to fudge having more, but simply use VM to swap inactive applications out -- just as occurs

[android-developers] Putting Database Connection in android.app.Application.onCreate

2010-10-27 Thread Aaron
Does anyone think it would be bad to keep a reference to the Database the android.app.Application object? Creating it in onCreate and closing it in onTerminate? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Arabic Text to Display

2010-10-27 Thread Faisal Basra
Hello everyone, I just started android development and now facing an issue. I can't show arabic unicode text on android app. I have used TextView, I tried to copy an arabic font in asset folder and try to use it. But all my characters are shown but not connected. Any help in this regard will be

[android-developers] Re: Developing using Eclipse for Android and Java desktop application

2010-10-27 Thread DanH
You can certainly write a desktop application that will use any crypto algorithm you can find the source for (or find a JAR for). Writing bare desktop Java is so easy there's no need to be constrained by a particluar desktop tool set. And somehow I find it hard to believe that javax.crypto would

Re: [android-developers] Re: Speed from GPS

2010-10-27 Thread tarek attia
I'm doing it on Nexus one On Tue, Oct 26, 2010 at 6:00 PM, MB manoj.bi...@gmail.com wrote: What device/OS are you trying it on? It works fine on my droid. On Oct 26, 3:54 am, tarek attia tarek.m.at...@gmail.com wrote: Dear all, Just in my application I want to get the speed of the

[android-developers] Turning On 'Allow Mock Locations'

2010-10-27 Thread Nathan
Can you turn on 'Allow Mock Locations' in code? I'm assuming not; you'd have to prompt for a user to go down into their Development settings and turn it on. But I wanted to check here for sure. Nathan -- You received this message because you are subscribed to the Google Groups Android

[android-developers] onSurfaceCreated called twice

2010-10-27 Thread deki
Is there a way to make sure onSurfaceCreated is called only once during startup. Currently in my app it gets called once with say 800x480 then it gets called a second time with 480x800. I guess this is probably due to a call to setRequestedOrientation in onCreate. Is there any way to make sure

[android-developers] Re: Arabic Text to Display

2010-10-27 Thread Alain
Android does not support Right To Left text. Same issue with Hebrew. Maybe in Gingerbread but don't raise your hopes. On Oct 27, 4:30 pm, Faisal Basra faisal.g...@gmail.com wrote: Hello everyone, I just started android development and now facing an issue. I can't show arabic unicode text on

Re: [android-developers] Turning On 'Allow Mock Locations'

2010-10-27 Thread Frank Weiss
It appears to not work. I just tried and my mock location app threw an exception, but I'll need to verify later in the debugger. It did work with the developer setting allow mock locations on. But not for all apps, like maps, I suppose some apps actually check by name of provider. -- You

[android-developers] Re: Location/maps issues

2010-10-27 Thread Pikoh
@Treking: well, that should be the best solution. where may I find info on how to make that? @Frank: in fact is 1 overlay with 400 items. Code is like this: while(cursor.moveToNext()){ p = new GeoPoint( (int)

[android-developers] Loading music files into the emu android

2010-10-27 Thread Gabriel Huie
Hi i was trying to google this up but didnt come up with anything probably because this is alittle weird. bBut i was wondering if anyone knew how to upload mp3 files on to the emulated android. I mainly want to use the music app on the default android so..if anyone knows? or if they know where

[android-developers] Re: inner classes in android

2010-10-27 Thread William Ferguson
Sorry Dan, I have to strongly disagree with 'Subclasses, on the other hand, are the meat and potatoes of OO programming. IMHO subclasses are typically the most abused part of OO programming and are often a cause of obscure programming bugs. The Android API is a good case in point, many of the

[android-developers] Re: inner classes in android

2010-10-27 Thread DanH
Android (and Java) would never have been built without subclasses. True, with a good suite of APIs you may never need to subclass anything, but that's simply because the people who designed the APIs were skillful in using the full power of the OO model. (Interfaces, by the way, are just a poor

Re: [android-developers] Location/maps issues

2010-10-27 Thread Frank Weiss
- I´m loading about 400 overlays in a mapview, but it takes 2-3 minutes. Is there any way to speed things up? Where is this time, loading from the DB to the overlay or when you pan the map? - On the other hand, I use another overlay to point device gps position, but when location point

Re: [android-developers] Re: GK:How to give conditions in android XMLs

2010-10-27 Thread Frank Weiss
I know it sounds easy for me, but it would take some learning for you. It may be worth it if you are going to need to manipulate XML files. http://www.w3.org/Style/XSL/ http://xalan.apache.org/ http://ant.apache.org/manual/Tasks/style.html -- You received this message because you are

[android-developers] Re: Location/maps issues

2010-10-27 Thread Pikoh
Hi Frank, - The delay happens when loading from the d to the overlay i.e. the while loop I wrote you up. And i've tried to load them from an array instead of a db but makes no difference. - You are right, I'm very new to android programming and I confused overlay item with overlay. - In

[android-developers] SQLiteException thrown during rawQuery()

2010-10-27 Thread swgillan
Hello, I got an SQLiteException when executing a rawQuery() function. I checked the API on this, and noticed that it is not documented that rawQuery would throw this (otherwise I would have put try/catch for this). Is this just something that was missed or is there something else in the

[android-developers] How to synch SQL Lite database up with Database server

2010-10-27 Thread Ricer
I'm curious if there is any tutorials on synching up a database server with the SQL Lite Database on the Android device? Still new to Android development but would like to read up on this aspect! Thank you. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Screen Brightness on 2.2

2010-10-27 Thread burton miller
Anybody have any idea why this is not working under 2.2? (nexus one) WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness = 1.0f; getWindow().setAttributes(lp); And yes, the auto-brightness is disabled under settings. -- You received this message because you are

[android-developers] Re: SQLiteException thrown during rawQuery()

2010-10-27 Thread DanH
Thew SQLiteException generally contains some very useful text. Might be worthwhile telling us what it was. On Oct 27, 6:40 pm, swgillan swgil...@gmail.com wrote: Hello, I got an SQLiteException when executing a rawQuery() function. I checked the API on this, and noticed that it is not

Re: [android-developers] Re: Location/maps issues

2010-10-27 Thread TreKing
On Wed, Oct 27, 2010 at 6:40 PM, Pikoh pik...@gmail.com wrote: - The delay happens when loading from the d to the overlay i.e. the while loop I wrote you up. And i've tried to load them from an array instead of a db but makes no difference. Loading and then drawing 400 items to show on a

[android-developers] Prevent Rooted phones to access sqlite db and preferences

2010-10-27 Thread swgillan
Hello, I have seen a few discussions on this, but I just wanted to see if there has been anything new. Currently, a rooted phone can access the /data/data/ com.your.company.here/ path. Insides are all the wonderful areas like databases, files, and preferences. In fact, I was actually horrified

[android-developers] Re: SQLiteException thrown during rawQuery()

2010-10-27 Thread swgillan
Sorry, perhaps I wasn't clear: It isn't the error that I am worried about, it is more that rawQuery isn't documented as throwing a particular exception. I can read my logcat and see plain as day that I had a syntax error in my function. I am trying to prevent something stupid like putting:

[android-developers] Re: inner classes in android

2010-10-27 Thread William Ferguson
(Interfaces, by the way, are just a poor man's subclass -- very little conceptual difference.) *choke* Uh OK. I'll leave it there. I hope that one day you will see the difference. On Oct 28, 8:32 am, DanH danhi...@ieee.org wrote: Android (and Java) would never have been built without

Re: [android-developers] Prevent Rooted phones to access sqlite db and preferences

2010-10-27 Thread Frank Weiss
I always have an interesting question for these issues. How much more revenue would you get if you took those security measures? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: inner classes in android

2010-10-27 Thread DanH
Interfaces were added to Java because they didn't want to (for reasons I fully appreciate) do multiple inheritance, which would have provided equivalent functionality (and then some). Interfaces are, IMO, very much worthwhile, but they do come at a significant performance cost vs pure virtual

[android-developers] Re: Why would SQLiteOpenHelper.onUpgrade fail?

2010-10-27 Thread Chris
I'm finding that too. Do you know the phones that you've seen this problem with? I'm trying to track them down, but one so far is the HTC Wildfire. On Sep 9, 1:30 pm, Teo [GD API Guru] teomina...@gmail.com wrote: Hi, every time i increase my database version and push the upgraded app to the

Re: [android-developers] Re: Location/maps issues

2010-10-27 Thread Frank Weiss
- The delay happens when loading from the d to the overlay i.e. the while loop I wrote you up. And i've tried to load them from an array instead of a db but makes no difference. That's very odd. I have an app that loads from a GeoRss feed over the network, parses it with SAX, and populates

[android-developers] Re: Unable to load all contact photos in my application

2010-10-27 Thread t2k269
Yes, you are right. I have modified the AndroidManifest.xml to add an attribute that is something like shared-uid and signed the APK with the shared certificate in android source, then install the apk on my phone. All photos appear now, so I can confirm that this is not a problem of my code.

[android-developers] Re: SQLiteException thrown during rawQuery()

2010-10-27 Thread DanH
Oh, I see -- you expect the Android documentation to be accurate! never mind On Oct 27, 7:20 pm, swgillan swgil...@gmail.com wrote: Sorry, perhaps I wasn't clear: It isn't the error that I am worried about, it is more that rawQuery isn't documented as throwing a particular exception. I can

  1   2   >