[android-developers] Re: Intercept layout android loading choice

2012-09-07 Thread sparky
I think switching it in setContentView() is exactly right. The main question then is, how do you decide which user gets which layout, and how do you make it consistent? The latter, I would accomplish by writing something into Shared Preferences. On Sep 7, 2:16 pm, Jose Ayerdis

[android-developers] Re: doubt on customview

2012-09-07 Thread sparky
http://developer.android.com/training/basics/firstapp/index.html On Sep 7, 10:52 am, vadivel rajan getvadi...@gmail.com wrote:  hi friends help me i just want to create TextView , Button and Edittext using java code and also extends the Linear layout in the class how to do?

[android-developers] Re: no. of downloads is not showing in play

2012-09-06 Thread sparky
I downloaded it to my tablet. Let's see if it shows up later today. On Thursday, September 6, 2012 10:59:22 AM UTC+2, RKJ (Android developer) wrote: All, In one of the my apps *A P J Abdul Kalam,* no of downloads is not showing in play.

Re: [android-developers] databse

2012-09-06 Thread sparky
Hi Justin, Thank you for the blog article. Nice in particular that you called out Android Training. I think Android Design is also going to emerge as an important go-to resource for people looking to do things that harmonize well with the platform. On Wednesday, September 5, 2012 12:33:52

[android-developers] Re: Password protect app before users can download from google play store

2012-09-02 Thread sparky
No, but there is something even better: on-line license verification. http://developer.android.com/guide/google/play/licensing/index.html Your app can ask Android Market any time whether the current user has a license to use it. If they aren't, then you can decide what to do about it. (For

[android-developers] Re: What is the best way to Download Images and texts and use them in my app?

2012-09-02 Thread sparky
Fetch your data from the network off the UI thread so the app remains responsive. Either use AsyncTask or a Service, and update the UI when the data is ready. On Sunday, September 2, 2012 1:52:46 PM UTC+2, Mohammad Abu Hmead wrote: Dear Developers, I created an app which load data from

[android-developers] Re: Updating Android Manifest file of an install apk.

2012-08-29 Thread sparky
You need to rebuild your APK with the new manifest and install it on the device. You can't change the manifest on-device. On Aug 29, 12:17 pm, Amit Sinha toamitsi...@gmail.com wrote: Hi, please let me know how can i modify the manifest file(AndroidManifest.xml) of installed apk. Need to

[android-developers] Re: tileMode = repeat with stretching the image in order to get an exact number of repetitions.

2012-08-29 Thread sparky
If you can accept stretching instead of repeating, you could use a very small 9-patch. On Aug 29, 1:08 pm, Pau Rodríguez Coloma paro...@gmail.com wrote: Thanks Romain for your help. This is what I was thinking that at the end I have to do. The design idea is that the line fills the screen width

[android-developers] Re: Get activity class instance

2012-08-29 Thread sparky
If your project is complex, then having Activities reading each others' member variables will only make it worse. You need encapsulation and clean interfaces. For small collections of data, maybe you could get away with extending Application and putting them there. Shared Preferences would also

[android-developers] Re: Handling localservice-to-activity callbacks

2012-08-29 Thread sparky
My robust/simple alternative goes like this: 1. Activity shows data taken from a ContentProvider. 2. Activity sends an Intent to an IntentService to get new content. 3. Service fetches content asynchronously and inserts it into the ContentProvider. Through configuration changes or whatever, the

[android-developers] Re: Android ADT not stating on Eclipse

2012-08-29 Thread sparky
Did you install and configure the ADT per the steps on this page? http://developer.android.com/sdk/installing/installing-adt.html On Aug 29, 8:50 am, JBoy writetoenr...@gmail.com wrote: Hi all, I'm trying to install the components for developing Android apps on my Mac with Leopard osx

[android-developers] Re: Provide pptx support in my app

2012-08-29 Thread sparky
Try to verify that you aren't including any library twice. On Aug 29, 8:31 am, prateek prateek.kaushi...@gmail.com wrote: Hello, I am trying to give pptx support in my app by converting pptx(from sdcard) into HTML view and then display it in the webview. For this I am using Apache POI

[android-developers] Re: USB Host hardware requirements?

2012-08-29 Thread sparky
I wouldn't take this as a rule, but more of a guideline: Phones don't do host-mode and tablets do (With exceptions). You may be better off trying to connect your sensor to an ADK than to a device. On Aug 29, 4:47 am, Kiran kiran.ka...@gmail.com wrote: Hi All, I have a USB based sensor that

[android-developers] Re: imac g5 ppc 12,1

