[android-developers] Re: onDraw calling frequency

2009-04-04 Thread Greg Krimer
Creating a new Paint object is mentioned as something to avoid here: http://android-developers.blogspot.com/2009/02/track-memory-allocations.html I suppose it really depends on the frequency of the onDraw calls. I can tell you that it made a noticeable difference for us. We have a custom view tha

[android-developers] Re: Anybody can help me with the control style?

2009-04-04 Thread Greg Krimer
Hi, A good place to start is to look at the ApiDemos application to see if there is anything there close to what you want. The best I found is com.example.android.apis.view.Animation2, which uses a ViewFlipper to transition from one view to another with various animations. It's not exactly what w

[android-developers] Re: play video error

2009-04-04 Thread Nithin Varamballi
Thank you sir NIthin N V --~--~-~--~~~---~--~~ 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 em

[android-developers] Re: Question about 'hasFocus' field in HierarchyViewer

2009-04-04 Thread Romain Guy
hasFocus is different from isFocused. hasFocus == true means that the View or one of his descendants is focused. If you look closely, there's a chain of hasFocused Views till you reach the View that isFocused. The new HiearchyViewer that comes with Cupcake makes that more obvious by coloring the

[android-developers] FILL_AND_STROKE not working for Rectangle

2009-04-04 Thread Ren
When I set Paint.Style to FILL_AND_STROKE and drawRect, I got the same result as STROKE. FILL worked as expected in drawRect. FILL_AND_STROKE worked ok under drawOval() Has anyone experienced same problem? -- Kind Regards, Ren --~--~-~--~~~---~--~~ You received

[android-developers] Question about 'hasFocus' field in HierarchyViewer

2009-04-04 Thread Lucius Fox
When I look at all the views in HierarchyViewer, why there are multiple views's 'hasFocus' is true? I am under the assumption that only 1 view can have focus at a time. If so, why there are multiple view's hasFocus be true? Thank you. --~--~-~--~~~---~--~~ You rec

[android-developers] Re: override errors when migrating development computers

2009-04-04 Thread Bob
Thanks so much, I wouldn't have figured that out in a thousand years! For others, this is what I did in Eclipse to fix it: Went to Project->Properties->Java Compiler-> and changed Compiler compliance level from 1.5 to 1.6 On Apr 4, 1:50 pm, Jean-Baptiste Queru wrote: > You probably migrated fro

[android-developers] Re: How to login to the root of Android Dev Phone 1?

2009-04-04 Thread havexz
Well i finally get the solution..u have to use the "su" command to login as root and then have to change the permissions for the folder (in my case its data). Once done that then you can easily move files using the eclipse DDMS from the Android Dev Phone 1. But remember you also need to change

[android-developers] Re: ContentProvider instance

2009-04-04 Thread Dianne Hackborn
Permissions are not relevant for this. Just make sure each of the providers is published under a unique authority (please please please use a name properly scoped to your own namespace) and you should be fine. But if you are making these things for only private access in your app, you might to ba

[android-developers] Re: How to troubleshoot a Stackoverflow error in android ViewRoot?

