[android-developers] Trouble with banding, dithering

2012-01-18 Thread Anm
First, let me say I am very familiar with Romain Guy's article on banding and dithering from Dec 2010. I'm working with a 2.3 device with a 1080p frame buffer and 16bit / 565 color depth. The visual style involves many dark grey gradients (baked lighting effects, actually). I'm having

[android-developers] VideoView Volume

2011-11-15 Thread Anm
Is there a way to control the volume of a VideoView's sound playback. More specifically, I want to control the volume of one of two video views, independently. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Drawing two animated gifs on a canvas

2011-06-22 Thread Anm
Generally, anything with more than one Surface view is apt to break. I've seen this issue with camera previews and media players in the same layout I don't think it was architected to share the render buffer. On Jun 21, 2:03 am, AndroidDev1 lior.naish...@gmail.com wrote: Hi, I am using a

[android-developers] Market Filter supports-screens not working like I expected

2011-06-21 Thread Anm
I uploaded an app today with the following market filter: supports-screens android:smallScreens=false android:normalScreens=true android:largeScreens=true android:xlargeScreens=false android:anyDensity=true

[android-developers] Re: RunOnUiThread loads images randomly !!

2011-05-30 Thread Anm
If you're loading or generating the images on multiple non-UI threads, they are probably being added to the view in the order they complete (of very near that). If that is not what you want, there are two things you can do to fix that. The simplest is to serialize the loading or genration in

[android-developers] Re: View.GONE but still accepts UI events

2011-05-24 Thread Anm
:31 PM, Anm andrew.n.marsh...@gmail.com wrote: This morning, I'm trying to animate the various state of a simple game.  I have a transparent cover ViewGroup with a start and other buttons.  When the user hits start, the entire cover animates away. At the end of the animation, I set the cover

[android-developers] View.GONE but still accepts UI events

2011-05-23 Thread Anm
This is something that I've run into a couple of times, and I'm just curious about the thought process behind such design, if intentional: When a view has visibility GONE, it is still allowed to accept UI events. This is especially strange in positional UI events like touch, where any

[android-developers] Re: View.GONE but still accepts UI events

2011-05-23 Thread Anm
, 2011 at 1:13 PM, Anm andrew.n.marsh...@gmail.com wrote: This is something that I've run into a couple of times, and I'm just curious about the thought process behind such design, if intentional: When a view has visibility GONE, it is still allowed to accept UI events.  This is especially

[android-developers] Camera driver on Nexus One v2.3.3

2011-04-17 Thread Anm
I'm trying to debug or work around camera driver issues on Gingerbread. In our app, the camera preview will start up, graba a few frames, and then crash the camera driver with the following error message: liboemcamera: config_proc_ctrl_command: SEVERE ERROR: attempt to override pending

[android-developers] VideoView Problems