2012-08-29 Thread sparky
Apple Java should give you the necessary Java 6 support. Open a Terminal window and type: javac -version Does it say something beginning with javac 1.6? On Aug 29, 3:41 am, Errol r3whitme...@gmail.com wrote: I guess that I am short of luck running the jdk 6 app. I don't seem to be able to

[android-developers] Re: Updating Android Manifest file of an install apk.

2012-08-29 Thread sparky
that will be mention in the manifest file? so that i can modify the permissions. thx. On Wednesday, 29 August 2012 17:01:28 UTC+5:30, sparky wrote: You need to rebuild your APK with the new manifest and install it on the device.  You can't change the manifest on-device. On Aug 29, 12:17 pm

[android-developers] Re: TWO APPS WITH SAME NAME

2012-08-28 Thread sparky
Since nobody seems to have answered your question from the technical sense, I will. What Android (and Google Play) uses to decide if two apps are the same is the full.package.name. As long as the package names are unique, the system doesn't care if they have the same name. On Aug 27, 7:26 pm,

[android-developers] Re: Goiogle Play - Dev Console not updating since July 25

2012-07-29 Thread sparky
The Google Play people are aware of the problem. You can review known issues at this page: https://support.google.com/googleplay/android-developer/bin/static.py?hl=enpage=known_issues.cs On Jul 28, 6:00 pm, Kaptkaos kaptkao...@gmail.com wrote: I was wondering if anyone else was seeing this.

[android-developers] Re: C2DM registration down?

2012-06-04 Thread sparky
Registration should be working again. It was down for around 2 days, AFAIK. On Jun 4, 10:08 am, Jean Baptiste PIETIN jbpie...@gmail.com wrote: Hello, Is there any news about this issue ? I'm waiting for one week now to register on C2DM. Thanks for feedback. JB. On 31 mai, 18:13,

[android-developers] Re: Contacting Google - how things are done... by Google

2012-05-21 Thread sparky
I'm following up on this. On May 15, 6:57 pm, Stanislav Vlasic svla...@gmail.com wrote: Hello to group! I have nothing much to say, see link below: http://www.wgmetal.hr/documents/contacting_google.pdf -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Need help about Play Store banned application.

2012-04-05 Thread sparky
The email from Google Play should have told you how to follow up. I don't have access to the reasons why your app was suspended, but if it the app is okay, maybe your screen shots had a problem. On Thursday, April 5, 2012 1:37:01 PM UTC+2, Tolriq wrote: Hello, I've got a little problem

Re: [android-developers] Re: Need help about Play Store banned application.

2012-04-05 Thread Sparky Rhode
with an app that needs to be updated, . Le jeudi 5 avril 2012 15:00:17 UTC+2, sparky a écrit : The email from Google Play should have told you how to follow up. I don't have access to the reasons why your app was suspended, but if it the app is okay, maybe your screen shots had a problem

[android-developers] Re: onPause isn't invoked after calling finish()

2012-02-25 Thread sparky
See this documentation: http://developer.android.com/guide/topics/fundamentals/activities.html#ImplementingLifecycleCallbacks You should get only onDestroy() after finish(). On Saturday, February 25, 2012 12:20:17 AM UTC+1, 桂洲 吴 wrote: Must the onPause be invoked after calling finish()? In

[android-developers] Re: ICS - OpenGLRenderer is out of memory! on Launcher application (Fonts are broken)

2012-02-23 Thread sparky
Hi Johnnie, I have reposted your question and an answer on Stack Overflow: http://stackoverflow.com/questions/9412662/how-can-fonts-cause-opengl-out-of-memory-error -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: ICS - OpenGLRenderer is out of memory! on Launcher application (Fonts are broken)

2012-02-21 Thread sparky
Hi Johnnie, Is your widget using very big fonts? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Have I missed some step to be able to post?

2012-01-30 Thread sparky
Sorry, Ted, we don't usually moderate over the weekend. -- 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: Audio During a Call

2012-01-30 Thread sparky
The link that you cite describes the microphone picking up audio played over the external speaker. Every example that I know of for injecting audio into the call uses this workaround. You could call it a failure in the echo cancellation of the phone, but more likely it's just that sounds in

[android-developers] Re: Broken Links in Documentation

2012-01-30 Thread sparky
Thank you for the astute catch, Phil. I opened a bug to fix this documentation. -- 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: Limit App Usage

2012-01-23 Thread sparky
Make it rely on a network resource that is accessible only from within your organization. -- 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

[android-developers] Re: Writing a wav audio file using RandomAccessFile

2012-01-23 Thread sparky
I don't see you placing your file in External Storage. I suggest you review this document: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: andengine vs libgdx

2012-01-23 Thread sparky
The one that is most understandable to you and will get you running working code fastest is the best. -- 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: Rotation event landscape to reverseLandscape

