[android-developers] Re: can not see the files after yaffs2 image mounted

2009-02-07 Thread ebmajor
Hi Rajesh, thank you for your reply. Here are the details. First of all, I try to create my own yaffs2 image so I don't use system.img and userdata.img. My test environment is 'x86 desktop Ubuntu + MTD Nand flash simulator' since I want to verify only if my yaffs2 image works well I downloaded

[android-developers] Re: Read/write JPEG metadata (e.g. in EXIF format)

2009-02-07 Thread GiladH
Hi Mike, The standard staff - creation date and location, original rotation etc. The thing is, and correct me if you see otherwise, that while an imported jpeg get added to the MediaStore, all this info stored in its metadata is not converted to MediaStore metadata, hence the need for direct jp

[android-developers] Re: Graphics question: bilinear interpolation

2009-02-07 Thread Dianne Hackborn
How about this: http://code.google.com/android/reference/android/graphics/Paint.html#FILTER_BITMAP_FLAG On Sat, Feb 7, 2009 at 8:06 PM, j wrote: > > Is there an Android API for performing bilinear interpolation? I > discovered that my own interpolation implementation is extremely slow > runnin

[android-developers] Possible Bug in Dialog-Persistence (onCreateDialog / onPrepareDialog)

2009-02-07 Thread plusminus
Hi all, I'm not 100% sure whether this is a bugs, so I'm asking on here. Issue #1: In my Acticity the user is passing trough some dialogs: D/OPENSTREETMAP( 1468): Creating dialog: 1 D/OPENSTREETMAP( 1468): Preparing dialog: 1 D/OPENSTREETMAP( 1468): Creating dialog: 0 D/OPENSTREETMAP( 1468): Pr

[android-developers] Re: access to internal telephony

2009-02-07 Thread Dianne Hackborn
Not any time soon. Most of the classes there will only work when running code in the phone process, and making them work in other process would be significant work. Also on the G1 I don't believe that anything in the application processor even has access the voice data stream, so it just wouldn't