2011-03-02 Thread Anm
I have a video view embedded in a somewhat complex UI. As part of the look, the container of the videoview tends to animate in and out from the sides (but the video isn't visible during the animation). To save some memory when the video container isn't visible, I'm trying to unref that subtree

[android-developers] bindService() instantiating a second Service instance

2011-01-11 Thread Anm
When memory profiling my app, I've noticed that multiple instances of the same local service class are getting instantiated. This is not my expectation from my interpretation of the APIs and service example code in the SDKs. My app is designed such that the service represents a data layer,

[android-developers] SSL from Android

2010-11-23 Thread Anm
What is the preferred way to do SSL on Android? Coming from a long time Java background, I have tended to jump to a https protocol URLConnection: // URL connection channel. HttpURLConnection url_connnection = (HttpURLConnection)url.openConnection(); // Let the RTS know

[android-developers] Re: SSL from Android

2010-11-23 Thread Anm
correctly On Nov 23, 11:55 am, Anm andrew.n.marsh...@gmail.com wrote: What is the preferred way to do SSL on Android? Coming from a long time Java background, I have tended to jump to a https protocol URLConnection:         // URL connection channel.         HttpURLConnection

[android-developers] Eclipse error on build.xml: Target debug/release does not exist

2010-10-16 Thread Anm
This is more of an Eclipse error than an Android or Ant error. My Eclipse project won't build because when it sees the build.xml created from the Android command, it starts looking for the debug and release commands. Well, since they are dynamically generated from the setup task, they don't

[android-developers] Re: Eclipse error on build.xml: Target debug/release does not exist

2010-10-16 Thread Anm
Apparently this is an age old problem: http://groups.google.com/group/android-developers/browse_thread/thread/317ce95facb10435 And annoyingly, it has not been solved with any satisfaction. This has got to be solved On Oct 16, 3:28 pm, Anm andrew.n.marsh...@gmail.com wrote: This is more

[android-developers] Re: Eclipse error on build.xml: Target debug/release does not exist

2010-10-16 Thread Anm
One solution, albeit a bit overreaching, is to disable all buildfile errors. Under Preferences - Ant - Editor, in the tab Problems, check Ignore all buildfile problems. From: http://stackoverflow.com/questions/3941177/skip-eclipse-validation-of-build-xml On Oct 16, 3:43 pm, Anm

[android-developers] Resources from gen/ classpath: works in Eclipse, but not Ant

2010-09-29 Thread Anm
I have a .properties file be generated in the gen/ classpath. Both Eclipse and Ant build tools copy the file to bin/ when compiling. The .apk created by Eclipse works fine. The .apk created by Ant returns null at class.getResourceAsStream(..). Unzipping the .apk's, I see the classpath with file

[android-developers] Ant build with Proguard (per blog) not obfuscating

2010-09-24 Thread Anm
not include the obfuscated files. My first hint was my stack traces, but I confirmed it with dedexer. Has anyone else verified their .apk? How does the compile step know what .class files to use? (I'm hoping its not assuming some hard coded path.) Anm -- You received this message because you

[android-developers] Re: Ant build with Proguard (per blog) not obfuscating

2010-09-24 Thread Anm
Thanks for the clue. It turns out my problem was where I inserted the XML entity. I place it after setup /, but setup locked the property with the default value before the referenced property task was executed. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: INSTALL_FAILED_MISSING_FEATURE Question

2010-09-13 Thread Anm
I have also seen uses-features fail only after a uses-library was added. In my case, I was installing an app requiring hardware telephony to be installed on an emulator, which worked without complaint until I added my google maps functionality. Now I've added android:required=false to my

[android-developers] URL to packaged resource?

2008-11-27 Thread Anm
not available .. requested file was not found). What is the right way to do this (if there is one)? Anm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

[android-developers] Re: Maximize size for Dialog themed activity?

2008-11-14 Thread Anm
This worked... @Override protected void onMeasure( int widthMeasureSpec, int heightMeasureSpec ) { super.onMeasure( widthMeasureSpec, heightMeasureSpec ); // // Despite any measurements of children, always assume the maximum available area. //

[android-developers] G1 Bug: Google Imported Primary Phones

2008-10-28 Thread Anm
to have to manually filter a Cursor that does not include the isprimary==1 selection. Anm --~--~-~--~~~---~--~~ 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

[android-developers] Re: How to format data within Cursor before displaying to screen?

2008-10-28 Thread Anm
A SimpleAdapter is too simple for your case. Try creating a new class that overrides the CursorAdapter, which gives you two methods: newView(..) and bindView(..). You can still use your XML based layout inside newView(..) using the LayoutInflater and findById(..): @Override

[android-developers] Re: Starting new Activity vs. setContentPane(newView)

2008-10-26 Thread Anm
to try to get to the bottom of it. Anm --~--~-~--~~~---~--~~ 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

[android-developers] Re: Join via ContentProvider

2008-10-26 Thread Anm
On Oct 25, 2:47 pm, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2.http://code.google.com/android/samples/ApiDemos/src/com/example/andro... - Juan On Oct 24, 3:05 am, Anm [EMAIL PROTECTED] wrote: I'm struggling to understand how to do a join, if its possible, with the decomposed SQL

[android-developers] Join via ContentProvider

2008-10-24 Thread Anm
I'm struggling to understand how to do a join, if its possible, with the decomposed SQL arguments of the ContentProvider APIs. Is there an example out there? Or if not, could some code up a quick example, say joining People with GroupMembership?

[android-developers] Re: Join via ContentProvider

2008-10-24 Thread Anm
On Oct 24, 2:47 am, Evan JIANG [EMAIL PROTECTED] wrote: There's a android.database.CursorJoiner class to join 2 cursors Excellent. Too bad about the sort prerequisite. Looks like we need a SortCursor, since sorting on _id is nearly useless. For my app, I don't expect the results to be

[android-developers] Re: Starting new Activity vs. setContentPane(newView)

2008-10-24 Thread Anm
, with the help of things like Any Cut) can bookmark a page inside your app, invoking the relevant data. Anm On Oct 24, 10:55 am, Robert K. [EMAIL PROTECTED] wrote: oops, not setContentPane put setContentView :-) On 24 Okt., 19:54, Robert K. [EMAIL PROTECTED] wrote: Question: Why

[android-developers] Re: Getting source under Windows (from web interface).

2008-10-22 Thread Anm
There is a port of git in Cygwin. It works just fine. --~--~-~--~~~---~--~~ 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

[android-developers] Re: Create Data Base

2008-10-21 Thread Anm
Walk through the Notepad example: http://code.google.com/android/intro/tutorial.html Then study the NotesDbAdapter.java file for the specifics of how it creates and interfaces with the database. Anm On Oct 21, 12:53 pm, andrex [EMAIL PROTECTED] wrote: Hi all, i was loking for an example