2012-01-23 Thread sparky
You can implement an OrientationEventListener. -- 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: Dynamic Layout In Array

2012-01-23 Thread sparky
You may want to consider combining a ContentProvider (for your database), a ListFragment (to display the items) and a Loader. You can find an example at the bottom of this page: http://developer.android.com/guide/topics/fundamentals/loaders.html -- You received this message because you are

[android-developers] Re: Limit App Usage

2012-01-23 Thread sparky
Sounds to me like something you could do with Google Docs. :-) -- 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: Best Practices: Which SDK should I choose for a new project?

2012-01-23 Thread sparky
Your path of least resistance, I think, is probably to target 2.1 initially. Then, once you have your basic functionality ironed out, bump up targetSdkVersion and use reflection techniques to optionally support features made available in later releases. You may wish to refer to these

[android-developers] Re: anybody looking for android trainer

2012-01-23 Thread sparky
Offering or soliciting work is off-topic for android-developers. Would you please consider moving it to android-discuss? -- 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: Want to increase frame rate(fps), How???

2012-01-17 Thread sparky
Before we even consider code optimizations, look at the amount of work you are doing. Do you really want to expand every preview frame into a JPEG? Let's do the math: Suppose every JPEG frame is 100 KB. 100x1000x8x15 = 12 Mbps. Can you sustain that kind of transfer? Maybe you should

[android-developers] Re: android:screenOrientation not allowed in a style?

2012-01-17 Thread sparky
What is your goal? Are you trying to force the screen into landscape, or are you trying to change the style based on screen orientation? (I hope the latter, because it's not recommended to override the user's preferred screen orientation.) -- You received this message because you are

[android-developers] Re: contact database structure

2012-01-17 Thread sparky
Android already does this out of the box. What do you need that the base system doesn't provide? -- 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

[android-developers] Re: nfc compatibility for 2.2 android

2012-01-16 Thread sparky
Since NFC wasn't added to the platform until 2.3 ( http://developer.android.com/sdk/android-2.3-highlights.html), your only choice is to piece together a complete solution yourself. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread sparky
Does your application use any of the canvas functions known not to be hardware-accelerated? This blog article lists them, along with some best practices for Android 2D hardware acceleration. http://android-developers.blogspot.com/2011/03/android-30-hardware-acceleration.html -- You received

Re: [android-developers] Re: nfc compatibility for 2.2 android

2012-01-16 Thread Sparky Rhode
or not . On Mon, Jan 16, 2012 at 5:48 PM, sparky spar...@google.com wrote: Since NFC wasn't added to the platform until 2.3 (http://developer.android.com/sdk/android-2.3-highlights.html), your only choice is to piece together a complete solution yourself. -- You received this message because you

Re: [android-developers] Re: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread Sparky Rhode
Can you share some source code that reproduces this performance issue? On Mon, Jan 16, 2012 at 3:53 PM, sblantipodi perini.dav...@dpsoftware.org wrote: The most disappointing thing is this problem is that google don't want to admit that they have problem in their implementation, this will

Re: [android-developers] Re: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread Sparky Rhode
Sounds to me like the mystery is solved. Romain explained how calling drawLine is faster on the CPU, and suggested a way to change the code to make it more GPU-friendly. In other words, no, the code is not well-optimized _for GPU rendering_. Perini explained drawLine gives better-looking results,

[android-developers] Re: C2DM - Always returns 200 without Error= but device doesn't receive notification

2012-01-13 Thread sparky
This article may answer your question. https://groups.google.com/forum/#!topic/android-c2dm/gY2RZBoFth4 -- 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: All the google accounts of all the phones waiting for C2DM push notifications must be registered on C2DM?

2012-01-13 Thread sparky
Yes. The email address that you use to request access must be the same as the one that will authenticate to the C2DM web service and send it messages for delivery to devices. You may find it useful to subscribe to the android-c2dm group. -- You received this message because you are subscribed

Re: [android-developers] Re: Why do my post is not shown ?

2012-01-12 Thread Sparky Rhode
it based on the amount of spam this list receives (ad for moving service in dubai, for example, probably would not have made it past moderators...) kris On Wed, Jan 11, 2012 at 3:42 PM, sparky spar...@google.com wrote: All members' posts are moderated initially. -- You received

Re: [android-developers] Push Notification from sever

2012-01-11 Thread sparky
What Vijay Kumar said. See http://code.google.com/android/c2dm/#example. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: How to set picture mode of camera?

2012-01-11 Thread sparky
There is not. You open the camera, then set the parameters to configure the mode you want. -- 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

[android-developers] Re: Why do my post is not shown ?

2012-01-11 Thread sparky
All members' posts are moderated initially. -- 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: J2ME vs Android Java