[android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2009-02-07 Thread Dianne Hackborn
DO NOT DO THIS. See the word "internal" in there? That means internal. Do not touch. Your code will break in the future. In fact some platform engineer just may go rename that class for no reason at all and break your code. 2009/2/4 solomonk > > No need to clone it if you really don't want

[android-developers] Graphics question: bilinear interpolation

2009-02-07 Thread j
Is there an Android API for performing bilinear interpolation? I discovered that my own interpolation implementation is extremely slow running on the G1 so it's pretty useless. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: native C++ SIP stack on Android

2009-02-07 Thread Dianne Hackborn
You are posting to android-developers, for talking about writing applications using the SDK, which does not currently support native code, so you can't use JNI at all. If you post on android-platform or android-framework, however, about adding code to the platform itself, the answer may be very di

[android-developers] Re: can not see the files after yaffs2 image mounted

2009-02-07 Thread Rajesh N
Hi, Can u mention the steps which u have used to create yaffs2 image from u android file system? Did u do u yaffs2 file system image for both data.img and system.img? In android SDK1.0 data.img is read only, u should not create yaffs2 image for it, rather u need to create RAMFS or CRAMFS imag

[android-developers] can not see the files after yaffs2 image mounted

2009-02-07 Thread ebmajor
Dear all, I created img.yaffs2 using mkyaffs2image and then mounted it into Ubuntu MTD NAND flash simulator. so if I use 'cat /proc/filesystems' I can see yaffs and yaffs2 and by 'cat /proc/mtd' I can see /dev/mtd0에 Nand simulator partition 0. (block size is 0x4000) after that using mtd-utils, I

[android-developers] Re: SlidingDrawer not working with RC33

2009-02-07 Thread Dianne Hackborn
When a new SDK is posted, there is a complete API diff and overview of the changes. However, there is very little change to the platform APIs in 1.1, so there isn't much to say about this one. I'm not sure when an SDK for it will be available. Also, out of curiosity, how did you go about using t

[android-developers] Re: App source from Git not compatible with current SDK?

2009-02-07 Thread Dianne Hackborn
They are compiled against the framework library, before the non-SDK symbols have been stripped from it. The platform build system -can- build against the SDK version, but that feature didn't exist until very late in to the 1.0 platform, so many of the apps don't use it, and so as much as one tries

[android-developers] Re: App source from Git not compatible with current SDK?

2009-02-07 Thread Rich
I see.. If that's the case, how were they compiled? Do you have a private SDK different from our SDK? Is there anyway I would be able to get this code to compile? As far as I can tell, the only two unresolvable problems seem to be a missing intent, Intent.FLAG_ACTIVITY_NO_USER_ACTION and refere

[android-developers] Re: Context.startService - The service does not stay running...

2009-02-07 Thread Jon Colverson
Look into the PowerManager: http://code.google.com/android/reference/android/os/PowerManager.html -- Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] Re: Please Help! Service seems to sleep when phone is inactive

2009-02-07 Thread clarkbriancarl
Wow, some great information here. Thanks for taking the time! On Feb 7, 6:38 pm, Christoph Studer wrote: > Android uses a very proactive power management approach. Basically, > the policy is to go to sleep if not told otherwise. > > The way to signal to the system that it should stay awake are

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

2009-02-07 Thread kolby
Sorry, obviously you have. Nevermind. Michael On Feb 7, 8:48 pm, kolby wrote: > Mark, > > I'm not sure it would work, but have you tried to just > setFocusableInTouchMode(true) on the WebView object? Seems a lot > easier than messing with the touch handler. > > Michael > > On Feb 7, 3:45 pm, Ma

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

2009-02-07 Thread kolby
Mark, I'm not sure it would work, but have you tried to just setFocusableInTouchMode(true) on the WebView object? Seems a lot easier than messing with the touch handler. Michael On Feb 7, 3:45 pm, Mark Nuetzmann wrote: > Sergey, > I ended up doing basically what you posted but only for the > A

[android-developers] Re: RC33 for Dev Phone

2009-02-07 Thread Brad Fuller
On Sat, Feb 7, 2009 at 11:42 AM, Brad Fuller wrote: > On Fri, Feb 6, 2009 at 6:16 PM, Disconnect wrote: >> Install jf's 1.41-rc33. http://andblogs.net/tag/jf >> >> It is signed with test keys -and- its a full install instead of a patch, so >> no perquisites. > > Has anyone tried this on their de

[android-developers] Re: XML parsing problem (stops at non-utf characters)

2009-02-07 Thread Tim Bray
On Sat, Feb 7, 2009 at 9:25 AM, John Doe wrote: > > I am having difficulty while parsing some Turkish sites.Here is the > part of the code. The problem is when the title contains some non-UTF > characters like ç,ü,ı,ö,ğ it stops parsing and doesnt read the rest. > For example if the title is "Ebr

[android-developers] Re: Please Help! Service seems to sleep when phone is inactive

2009-02-07 Thread Christoph Studer
Android uses a very proactive power management approach. Basically, the policy is to go to sleep if not told otherwise. The way to signal to the system that it should stay awake are wakelocks. As soon as there's at least one app holding a wakelock, the system won't go to sleep and all the running

[android-developers] Re: SlidingDrawer not working with RC33

2009-02-07 Thread Stefan
Yes, I do agree that relying on private APIs is dangerous and should be avoided for all the reasons you mention. (The only reason I posted my findings is to save somebody the debugging time as it was not obvious what was the reason at first) This brings another related question. Is there a singl

[android-developers] Re: Android Developers in Atlanta, GA

2009-02-07 Thread BarbieDahl
Hello mission4u, We would love to checkout your app. You can join our group if you want, we want to do some meetups since the group so far is made up of Atlanta area folks but we will post some stuff to our group website as well. The group is called Droidlanta, you can join the group and check

[android-developers] Re: Android Developers in Atlanta, GA

2009-02-07 Thread BarbieDahl
Hey Alton, I saw that you already joined Droidlanta, great to have you. We are planning a meetup to discuss various things to get this group going. We would love to have you attend. We tentatively have the 4th Tuesday of the month setup to meet. Check the meetup post in Droidlanta for more inf

[android-developers] Re: SlidingDrawer not working with RC33

2009-02-07 Thread Jean-Baptiste Queru
Even worse, it hurts the entire ecosystem, by making users believe that plaftorm upgrades have bugs when in fact the applications are broken to start with. JBQ On Sat, Feb 7, 2009 at 3:18 PM, Romain Guy wrote: > That means your app will break in cupcake though. > > Please, please don't use priv

[android-developers] Re: App source from Git not compatible with current SDK?

2009-02-07 Thread Romain Guy
The system apps are not SDK compliant yet. We'd like to fix them but no eta yet. On Feb 7, 2009 2:07 PM, "Rich" wrote: I loaded up the Alarm Clock app from the current git (http:// android.git.kernel.org/?p=platform/packages/apps/ AlarmClock.git;a=snapshot;h=c8208f9f6ff76479da3b1eb0cedbd5500b8b

[android-developers] Re: SlidingDrawer not working with RC33

2009-02-07 Thread Romain Guy
That means your app will break in cupcake though. Please, please don't use private APIs, it only hurts the users :( On Feb 7, 2009 1:43 PM, "Stefan" wrote: After digging a bit around in the source code, it looks like the namespace used for the attributes of the "internal" widgets has changed i

[android-developers] Solved Preferences Reset Problem

2009-02-07 Thread Eric B
A while ago, I posted (see links below) about a problem with my app. Whenever the app was killed by the OS, either memory cleanup or device restart, all the preferences were reset. Since my app worked entirely from those preferences, it made it pretty much useless. I found out that persistent fo

[android-developers] Re: Local communication with a service from another APK that runs in the same process

2009-02-07 Thread Uri.Kanonov
In case it would help, here is the relevant code: The two classes (LocalServiceBinder and LocalService) used to bind to the service and obtain a reference to it: - package localservice; import android.os.Binder; public abstract cl

[android-developers] Re: Please Help! Service seems to sleep when phone is inactive

2009-02-07 Thread clarkbriancarl
Thanks for the reply. I've been reading and tweaking for over a week trying to figure this out. Thats a good idea to use the Alarm Manager. I think I will give that a try. I would still like to hear from a more experienced devloper or a google engineer if this is the way an Android service is supp

[android-developers] App source from Git not compatible with current SDK?

2009-02-07 Thread Rich
I loaded up the Alarm Clock app from the current git (http:// android.git.kernel.org/?p=platform/packages/apps/ AlarmClock.git;a=snapshot;h=c8208f9f6ff76479da3b1eb0cedbd5500b8be1f4;sf=tgz) into eclipse, and there are a lot of errors, unfound imports and things like that. Are the 'cupcake' version

[android-developers] Re: Help debugging frequent garbage collection

2009-02-07 Thread snctln
Thank you very much, that was exactly what I was looking for... I had always just used the eclipse plugin and never thought to try the stand alone tool. DDMS was very helpful and I was pleasantly surprised to see that it even gave me the line number of my code where the allocations were happening

[android-developers] Re: SlidingDrawer not working with RC33

2009-02-07 Thread Stefan
After digging a bit around in the source code, it looks like the namespace used for the attributes of the "internal" widgets has changed in RC33 from xmlns:android="http://schemas.android.com/apk/res/ android" to some other namespace (probably something like http://schemas.android.com/apk/res/andr

[android-developers] Re: SlidingDrawer not working with RC33

2009-02-07 Thread Romain Guy
Even worse, SlidingDrawer will move to android.widget in Cupcake :)) (And thus become public API.) On Sat, Feb 7, 2009 at 12:14 PM, Jean-Baptiste Queru wrote: > > Oh, ah, I hadn't seen that it was android.INTERNAL.SlidingDrawer > (emphasis mine). > > There's no guarantee of compatibility of priv

[android-developers] Re: Please Help! Service seems to sleep when phone is inactive

2009-02-07 Thread Greg White
On Sat, Feb 7, 2009 at 11:50 AM, Brian wrote: > While testing the service, I have come across something interesting. > > My problem is that the service appears to sleep or pause for a few > hours, run a short time, and then sleep for a few more hours, then run > a short time, etc when the phone h

[android-developers] Re: Making ListView stop on a finger press

2009-02-07 Thread Gw1921
Any one? It's just that the List View isn't receiving the touch events for some reason (being consumed by the Button/TextView above), although it still scrolls if I flick the finger. On a tap I need the listview to receive the touch events so that the scroll is controlled. Any ideas? On Feb 7, 2:

[android-developers] sip ua in android

2009-02-07 Thread bc
i port a sip ua(osip) for android,it can work in android,but,how can i warp this as a part of android phone,jast like gsm? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

[android-developers] Context.startService - The service does not stay running...

2009-02-07 Thread Brian
I rarely post to groups, because I can usually find the answer somewhere on the web. So I apologize in advance if I have violated any ettiquette. But this time I am truly stumped, and would appreciate any help, insight, or suggestion from a more experienced Android developer. I've written a test

[android-developers] Re: Android Developers in Atlanta, GA

2009-02-07 Thread Alton
Hi there, I'm in Marietta and would be interested. Alton On Jan 30, 9:10 am, BarbieDahl wrote: > Are there any developers inAtlanta, GA that would like to meet and > discuss android app ideas as well as learn new and advanced android > topics? I would like to network with some other developers

[android-developers] Re: Can we start a new activity or at least display a Toast in TimerTask.run()?

2009-02-07 Thread Brian
>From my experience, timers are a finicky thing in android. I have always had much better luck using a postDelayed to a handler. public class MyClass extends Activity { private Handler objHandler = new Handler(); public void MyFunction() { //Or put this in

[android-developers] Local communication with a service from another APK that runs in the same process

2009-02-07 Thread Uri.Kanonov
Hello, In my application I have a need to separate components into two different APKs. One component (the first APK) needs to communicate with a service provided by the other component (the second APK). I was hoping I could use the shared-user-id mechanism, have both applications run in the same

[android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2009-02-07 Thread $§Kalle§$
"setCurrent" to set values works: --- try { Method m = c.getMethod("setCurrent", int.class); m.invoke(o, mDauer%60); } catch (Exception e) { Log.e("", e.getMessage()); } --- But how to get values? Any idea? On 4 Feb., 18:43, s

[android-developers] Re: Central service scheduler

2009-02-07 Thread Christoph Studer
Sweet! Thanks for the reply and looking forward to that API. Christoph On Sat, Feb 7, 2009 at 8:57 PM, Jean-Baptiste Queru wrote: > > There is something like that in cupcake. I forgot the exact API name, sorry. > > JBQ > > On Sat, Feb 7, 2009 at 10:19 AM, Christoph Studer wrote: >> >> Would i

[android-developers] Re: native C++ SIP stack on Android

2009-02-07 Thread bc
i port a sip stack,and use jni,it can work now,but,how can i let phone use the stack,just like gsm? On Jan 9, 1:08 am, "David Turner" wrote: > first, you cannot have C++ code in the kernel. > > however, depending on how your stack is designed, you may be able to use it > from Java through JNI >

[android-developers] Problem with sound on Notifications on Emulator

2009-02-07 Thread pperotti
Hi Everyone, The reason Im posting this question is because I cannot make a notification to reproduce a sound or a vibration sequence. For the case of the vibration I have permissions properly set and logcat do not show log message indicating a problem. For the case of sound, I have an mp3 save

[android-developers] access to internal telephony

2009-02-07 Thread Gero Mudersbach
Hello, are there plans to make com.android.internal.telephony available public? As far as I understand it is currently not possible to write e.g. an answering machine "within" the current framework (standard sdk), because direct access to "acceptCall" and hangup methods is missing. Best G. Mud

[android-developers] XML parsing problem (stops at non-utf characters)

2009-02-07 Thread John Doe
I am having difficulty while parsing some Turkish sites.Here is the part of the code. The problem is when the title contains some non-UTF characters like ç,ü,ı,ö,ğ it stops parsing and doesnt read the rest. For example if the title is "Ebru Gündeş askere gitti" it only reads until "ş" which is "Eb

[android-developers] android.app.Service question

2009-02-07 Thread clarkbriancarl
The android.content.Context api exposes two methods for starting a service. startService and bindService. The api docs state that when a service is started with Context.startService, that requires the service to remain running until stopService(Intent) is called, regardless of whether any clients

[android-developers] WPA2 Enterprise Support

2009-02-07 Thread Holkre
Hello Guys, is there a way to alter the wpa_supplicant on an non rooted G1 with the actual firmware RC33 which is installed on the german devices, I will need to have access to WPA2 Enterprise Networks with my G1 , and i actually could not get root access with the current release of Android on the

[android-developers] Please Help! Service seems to sleep when phone is inactive

2009-02-07 Thread Brian
Hi everybody, I'm new to android, but I am picking up speed quickly. I've spent the last several years writing Windows services. So I am not a complete newbie in this area. I've written a test service to understand how android implements a service. I believe I understand the difference between C

[android-developers] Local communication with a service from another APK that runs in the same process

2009-02-07 Thread Uri.Kanonov
Hello, In my application I have a need to separate components into two different APKs. One component (the first APK) needs to communicate with a service provided by the other component (the second APK). I was hoping I could use the shared-user-id mechanism, have both applications run in the same

[android-developers] Loading Partial Subset of a Bitmap

2009-02-07 Thread Brendan
So I have a huge image (2000 x 2000) that is way too big for the Android VM to load in (there's a 16 MB limit per application). That's fine with me, as I only want to load in one screen size (320 x 480) at a time, which Android should more than be able to handle. The problem is, how do you load in

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

2009-02-07 Thread Mark Nuetzmann
Sergey, I ended up doing basically what you posted but only for the ACTION_DOWN as that seemed to handle it. Fred, I tried adding an OnClickListener but never got any callbacks. I assume that the WebView is designed to handle this internally and expects you to use the WebViewClient.shouldOverri

[android-developers] Re: SlidingDrawer not working with RC33

2009-02-07 Thread Jean-Baptiste Queru
Oh, ah, I hadn't seen that it was android.INTERNAL.SlidingDrawer (emphasis mine). There's no guarantee of compatibility of private APIs between versions. JBQ On Sat, Feb 7, 2009 at 11:28 AM, Romain Guy wrote: > > No, SlidingDrawer is a private widget. It is not supported. > > On Sat, Feb 7, 20

[android-developers] Re: multiple tables in sqlite

2009-02-07 Thread Mark Murphy
intbt wrote: > Hopefully some one will nmotice my 'obvious' mistake. > > I have created 2 tables in the database (below). When I access table > c, no problem. But when I attempt to access table s I get an error > message that column name x (all names give the same error) does not > exist. How can

[android-developers] Re: Using bindView to Customize ListView

2009-02-07 Thread Mark Murphy
Nmix wrote: > In all the examples I've found to manipulate each view in a ListView, > the method always seems to be getView(). But these were never Adapters > backed by a cursor. I decided to try bindView() within a > SimpleCursorAdapter, and so far it works very nicely, especially with > the curs

[android-developers] Re: Central service scheduler

2009-02-07 Thread Jean-Baptiste Queru
There is something like that in cupcake. I forgot the exact API name, sorry. JBQ On Sat, Feb 7, 2009 at 10:19 AM, Christoph Studer wrote: > > Would it make sense to create a central scheduler for services that > need to run periodically? > > There are a lot of application that want to run at pe

[android-developers] Re: RC33 for Dev Phone

2009-02-07 Thread Brad Fuller
On Fri, Feb 6, 2009 at 6:16 PM, Disconnect wrote: > Install jf's 1.41-rc33. http://andblogs.net/tag/jf > > It is signed with test keys -and- its a full install instead of a patch, so > no perquisites. Has anyone tried this on their devphone? I only have one devphone so I'm reluctant to try. --~

[android-developers] Re: SlidingDrawer not working with RC33

2009-02-07 Thread Romain Guy
No, SlidingDrawer is a private widget. It is not supported. On Sat, Feb 7, 2009 at 7:18 AM, Jean-Baptiste Queru wrote: > > Can you please report this issue in http://b.android.com/ ? (a plain > copy-paste will do). > > Thanks, > JBQ > > On Sat, Feb 7, 2009 at 6:54 AM, Stefan wrote: >> >> It app

[android-developers] Re: Help debugging frequent garbage collection

2009-02-07 Thread Romain Guy
Hi, It's pretty easy. Launch the tool called DDMS (the standalone one, not the one that comes with the Eclipse plugin.) Inside the tool, go to the Allocations Tracker tab. Click Start Tracking, use your app a little, then click Get Allocations. You will get a list of all allocations with, for eac

[android-developers] Re: Central service scheduler

2009-02-07 Thread Christoph Studer
That's a good suggestion, and might actually work for a lot of cases. It just came to my mind that scheduling them at the exact same time might actually cause performance and memory problems. Maybe one would've to start them a bit more sequentially. On Sat, Feb 7, 2009 at 7:56 PM, Greg White w

[android-developers] Re: Central service scheduler

2009-02-07 Thread Greg White
On Sat, Feb 7, 2009 at 1:19 PM, Christoph Studer wrote: > > Would it make sense to create a central scheduler for services that > need to run periodically? > > There are a lot of application that want to run at periodic intervals, > require network access and need to keep the device awake during

[android-developers] Re: SharedPreferences - is it secure?

2009-02-07 Thread Christoph Studer
If you're interested in Google auth tokens, you might want to take a look at this: http://www.cyrket.com/asset/-2921053538409761500 I have not tried this out myself and do not know whether they store a password or just cache the token and ask the user for the password each time it expired. Chris

[android-developers] Re: SharedPreferences - is it secure?

2009-02-07 Thread Christoph Studer
That's right. It's unfortunately a trade-off between convenience and security. Somewhere on your device, there's also your Gmail password or some sort of ling-living token that can be used to authenticate against Google services. Is it worth the risk of having others read your Gmail messages and

[android-developers] Re: SharedPreferences - is it secure?

2009-02-07 Thread Teo
An auth token would be great, coincidentally it's a Google service i need a password for. @JP: Wouldn't a finder of a lost phone have access to the user's Google account in the first place? From what i know, the signing in is done automatically after setup. On Sat, Feb 7, 2009 at 8:18 PM, JP wrot

[android-developers] Re: debugging integrated Java and native code

2009-02-07 Thread Dave Sparks
A few of our developers use Eclipse as a front-end for gdb. I recall that the setup is a bit tricky. Maybe someone can post the magic formula. I use gdb myself, but then I still use vi and makefiles. IDE's are for wimps. :) On Feb 7, 9:22 am, Sergey Ten wrote: > Hi, > > I am trying to figure ou

[android-developers] Central service scheduler

2009-02-07 Thread Christoph Studer
Would it make sense to create a central scheduler for services that need to run periodically? There are a lot of application that want to run at periodic intervals, require network access and need to keep the device awake during their work. Instead of each app having to use an AlarmManager, a Wak

[android-developers] Re: SharedPreferences - is it secure?

2009-02-07 Thread JP
On Feb 7, 9:43 am, Christoph Studer wrote: > (Note that rooted devices do not provide this security, because any > application can possibly become root and do whatever it wants on the > phone, AFAIK. But that's the user's risk when rooting a device.) Suppose user loses phone. Finder then roots

[android-developers] Using bindView to Customize ListView

2009-02-07 Thread Nmix
In all the examples I've found to manipulate each view in a ListView, the method always seems to be getView(). But these were never Adapters backed by a cursor. I decided to try bindView() within a SimpleCursorAdapter, and so far it works very nicely, especially with the cursor all set up for my u

[android-developers] Help debugging frequent garbage collection

2009-02-07 Thread snctln
I am having an issue with my latest game (available in the market as "BreakTheBlocks Lite") This is a simple "arcade" style game, It started with a thread controlling the game loop but now I just have a runnable that performs the game loop functions and then posts back to itself. In its original

[android-developers] Re: SharedPreferences - is it secure?

2009-02-07 Thread Christoph Studer
Teo, using SharedPreferences with MODE_PRIVATE should be "safe" in the sense that other application cannot snoop in there. Using an SQLite database is not more or less secure than SharedPreferences. Both are stored in the data folder of your application, the security of which is provided by the u

[android-developers] Android Developers Needed in Singapore

2009-02-07 Thread Zi Yong Chua
Dear fellow developers, I am working on a mobile application that relates to media content delivery that I am building on the Android platform. Now I am trying to look for Android developers in Singapore who is interested in taking on this project. If you are from Singapore and is interested, ple

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

2009-02-07 Thread Sergey Ten
Mark, I think I had this problem myself and could solve it by using the following code: webView.setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACT

[android-developers] Re: Writing files to SD card failing

2009-02-07 Thread Tane Piper
Yea, I checked the SD card and there was a file there, I remove it and also moved the mkdirs up to the second File, now works fine. Thanks for the tip on closing the file too. On Feb 7, 5:10 pm, David Given wrote: > Tane Piper wrote: > > [...] > > >                            File k = new File(

[android-developers] debugging integrated Java and native code

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

[android-developers] Re: Writing files to SD card failing

2009-02-07 Thread David Given
Tane Piper wrote: [...] > File k = new File(j, rowId + ".jpg"); > k.mkdirs(); > k.createNewFile(); [...] > However, it keeps failing on the line k.createNewFile(); with the > error: > WARN/System.err(10727): j

[android-developers] Writing files to SD card failing

2009-02-07 Thread Tane Piper
Hi there, I'm writing an podcast playing application. The application has pre- defined feeds but I want to cache the image of the feed for 30 days. However, on the initial creation of the podcast I am downloading the image, and trying to save it to the SD card using the code below: public long

[android-developers] Re: SharedPreferences - is it secure?

2009-02-07 Thread Teo
Thanks for the reply. I'll only have one password per device - as for the device borrowing (if i understood correctly what you said) i'm not sure i can do anything about that :) The thing is, i asked this question becase it's called 'Shared'Preferences. But i've seen that it also has a MODE_PRIVATE

[android-developers] Re: SharedPreferences - is it secure?

2009-02-07 Thread Fred Grott(shareme)
SQLite stores user data by the app package name. if you did a db scehma that allowed for more than one user than it would be a safe way to go assuming that your popular app is borrowed along with device among friends.. On Feb 7, 8:31 am, Teo wrote: > Hi, > > i'm implementing a feature that re

[android-developers] WebView-Security/Privacy

2009-02-07 Thread Fred Grott(shareme)
For those developing webview apps.. Recommended Security and Privacy Settings: webVew websettings: savePassword false save form data false Save username password pair allowing multiuser using SQlite set an app username password pair to ask on app start up. This avoids the concerns complained

[android-developers] Re: SlidingDrawer not working with RC33

2009-02-07 Thread Jean-Baptiste Queru
Can you please report this issue in http://b.android.com/ ? (a plain copy-paste will do). Thanks, JBQ On Sat, Feb 7, 2009 at 6:54 AM, Stefan wrote: > > It appears that android.internal.widget.SlidingDrawer widget had > changed between RC30 and RC33. > > On RC33 it fails to inflate the layout X

[android-developers] Pygame on Android

2009-02-07 Thread funkydude
Hey hi, Does anyone have any guess about, any support for pygame based applications/games on Android. If someone has ported a game made in pygame to Android platform, or knows of any such way. It would be great if you could share it. Thanks in advance!! --~--~-~--~~~

[android-developers] SlidingDrawer not working with RC33

2009-02-07 Thread Stefan
It appears that android.internal.widget.SlidingDrawer widget had changed between RC30 and RC33. On RC33 it fails to inflate the layout XML complaining that: "The handle attribute is required and must refer to a valid child" This is the XML I am trying to inflate:

[android-developers] Re: Making ListView stop on a finger press

2009-02-07 Thread Gw1921
Okay more on this - it seems my custom view for each row inside the list is grabbing the touch event and not passing it through to the list. I have set "setItemsCanFocus" on the ListView to True (as its required) and now I can't make the listview stop it's scrolling on a tap. It only stops when it

[android-developers] SharedPreferences - is it secure?

2009-02-07 Thread Teo
Hi, i'm implementing a feature that requires a password, is it safe to store using SharedPreferences.Editor? Is there another recommended way for storing passwords? Thanks, Teo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

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

2009-02-07 Thread Ronald van der Lingen
That seems to have been a different problem. As of now, the market statistics have still not been updated. Kind Regards, Ronald On Feb 6, 11:27 pm, blindfold wrote: > Maybe Google fixed things a moment ago? I had a related issue that > although I live in The Netherlands, I could not even find

[android-developers] Sensors: Does orientation depend on acceleration?

2009-02-07 Thread Markus Junginger
I played around with the G1 sensors a bit and my impression was that the orientation and the gravity sensor relate. Maybe the orientation "sensor" even just uses the acceleration data to calculate the orientation? What led me to this question: when you try keep the device in the same orientation

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

2009-02-07 Thread Greg White
On Fri, Feb 6, 2009 at 2:29 AM, Dave Sparks wrote: > We do intend to support native code development in the future. We just > want to take time to refine the native API's before we make them > public. There is nothing more painful than changing an API because you > overlooked something and then h

[android-developers] how to obtain asset file uri

2009-02-07 Thread Prashant
Hi I am sending email from my application. I need to send an attachment along with email. The attachment files are audio files and are stored as application assets (assets folder). To send an attachment along with the email. I need to provide uri for the asset file. I tried this Uri.parse("file

[android-developers] Making ListView stop on a finger press

2009-02-07 Thread Gw1921
How can I make the ListView immediately stop scrolling on a finger down event? It keeps scrolling if I give it a big swipe and doesn't stop immediately if my finger is pressed down again. Any idea? Thanks --~--~-~--~~~---~--~~ You received this message because you a

[android-developers] After install ADT0.9,failed to launch APP as no VM compatible with android 1.5

2009-02-07 Thread tony
The error info is: [2009-02-07 18:11:06 - CameraTest] -- [2009-02-07 18:11:06 - CameraTest] Android Launch! [2009-02-07 18:11:06 - CameraTest] adb is running normally. [2009-02-07 18:11:06 - CameraTest] Launching: com.CameraTest [2009-02-07 18:11:06 - CameraTest] Failed

[android-developers] Re: How to pass arguments to emulator using ADT 0.9

2009-02-07 Thread tony
There's a line "Additional Emulator command line options" and the input box is actually below the line but is invisible. You can move the focus to "Disable Boot Animation" checkbox and press TAB to focus on the input box,then you can set your option. Although we can set the argument this way,I

[android-developers] Re: access to class not allowed

2009-02-07 Thread johnny
So from which version, rc1, 1.0 or cupcake, the bug in Dalvik is fixed? Just want to make it easier when communicating with the author of the apk file. Thanks, Johnny On Feb 7, 4:22 am, fadden wrote: > On Feb 6, 7:38 am, johnny wrote: > > > I get an apk file from somewhere. I tried to install

[android-developers] Re: WebView starts with a delay

2009-02-07 Thread Mariano Kamp
Nice video - love the transitional effect between the screens ;-) How did you implement them? On Sat, Feb 7, 2009 at 2:03 AM, Fred Grott(shareme) wrote: > > The delay is it is processing these items in your head..loading > javascript, css and etc. > > The way I handled it was setting background c

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

2009-02-07 Thread Mariano Kamp
Mark, maybe you should post some code? On Thu, Feb 5, 2009 at 4:36 PM, Mark Nuetzmann wrote: > > I have an Activity that has a WebView that contains some simple html > that allows me to display a Terms & Conditions link that if touched or > clicked calls another activity. My problem is unless th

[android-developers] Re: Application storage data growing

2009-02-07 Thread Mariano Kamp
I guess we're talking about /data/data/ Did you check there? You can use "adb -d shell" to open a shell on your device and the cd there. adb -d shell cd /data/data/ ls -l Btw. Do you use WebView in your app? It caches stuff until you remove it by calling WebView.clearCache() or tell WebView not t