[android-developers] Re: ContentProviders and Security of SQL Snippets

2008-10-19 Thread Anm
Actually.. this was the real point of my message: Anm wrote: I'm wondering if anything exists in the APIs or automatically behind the scenes to sanitize the strings coming into a ContentProvider. In other words, I recognize there are ways around it. I'm wonder if solutions already exist so

[android-developers] Re: SQLite problems: how to use LIKE expression

2008-10-18 Thread Anm
comparison. Anm --~--~-~--~~~---~--~~ 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 [EMAIL

[android-developers] ContentProviders and Security of SQL Snippets

2008-10-18 Thread Anm
discussion about this issue here: http://code.google.com/p/android/issues/detail?id=159 But no follow-up. (It seems strange to me that this security related bug, arising from a fundamental design flaw of a core API is acknowledged as a defect but only marked as Medium priority.) Anm

[android-developers] adb Error: ADB server didn't ACK

2008-10-17 Thread Anm
I have a strange problem with my setup. I went to begin programming this morning, but Eclipse wouldn't start my apps, giving me this error: The connection to adb is down, and a severe error has occurred. It appears I'm not alone, as this unanswered thread asks the same problem:

[android-developers] Eclipse Layout Editor Errors

2008-10-17 Thread Anm
I have been having repeated errors with the layout editor in the Eclipse plug-in. The first error I have seen involves loading the file: Could not open the editor: The editor class could not be instantiated. This usually indicates a missing no-arg constructor or that the editor's class name was

[android-developers] Re: Eclipse Layout Editor Errors

2008-10-17 Thread Anm
I am very definitely using Java 1.5, as I'm using generics and such. Additionally, the Java 1.6 java/javac fail miserably with a Bad CPU type. Apparently, I'm not the only one: http://www.anddev.org/viewtopic.php?p=11577#11642 Anm --~--~-~--~~~---~--~~ You

[android-developers] Emulator bug: Intent action/categories is null

2008-10-15 Thread Anm
ACTION_MAIN and CATEGORY_LAUNCHER (or possibly some CATEGORY_REMOTE). Which leads me to a question: What is the exact process the Eclipse plug-in uses to remotely invoke an application? Is it general enough to invoke any type of Intent? Anm

[android-developers] Re: MapView API Key??

2008-10-15 Thread Anm
Is this not it: http://code.google.com/apis/maps/signup.html Same key used by any Google Maps mash-up. Anm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: AliasActivity: Two Questions

2008-10-13 Thread Anm
Hmmm.. I tested it again and the startActivity()/finish() seems to be working now. It may have been an issue with an exception that was thrown in the child activity during initialization. I would launch the app, briefly see the entry-point activity, get a first draw of the child, and then a

[android-developers] AliasActivity: Two Questions

2008-10-12 Thread Anm
-enters the child. What should I be doing instead? (I.e., What does AliasActivity do?) Anxiously awaiting the sources so I can answer these types of questions on my own. Anm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] AliasActivity: Two Questions

2008-10-12 Thread Anm
-enters the child. What should I be doing instead? (I.e., What does AliasActivity do?) Anxiously awaiting the sources so I can answer these types of questions on my own. Anm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Emulator Orientation Change on Mac

2008-10-11 Thread Anm
of stale docs in general? I've found one or two other things (like talking about Layout, instead of ViewGroup, when customizing components), but I've only been working with the stuff for a couple of weeks. Anm --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Emulator Orientation Change on Mac

2008-10-10 Thread Anm
From the emulator keyboard command docs: Switch to previous layout orientation (for example, portrait, landscape) KEYPAD_7, F11 Switch to next layout orientation (for example, portrait, landscape) KEYPAD_9, F12 These don't seem to work on a Mac. Normally the F11 and F12 keys

[android-developers] Re: Cannot create new Android Projects

2008-10-09 Thread Anm
I eventually re-installed Eclipse and the Android plug-ins, but not the SDK, and that fixed the problem. On Oct 6, 2:47 am, Baonq86 [EMAIL PROTECTED] wrote: I have a same problem with you. I have installed again (Android SDK and eclipse) and it works well On Oct 6, 9:52 am, Anm [EMAIL

[android-developers] Cannot create new Android Projects

2008-10-05 Thread Anm
My Eclipse framework no longer create new Android Projects. I get the following error: Cannot create linked resource '/.org.eclipse.jdt.core.external/ folders/.link0'. The parent resource is not accessible. After clicking past the error, I see a stub project with three errors: one.test.Main

[android-developers] Re: Cannot create new Android Projects

2008-10-05 Thread Anm
Another couple of clarifications to the below message: I have no problems building Java projects. I'm running Ganymede on Mac 10.5. On Oct 5, 11:01 am, Anm [EMAIL PROTECTED] wrote: My Eclipse framework no longer create new Android Projects.  I get the following error: Cannot create