2012-01-11 Thread sparky
J2ME and Android are very different frameworks. You do not need to know anything about J2ME to write Android applications. You can pretend J2ME doesn't exist. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers]

2012-01-11 Thread sparky
Try this one: http://developer.android.com/training/multiscreen/index.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: I need Google Map Application...

2012-01-11 Thread sparky
http://developer.android.com/guide/tutorials/views/hello-mapview.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: plz help close application

2012-01-10 Thread sparky
You should not. Just implement the appropriate callbackshttp://developer.android.com/guide/topics/fundamentals/activities.html#ImplementingLifecycleCallbacks and let the OS decide when to close your activity. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: same app one tablet and phone with differnt gui

2011-09-16 Thread sparky
Please don't use multiple APKs for tablet support. Just implement some xlarge layouts. You'll be glad you did. For the menu buttons, just populate the Activity Bar with Options Menu items. Any buttons that don't fit on screen can automatically go into the Options (or overflow) menu. See

[android-developers] Re: Increase the App Size in Android

2011-09-16 Thread sparky
I think calling recycle() became a lot less necessary in Gingerbread. -- 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: Intent to install packages from market

2011-09-16 Thread sparky
Sorry, it's part of the Android security design that the user has to explicitly approve installs. -- 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

[android-developers] Re: How to accelerate video any resolution video on surface view +android code

2011-09-16 Thread sparky
http://developer.android.com/guide/practices/optimizing-for-3.0.html You can enable hardware-accelerated rendering in your application by setting android:hardwareAccelerated=true in your manifest's applicationhttp://developer.android.com/guide/topics/manifest/application-element.html element

[android-developers] Re: AbsoluteLayout blues

2011-09-16 Thread sparky
See Compatibility Zoom. Only since Android 3.2, though. But I think you're better off fixing your fundamental problem, which is an inflexible layout. -- 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: how to learn Andoird

2011-09-06 Thread sparky
http://developer.android.com/resources/browser.html?tag=tutorial http://www.youtube.com/results?search_query=google+i%2Fo+androidaq=f -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Users Verifying my App Signature

2011-08-12 Thread sparky
No, I think that was just hyperbole. It's still 25 years. http://developer.android.com/guide/publishing/app-signing.html The signature isn't to say, unequivocally, I am Sparky. It says, both versions of this app were signed by the same author. -- You received this message because you

[android-developers] Re: Android Market user ratings disappeared on July 29, 2011

2011-08-01 Thread sparky
Apologies. Market team is working on it. https://www.google.com/support/androidmarket/developer/bin/static.py?page=known_issues.cs -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] hiii dearssssss

2011-08-01 Thread sparky
Your code won't compile on my system. Can you please also include a copy of com.magic.package.that.does.all.the.work ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

[android-developers] Re: Can I sell hardware+app together on Android Market?

2011-07-20 Thread sparky
See: http://www.android.com/us/developer-distribution-agreement.html Top section: Definitions *Products:* Software, content and digital materials created for Devices in accordance with the Android SDK and distributed via the Market. -- You received this message because you are subscribed to

[android-developers] Re: Make Rectangle haif width of screen

2011-06-29 Thread sparky
Put it in a layout together with some other components, set android:layout_weight, and let the layout manager sort it out. -- 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: How to deal with bulk licensing?

2011-06-29 Thread sparky
Have you thought about using the Android License Verification Library? http://developer.android.com/guide/publishing/licensing.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] Evaluate javascript from within a service

2010-05-07 Thread Sparky
Hello, I need to evaluate javascript from within a Service. In an Activity I used to do that with WebView. However after constructing a WebView in the service (passing its context to the WebView) and calling loadUrl (with the url of the page containing the javascript that needs to be evaluated)

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-02 Thread Sparky
GERMANY here, still waiting, though in a few days (Saturday) the 4- week period since I received the confirmation (6th March) will be over. Getting nervous... :-/ On Mar 31, 11:30 am, David Horn pga...@gmail.com wrote: Do as I say, not as I do etc. ;-) On Mar 30, 11:57 pm, Thomas Riley

[android-developers] Audio Playback Error

2010-01-04 Thread sparky
I've written an app. that uses the MediaPlayer, but every so often I see this error: ERROR/AudioMIO(3733): latency could NOT be set !! set it later When it happens, the audio goes silent and the only way to get the audio back is to stop and restart (release and create a new MediaPlayer

[android-developers] Re: manually update AppWidgetProvider's onUpdate

2009-11-12 Thread Sparky
Hey guys, can you give me some hints on how to create that custom intent? 1. I have added this to manifest: receiver android:name=.Widgetx android:label=@string/app_name intent-filter action