2009-04-04 Thread Dianne Hackborn
Whatever source code you are looking at does not match the build you are running on. deliverKeyEventToViewHierarchy() is a recursive traversal down the view hierarchy to deliver a key event. Most likely you view hierarchy is too deep. Try using hierarchyviewer to look at it, and simplify it (whi

[android-developers] How to troubleshoot a Stackoverflow error in android ViewRoot?

2009-04-04 Thread Lucius Fox
I am getting a StackOverflow error inside ViewRoot, I would appreciate some help in troubleshooting it? I don't understand why it causes a StackOverflow, since from the stack trace, it is not calling something recursive. And i don't understand why it report line 2155 as the line for the exception:

[android-developers] Re: How the use same instances when launching application twice ?

2009-04-04 Thread Dianne Hackborn
As I've said, what you are saying you want is the normal behavior. To everyone, you must give -detailed- information about exactly what you are doing for there to be any hope of someone being able to help you. In particular, provide: (1) Your complete AndroidManifest.xml (2) The exact code you a

[android-developers] Re: attach database gives failure 14

2009-04-04 Thread bvdev
> It's more a question of where it resides. You have read/write access to > /data/data/your.package.here/databases, for example. You are right. There is no read permission for "Other". Looks like this is the default permission for all app. databases. Thanks, bvdev --~--~-~--~~-

[android-developers] Re: attach database gives failure 14

2009-04-04 Thread Mark Murphy
bvdev wrote: > Does the API restrict you from attaching to another database while you > have one open? > > I tried the SQLite3 command "attach database .../contacts.db as > aliasdb" > > This works in the adb shell and I'm able to perform joins with tables > in this database. > When I use the sam

[android-developers] Re: attach database gives failure 14

2009-04-04 Thread bvdev
No. How do I check database read permission for contacts.db? > 14 is SQLITE_CANTOPEN -- are you sure you have permissions to access > that database from your application? > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _The Busy Coder's Guide to An

[android-developers] Re: adb push wtf

2009-04-04 Thread Mark Murphy
Bo wrote: > Would you please give a little more detail about pushing files to that > app-local file sotre? I still got the "permission denied" when I was > trying to push a file there (My phone don't have that "files" > subdirectory). Then you can't push it there. Your application will need to do

[android-developers] Re: add files to data/data folder of android phone

2009-04-04 Thread Bo
On Feb 19, 8:44 pm, david liu wrote: > I can create it, there is no permission for this one. Could you please share how you create it? Thanks, ~ ~ > > On Thu, Feb 19, 2009 at 6:26 PM, Munish wrote: > > > > > Hi > > > I tried to access the data from "data/data" folder from emulator > > memory

[android-developers] Analyzed and fixed "...acore has stopped unexpectedly" issue

2009-04-04 Thread Jonas Petersson
Hi all, I recently experienced the cyclic - and somewhat random: "Android.process.acore has stopped unexpectedly" problem and googling it mostly came up with nothing and in a few cases "fixed it by wiping the phone". I found that unsatisfactory, so I decided to dig deeper. To me it was pretty

[android-developers] Anybody can help me with the control style?

2009-04-04 Thread AllSet
i am trying to make a control which looks like the ZoomControls. it is supposed to show up when clicking in a certain area and disappear a few seconds later. also it should accept the onClick event. but i don't know exactly how to realize such a control. could anybody help me? thanks in advan

[android-developers] Re: adb push wtf

2009-04-04 Thread Bo
Hi Mark, Would you please give a little more detail about pushing files to that app-local file sotre? I still got the "permission denied" when I was trying to push a file there (My phone don't have that "files" subdirectory). Thanks a lot, and Best regards, Bo On Apr 3, 11:10 pm, Mark Murphy

[android-developers] WebView and HTTPS URLs

2009-04-04 Thread harrywynn
I'm currently working on porting an iPhone app to Android. It utilizes the flickr API, so it requires the user to authorize the app before it can do any actions on behalf of the user. I'm looking to use a WebView to accomplish this, as the user needs to navigate to a particular URL linking their

[android-developers] Re: Weird problem with connecting to a service

2009-04-04 Thread nassimlaga
Hi ATrubka, I had exactly the same problem, and I would know if you get any solution about it?? thanks in advance Laga On Feb 28, 12:38 am, ATrubka wrote: > I'm trying to connect to a service, but for some reason connection's > onServiceConnected() never gets invoked with no other errors. It's

[android-developers] Re: ContentProvider instance

2009-04-04 Thread ylx_presid...@hotmail.com
How about use "permission" in your AndroidManifest.xml to impl. it? ... android:permission="android.permission.ACCESS_BLUETOOTH_SHARE"/> On Apr 3, 9:34 am, "davidandroid2...@yahoo.com" wrote: > I have multiple applications which use the same ContentProvider code > for internal WebView to acc

[android-developers] Re: service permissions problem

2009-04-04 Thread adumitru007
Hello Matt, Please be kind and share the solution with us, I am having the same problem, I need android.permission.RECORD_AUDIO. Thanks a lot. On Feb 10, 7:17 am, Matt Flax wrote: > Solution found ... > > > > On Tue, Feb 10, 2009 at 12:13 PM, flatmax wrote: > > Hello, > > > I have a service w

[android-developers] Re: service permissions problem

2009-04-04 Thread adumitru007
Please be kind and share the solution. Thank you. On Feb 10, 7:17 am, Matt Flax wrote: > Solution found ... > > > > On Tue, Feb 10, 2009 at 12:13 PM, flatmax wrote: > > Hello, > > > I have a service which uses the RECORD_AUDIO permission. > > > I have set up my androidmanifest.xml file as I wou

[android-developers] Dialer App Source Code

2009-04-04 Thread TJ104
Hello, First of all, Thank you to Google for Android! It isn't perfect, but it has A LOT of promise! I was looking to write an app that would utilize the keypad in Google's dialer app. I've looked around and I haven't been able to stumble on to the code for the keypad. I don't know if I'm using th

[android-developers] Re: sound effect using SoundPool

2009-04-04 Thread Nerdrow
I've been able to work around most of the current bugs in SoundPool while developing a step-sequencer app, but my sticking point is stopping a non-looping sound once it's started. I've seen this code suggested here and in a few other threads as a workaround for the pause/stop bug: mSoundPool.s

[android-developers] Eclipse Android XML Editor Errors

2009-04-04 Thread Ryan Loebs
Hey folks, I'm trying to setup the development environment on my Linux laptop and Mac PC but I'm having issues with both environments. When I try setting it up in Windows it goes down without a hitch. When I try to do it in both Linux and Mac it all works up to opening any of the XML editors.

[android-developers] Re: How the use same instances when launching application twice ?

2009-04-04 Thread Lovell
I think I have the same question, but I'm going to try to explain it a little better: My app has 4 activities on the stack A->B->C->D (top) If you press home and re-enter the application, another instance of A is started, so the stack is A->B->C->D->A (top). I know this because when I press BACK

[android-developers] Re: a receiver for outgoing sms and email?

2009-04-04 Thread Seer
I have been trying to catch outgoing sms and i can tell you it is currently impossible. No one on here or the platform knows a way to do it and from the people i have spoken to most have did not seem to even think people may want to do so. Hopefully it is a feature added in the future. On Feb 5,

[android-developers] Re: attach database gives failure 14

2009-04-04 Thread Mark Murphy
bvdev wrote: > No. How do I check database read permission for contacts.db? It's more a question of where it resides. You have read/write access to /data/data/your.package.here/databases, for example. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android

[android-developers] attach database gives failure 14

2009-04-04 Thread bvdev
Does the API restrict you from attaching to another database while you have one open? I tried the SQLite3 command "attach database .../contacts.db as aliasdb" This works in the adb shell and I'm able to perform joins with tables in this database. When I use the same command via the API using "db

[android-developers] Re: Passing keyevents to the next activity in the stack

2009-04-04 Thread Dianne Hackborn
Setting FLAG_NOT_FOCUSABLE on the window should probably work. Make sure you are setting it before you add your content view, and using the API to add flags instead of just directly poking the LayoutParams structure. On Sat, Apr 4, 2009 at 9:43 AM, marmor wrote: > > Hi, > > I'm trying to create

[android-developers] Re: Some question about market rate

2009-04-04 Thread clark
A rooted G1 is one that the user has root access to. In linux, root is the administrator user that has full access to the system. The best thing to do is check out this forum http://forum.xda-developers.com/showthread.php?t=442480 and read up on rooting your G1. Please note that having root ac

[android-developers] Re: override errors when migrating development computers

2009-04-04 Thread Jean-Baptiste Queru
You probably migrated from a Java 1.6 to a Java 1.5 environment. Java 1.6 allows to specify @override on interface methods, Java 1.5 restricts it to superclass methods. JBQ On Sat, Apr 4, 2009 at 10:07 AM, Bob wrote: > > Hi, > I am trying to change the computer that I am developing on. I > ins

[android-developers] WebView with theme doesn't show focused text field values

2009-04-04 Thread Rmac
I have encountered a problem with focused text fields in a WebView not showing entered text values. As long as a WebView text field has focus it will not show text or even the blinking cursor. You can select and highlight the text or unfocus the field to see it, but when it gains focus it will n

[android-developers] Re: onDraw calling frequency

2009-04-04 Thread Ikon
Does that really help? I mean, is GC that bad? On Apr 4, 4:03 am, Greg Krimer wrote: > That sounds fine to me. Just remember to respect the clip rectangle > (canvas.getClipBounds()) and ideally not spend time computing Paints > for areas outside the clip. > > Also, don't create a new Paint objec

[android-developers] Re: static vs non-static inner classes

2009-04-04 Thread Romain Guy
I wrote that debugging code because of a couple of memory leaks I found in the Android codebase. Like you said, a Message has a reference to the Handler which, when it's inner and non-static, has a reference to the outer this (an Activity for instance.) If the Message lives in the queue for a long

[android-developers] Re: How to write to the File ?

2009-04-04 Thread Evgeny V
Try this: private boolean SaveDataToFile(SomeType data) { ObjectOutputStream objectOut = null; try { File file = new File("sdcard/" + MY_PACKAGE_NAME); if(!file.exists() && file.mkdir()) { file = new File(MY_FILE_NAME); if(!file.exists()) fi

[android-developers] override errors when migrating development computers

2009-04-04 Thread Bob
Hi, I am trying to change the computer that I am developing on. I installed the Android SDK and imported my existing project with Import- >Existing Projects Into Workspace. My project has no errors on the old computer but on the new one I get a bunch errors for my overrides of onClick, onFling,

[android-developers] Passing keyevents to the next activity in the stack

2009-04-04 Thread marmor
Hi, I'm trying to create an activity which would be on top of other activities (a small dialog themed activity) and I want to get ALL key events to be ignored by my activity and handled normally by the activity beneath it. When I say all I mean the send, end and back keys too. Is this possible?

[android-developers] nullifying imageview src

2009-04-04 Thread Sheepz
Hi all, i'm making a little card game in order to learn the more interesting stuff of the UI and I have a question: i want to show 5 cards on the table, for that i have made 5 imageviews in the xml:

[android-developers] Re: play video error

2009-04-04 Thread Marco Nelissen
What do you mean by "windows flat form"? If you want to play a file in the emulator, you will have to create an sd card image, copy the file to it, and then run the emulator with that sd card image. You cannot play a file directly off your C: drive. On Fri, Apr 3, 2009 at 10:49 PM, Nithin Varam

[android-developers] Droid Translate

2009-04-04 Thread kelly
Hello, I've been playing around with GWT this week, and wrote a small app to translate strings.xml files into other languages. It's pretty basic, but I thought I'd make it known in case anyone here had any use for such a thing. http://fognl.com/droid-translate Thanks, Kelly Schrock Fognl --~--~

[android-developers] Re: Translators for Localization

2009-04-04 Thread wescorp
Fat thumbed a link, should be http://www.translatorscafe.com Wes On Apr 4, 9:30 am, wescorp wrote: > Hi All, > > Not to bug you here, but when I was looking for translators for my > application, I came across two sites that allow translators to bid on > your work.  Every language known, quality

[android-developers] Translators for Localization

2009-04-04 Thread wescorp
Hi All, Not to bug you here, but when I was looking for translators for my application, I came across two sites that allow translators to bid on your work. Every language known, quality work, and very competitive pricing. In need of a translation of your application? Visit www.proz.com or www.t

[android-developers] Bluetooth headset service is always running - Is it normal?

2009-04-04 Thread sm1
On my phone, a dev phone, the bluetooth headset service is always running even though bluetooth connectivity is disable in the Settings app. Is this normal? The ear speaker is not emitting any sound for maybe two weeks now, even if the on-call sound level is at max (5), so I'm checking a few thin

[android-developers] Locale Problem

2009-04-04 Thread wescorp
Hi All, I've been working on localization. I think I have localization working correctly throughout my application. In one case though, something is amiss. Normally, after a web view creation, a toast message appears providing a message to the user and works great with the locale. Then if the d

[android-developers] Re: why repo sync can not get the alsa module from git repository though they are there on http://android.git.kernel.org/

2009-04-04 Thread Jean-Baptiste Queru
This isn't quite the right group for this question, at the moment android-porting would be appropriate. The alsa code is specific to certain hardware and isn't part of the core Android Open-Source Project, so it isn't included in the main manifest for the project. JBQ On Sat, Apr 4, 2009 at 6:4

[android-developers] why repo sync can not get the alsa module from git repository though they are there on http://android.git.kernel.org/

2009-04-04 Thread max
Hi, All, I use the following command to fetch all the source code of android repo init -u git://android.git.kernel.org/platform/manifest.git repo sync but I can not get platform/external/alsa-lib.git and platform/hardware/ alsa_sound.git I don't know what's the rule for repo to fetch the code

[android-developers] Bluetooth headset service is always running - Is it normal?

2009-04-04 Thread sm1
On my phone, a dev phone, the bluetooth headset service is always running even though bluetooth connectivity is disable in the Settings app. Is this normal? The ear speaker is not emitting any sound for maybe two weeks now, even if the on-call sound level is at max (5), so I'm checking a few thin

[android-developers] Re: How is android's AlertDialog layout define?

2009-04-04 Thread iPaul Pro
On Mar 23, 3:27 pm, Lucius Fox wrote: > Can you please tell

[android-developers] Re: Contacts-like Widget...

2009-04-04 Thread Mark Murphy
Inderjeet Singh wrote: > What I like about Contacts widget is the > small position indicator (with the first letter of the words currently > getting scrolled) on the right scroll bar. I don't know how they do that, but Romain Guy implemented the same thing in his Shelves open source app, so you m

[android-developers] Re: I want run my application in background, with "Service component"

2009-04-04 Thread jj
Thank you for reply can you just send me the tutorial link, what u mentioned in first paragraph Or any other related tut link. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] Re: How to write to the File ?

2009-04-04 Thread Mark Murphy
javame_android wrote: > Hi All, > > I would like to know how to write to file. I have tried using > > OutPutStream out = new FileOutPutStream(fileName); > out.write(byte [], 0, length); > > This way always returns Parent directory or File is not writable. > > I have also used openFileOutPut(fi

[android-developers] How to write to the File ?

2009-04-04 Thread javame_android
Hi All, I would like to know how to write to file. I have tried using OutPutStream out = new FileOutPutStream(fileName); out.write(byte [], 0, length); This way always returns Parent directory or File is not writable. I have also used openFileOutPut(fileName, MODE_PRIVATE) method but this meth

[android-developers] Re: Some question about market rate

2009-04-04 Thread Evgeny V
Thanks Clark! That exactly what I thought! I have almost same when 46 % active installs and 3.5 stars. How can I install and run the app on SD card? What do you mean "rooted G1"? Is this option will be a part of standard framework? Sorry for so many questions :) Thanks in advance, Evgeny On Sat,

[android-developers] Transparent Canvas?

2009-04-04 Thread Henry
I'm trying to make an app that requires me to draw over a layout with buttons, etc. I want to build a transparent canvas over the current layout and draw onto that canvas. How is this done? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: ContentProvider instance

2009-04-04 Thread davidandroid2...@yahoo.com
Anyone? On 4月2日, 下午6时34分, "davidandroid2...@yahoo.com" wrote: > I have multiple applications which use the sameContentProvidercode > for internal WebView to accesslocalfiles (application private). > Because theContentProviderhas the same code base (package name, > content uri), this will cause p

[android-developers] Re: Why there are 2 instance of same Activityes?

2009-04-04 Thread davidandroid2...@yahoo.com
Dianne, Are there specific things I should check in "adb shell dumpsys activity" for this problem? Thanks, David On 4月3日, 上午11时26分, Dianne Hackborn wrote: > You might want to post some code. > > Also, "adb shell dumpsys activity" lets you see the system's current > activity stack (the first pa

[android-developers] Re: Webview timeout

2009-04-04 Thread davidandroid2...@yahoo.com
Anyone? On 4月2日, 下午5时57分, "davidandroid2...@yahoo.com" wrote: > Is there a way to set the timeout value in WebView? I want the WebView > to be timeouted within 10 seconds if the url is too slow to response. > Havn't able to find any api to support that. > > Thanks, > David --~--~-~--~---

[android-developers] Re: onDraw calling frequency

2009-04-04 Thread Greg Krimer
That sounds fine to me. Just remember to respect the clip rectangle (canvas.getClipBounds()) and ideally not spend time computing Paints for areas outside the clip. Also, don't create a new Paint object in onDraw(). Create the Paint object once, store it in your view and re-use it on every draw o

[android-developers] Re: Image download issue

2009-04-04 Thread Greg Krimer
Your code looks fine to me. I have used similar code without problem. Is it possible that some of your images are corrupt? Check the logs. When BitmapFactory.decodeStream() returns null it logs a single-line error message such as: 04-04 00:55:14.184: DEBUG/skia(31069): xxx jpeg error 53

[android-developers] [TextView] What are that XML Attributes in JAVA ?

2009-04-04 Thread DaRolla
Hi, I need to programm this XML in JAVA. Some I figured out, some not. Can you help me on the missing ones? TextView tv = new TextView(this); //android:layout_width="150px" tv.setWidth(150); //android:layout_height="wrap_content" ??? //android:text="Bladidadi" tv.setText("Bladidadi"); //

[android-developers] Re: Handler and MessageQueue question

2009-04-04 Thread Greg Krimer
Hi Taísa, I am reversing the order of your questions. > Did you say the main thread has its own handler?! So, if mine no more > exists, the it will handle that message? As Dianne said, your handler is not associated with the activity. The behavior of your handler is not influenced by the state

[android-developers] Re: static vs non-static inner classes

2009-04-04 Thread Greg Krimer
Thank you very much for the reply! After reading what Fadden said weeks ago, I happily converted my static inner handler classes to non- static ones. Just recently, I was browsing the source code of Handler and came across this bit of internal Android debugging: /* * Set this flag to tr