[android-developers] Re: MVC Architecture

2012-01-14 Thread Indicator Veritatis
Why? Because the Wikipedia entry on the topic just is not that good. In fact, MOST of the sites that show up in a Google search for MVC are just not that good. The only sites I found on the topic that are good are: 1) apple developer sites on it and 2) IBM developer works. (in the developer works

[android-developers] AwesomePagerAdapter initial position

2012-01-14 Thread sheamuso
Does anyone know how to set the initial position of the AwesomePagerAdapter in the compatibility package. I've been trying to use setPrimaryItem but don't know how, see my feeble attempt below but don't know what parameters to pass in awesomeAdapter = new AwesomePagerAdapter(); awesomePager =

[android-developers] Read sensor value without using SensorEventListener

2012-01-14 Thread ambi
Hi, Is there a way to read the sensor value without using the SensorEventListener? My understanding is that the SensorEventListener.onSensorChanged() method will tell me the sensor value but only when the value changes. I want to read the sensor value when the user clicks a button. Thanks, Ambi.

[android-developers] Re: Android fragmentation study

2012-01-14 Thread Dusk Jockeys Android Apps
Thanks Dianne, for such a detailed answer. I understand the limitations you describe, both of the Compatibility process and AppWidgets themselves. The use case of animations here could be considered trivial, but I do think it adds tremendous perceived value to an app. Consider a simple Gallery

[android-developers] intent action.CALL_PRIVILEGED

2012-01-14 Thread Live Happy
i used this code in the manifest file intent-filter action android:name=android.intent.action.CALL_PRIVILEGED / category android:name=android.intent.category.DEFAULT / data android:scheme=tel / /intent-filter but i cant find the .CALL_PRIVILEGED in the intent action to access the event if (

[android-developers] Re: Unable to execute Bluetooth HDP Demo

2012-01-14 Thread Fernando Almeida
Hi jfernandez... i upgrade my android version to 4.03 and still can't connect... Could you please show me the changes that you made? Thank you On 13 Jan, 10:57, jfernandez jorge.fernandez.gonza...@gmail.com wrote: Hi again, Well, after upgrading my Android 4.0 to 4.03, and adding some

Re: [android-developers] Re: Android fragmentation study

2012-01-14 Thread Mark Murphy
On Sat, Jan 14, 2012 at 5:21 AM, Dusk Jockeys Android Apps duskjock...@gmail.com wrote: from my point of view the animation is part of the functionality, as it is the raison d'etre of the app... As Ms. Hackborn pointed out, there is no law requiring home screens to support animations. *Any*

Re: [android-developers] threading : two independent events

2012-01-14 Thread Mark Murphy
On Sat, Jan 14, 2012 at 1:41 AM, vishal garg vishal17g...@gmail.com wrote: I have an android app code where 1) 1st process : checks for user location constantly after every t minutes. 2) 2nd process : displays an image on the screen Why are these two processes? 99.99% of Android applications

[android-developers] Re: Unable to execute Bluetooth HDP Demo

2012-01-14 Thread jfernandez
Hi Fernando, I have introduced a change in the implementation of the BluetoothHealthCallback mHealthCallback. Exactly, in its method onHealthChannelStateChange(...). I detected that the state machine during the stablishment of a new HDP connection is: Disconnected- Connecting-Connected. However,

[android-developers] Geo coder not provides exact location

2012-01-14 Thread lbendlin
Read the documentation about RequestLocationUpdates parameters. Clean up your code, remove duplicate instructions (you unregister twice) . -- 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] Location extraction from cell ID returned

2012-01-14 Thread lbendlin
The cells certainly know where YOU are based on the antenna sector and power level. Do you see any of that data on the device? -- 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] OnDraw for whole screen

2012-01-14 Thread Hydro Misco
I am trying to draw a simple shape on whatever is on the screen - say a filled rectangle. I suspect I need to somehow get access to the OnDraw for the whole screen. * How do i do this? I need to do this with everything else running as normal... i.e. there should be a box that constantly

Re: [android-developers] OnDraw for whole screen

2012-01-14 Thread Mark Murphy
On Sat, Jan 14, 2012 at 8:56 AM, Hydro Misco niranpaud...@gmail.com wrote: I am trying to draw a simple shape on whatever is on the screen - say a filled rectangle. I suspect I need to somehow get access to the OnDraw for the whole screen.  * How do i do this? Your activity can retrieve

Re: [android-developers] Re: gps waiting problem.

2012-01-14 Thread James Black
I often send emails from my phone, but good writing is still important. On Jan 13, 2012 9:26 PM, Dhaval Varia dhavalkva...@gmail.com wrote: Jst bcoz i m sending email from my mobile Thanks for reply. On Jan 14, 2012 12:38 AM, Spiral123 cumis...@gmail.com wrote: wh d u kp drppng ltrs? I

Fwd: [android-developers] Real-time video streaming/disabling or configuring MediaPlayer caching-buffering

2012-01-14 Thread Brad O'Hearne
Giving this a last bump in hopes of a response...any ideas or otherwise not commonly known or documented information on the Android MediaPlayer would be extremely welcome. Thanks, Brad Brad O'Hearne Founder / Lead Developer Big Hill Software LLC http://www.bighillsoftware.com Begin

Re: [android-developers] Real-time video streaming/disabling or configuring MediaPlayer caching-buffering

2012-01-14 Thread Mark Murphy
On Sat, Jan 14, 2012 at 11:45 AM, Brad O'Hearne br...@bighillsoftware.com wrote: 1. Adjust or disable entirely caching and buffering within the MediaPlayer. 2. Tell the MediaPlayer to ignore any processing for audio, which is not needed in this use case. 3. Potentially be able to control or

Re: [android-developers] Real-time video streaming/disabling or configuring MediaPlayer caching-buffering

2012-01-14 Thread Brad O'Hearne
Mark, Thanks for the reply. That's pretty much what I suspected -- I'll check out the NDK. Brad Brad O'Hearne Founder / Lead Developer Big Hill Software LLC http://www.bighillsoftware.com On Jan 14, 2012, at 9:52 AM, Mark Murphy wrote: On Sat, Jan 14, 2012 at 11:45 AM, Brad O'Hearne

[android-developers] Re: OnDraw for whole screen

2012-01-14 Thread Mark Murphy
Replying back to the list, where this belongs: On Sat, Jan 14, 2012 at 12:22 PM, Hydro Misco niranpaud...@gmail.com wrote: Hey Mark, Thanks for answering this question for me - I dont quite understand it though. can you perhaps point me to an online sample?  I just need to understand the

[android-developers] Continuously running Service does not run continuously

2012-01-14 Thread Dirk
Hi, I am writing a service which shall continuously log some sensor data over longer periods of time. For testing purposes the service shall log a static debug message once every second. Looking at the log file, after some time (usually 30min to several hours), the logging only takes place every

[android-developers] Directory structure for project related files

2012-01-14 Thread nadam
All of my android projects usually have a /tmp folder where I dump all the stuff that isn't necessary for building the apk, such as psd/xcf files, the 512x512 icon, screenshots and the signed apk that will be uploaded to the market. I'm also considering adding these files to my version control

Re: [android-developers] Continuously running Service does not run continuously

2012-01-14 Thread Mark Murphy
On Sat, Jan 14, 2012 at 12:43 PM, Dirk b...@informatik.uni-hamburg.de wrote: I am writing a service which shall continuously log some sensor data over longer periods of time. For testing purposes the service shall log a static debug message once every second. Looking at the log file, after

Re: [android-developers] Directory structure for project related files

2012-01-14 Thread Mark Murphy
I wouldn't call it tmp/, as that would make me think of Linux and OS X /tmp, which are files that can be deleted without incident. I've used various other directory names for stuff like this (e.g., artwork/, misc/). If assets/ weren't already used by Android for another role, I would probably have

[android-developers] Re: Continuously running Service does not run continuously

2012-01-14 Thread Dirk
Thank you Mark ! Is there a way to control the device's sleep phases programmatically, so I can make sure the logging really takes place ? Regards Dirk On 14 Jan., 18:48, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jan 14, 2012 at 12:43 PM, Dirk b...@informatik.uni-hamburg.de wrote: I

Re: [android-developers] Re: Continuously running Service does not run continuously

2012-01-14 Thread Mark Murphy
On Sat, Jan 14, 2012 at 1:00 PM, Dirk b...@informatik.uni-hamburg.de wrote: Is there a way to control the device's sleep phases programmatically, so I can make sure the logging really takes place ? Use a WakeLock to keep the CPU running. Your users may not like you much, though. -- Mark

Re: [android-developers] Re: Continuously running Service does not run continuously

2012-01-14 Thread Kristopher Micinski
The way you should read mark's response here is: Don't keep the cpu running, this is a dumb idea, if you're really doing this it probably indicates there is something wrong with your design If this is *strictly* for development, and you'll completely strip out the code when you release your app,

Re: [android-developers] Re: Continuously running Service does not run continuously

2012-01-14 Thread Dianne Hackborn
Also unless you make your service foreground, its process *will* be killed every now and then while it is in the background. And you can use the AlarmManager to avoid holding a wake lock the entire time, but a rate of once a second is way to fast to be appropriate for that -- scheduling Alarms

Re: [android-developers] Re: Continuously running Service does not run continuously

2012-01-14 Thread Dianne Hackborn
And to really really re-iterate -- we are still only talking about non-production code. On Sat, Jan 14, 2012 at 11:16 AM, Dianne Hackborn hack...@android.comwrote: Also unless you make your service foreground, its process *will* be killed every now and then while it is in the background. And

Re: [android-developers] Re: OnDraw for whole screen

2012-01-14 Thread Kristopher Micinski
Just out of curiosity, what would be the non malicious use case you had in mind here, Hydro? kris On Sat, Jan 14, 2012 at 12:41 PM, Mark Murphy mmur...@commonsware.com wrote: Replying back to the list, where this belongs: On Sat, Jan 14, 2012 at 12:22 PM, Hydro Misco niranpaud...@gmail.com

[android-developers] Logcat is broken every time phone is unplugged

2012-01-14 Thread Keith Wiley
Every time the phone is unplugged from USB, the logcat is permanently corrupted in that the when the phone is reconnected, logcat does not reestablish. Restarting an app, either in debug or run mode produces zero logcat output after that point. Closing the logcat window view and reopening it has

Re: [android-developers] Logcat is broken every time phone is unplugged

2012-01-14 Thread Mark Murphy
I haven't seen that on any of my devices. What's the phone? On Sat, Jan 14, 2012 at 3:24 PM, Keith Wiley kbwi...@gmail.com wrote: Every time the phone is unplugged from USB, the logcat is permanently corrupted in that the when the phone is reconnected, logcat does not reestablish.  Restarting

[android-developers] Re: Logcat is broken every time phone is unplugged

2012-01-14 Thread Keith Wiley
G1, OS 1.6 Eclipse Helious I'm part way through installing Android SDK rev 16, but like I said, this has been persistent across a variety of versions of all the associated pieces. I don't understand why I haven't seen more reports of this. Thanks for any help. On Jan 14, 12:27 pm, Mark Murphy

[android-developers] Fragment view state is getting lost after couple of orientation changes

2012-01-14 Thread ksat8384
I reported an issue but i yet to get the response... http://code.google.com/p/android/issues/detail?id=24273 FYI: I have attached my complete test project named Fragments in the above reported issue. Could you just let me know the best way to save the state of the views in fragments? because

Re: [android-developers] Re: Logcat is broken every time phone is unplugged

2012-01-14 Thread Mark Murphy
On Sat, Jan 14, 2012 at 3:35 PM, Keith Wiley kbwi...@gmail.com wrote: G1, OS 1.6 Eclipse Helious I'm part way through installing Android SDK rev 16, but like I said, this has been persistent across a variety of versions of all the associated pieces. I don't understand why I haven't seen

[android-developers] Extremely odd Canvas Paint Vector Problem

2012-01-14 Thread JamesColeman
I am having a really odd problem that works for somethings but not others. It feels more like a bug than a code problem to me. I have tried may different approaches. However, I think the following sums up the issue in it's simplest form. It does not represent the code I want to use in my

[android-developers] Re: Extremely odd Canvas Paint Vector Problem

2012-01-14 Thread JamesColeman
I am having a horrible day. This was NOT supposed to post yet. Please ignore and I will try to delete it. On Jan 14, 2:37 pm, JamesColeman jamescole...@radicalphotography.com wrote: I am having a really odd problem that works for somethings but not others. It feels more like a bug than a code

[android-developers] Re: Logcat is broken every time phone is unplugged

2012-01-14 Thread Keith Wiley
Hmmm, okay. I don't have one that fits the G1's connecter, but I'll consider the suggestion. Sigh. On Jan 14, 12:47 pm, Mark Murphy mmur...@commonsware.com wrote: Perhaps try a different micro USB cable. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: OnDraw for whole screen

2012-01-14 Thread Hydro Misco
I am trying to make an app that applies a particular 'filter over screen contents e.g. sapia. Nothing sinister. On Jan 14, 7:26 pm, Kristopher Micinski krismicin...@gmail.com wrote: Just out of curiosity, what would be the non malicious use case you had in mind here, Hydro? kris On

Re: [android-developers] Navigation Tabs converted to Drop down on orientation change in Action bar of ICS.

2012-01-14 Thread Mark Murphy
Can you post a sample project that demonstrates your problem? On Fri, Jan 13, 2012 at 6:32 AM, Sudeep Sharma sudeep.andr...@gmail.com wrote: Hi Guys, I have a query related to Action bar in ICS. As we all know Action bar supports both mode , 1. Navigation Tabs 2. Drop-down Navigation. I

[android-developers] Re: Directory structure for project related files

2012-01-14 Thread RLScott
Can we be sure that any randomly named directory added to the project folder is not going to be included in the app package? For instance, the folder named assets does get included, but misc does not? -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Re: Directory structure for project related files

2012-01-14 Thread Mark Murphy
On Sat, Jan 14, 2012 at 7:11 PM, RLScott fixthatpi...@yahoo.com wrote: Can we be sure that any randomly named directory added to the project folder is not going to be included in the app package? For instance, the folder named assets does get included, but misc does not? AFAIK, only

[android-developers] Package name

2012-01-14 Thread yves...@gmail.com
I have an app in the market already. the package name, by mistake, is com.android.AAA, now, i want to change to my company name YYY.BBB, is that possible? Will market allow updates changing package name? -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: Android fragmentation study

2012-01-14 Thread Christopher Van Kirk
Hi Diane! From your response I sense that I must have touched a nerve. Please don't misunderstand my intentions in making these assertions. I'm not an Android hater, I'm a disillusioned believer. I'm not the only one though: http://techcrunch.com/2012/01/14/ok-mg-i-take-it-back/

[android-developers] Regarding screen orientation changes

2012-01-14 Thread Jay SB
Hi All, As far as i know, screen orientation can be changed by two ways, one is through Manifesto file and other is through code by setRequestedOrientation API. My requirement is to show the screen orientation in Landscape mode, only when it launched through one particular application. To

Re: [android-developers] Package name

2012-01-14 Thread James Black
When you try to change the package name it won't allow an update, so I believe you are out of luck. On Jan 14, 2012 7:35 PM, yves...@gmail.com yves...@gmail.com wrote: I have an app in the market already. the package name, by mistake, is com.android.AAA, now, i want to change to my company name

Re: [android-developers] Regarding screen orientation changes

2012-01-14 Thread James Black
It sounds like your requirements, or understanding is off, so you may want to check it out. The confusion is, if you automatically switch to landscape always then set it in the manifest. If you start in portrait mode then why switch them? Or what should happen differently on this orientation?

Re: [android-developers] Regarding screen orientation changes

2012-01-14 Thread Jay SB
James, Thanks for your response. I am working on Email application, my requirement is to show all the screen orientation only in landscape mode irrespective of device orientation, only when it launched through one particular application (Application X). If i launch the Email app through some

[android-developers] Re: Package name

2012-01-14 Thread Ricardo Amaral
No, Market doesn't allow that. Here's what you could do instead: Publish your app under the new company/package name and wait for it to be live. Once that's done, publish an update to your older app. That update should simply change the app into redirecting users to the new app on the Market

[android-developers] How to implement scrolling for custom layout?

2012-01-14 Thread harvinder
I am trying to develop a custom ViewGroup to implement sort of a gantt chart with vertical and horizontal scrolling. So I went about the job and implemented following view I find following issues with this code. [1] when onScroll is called I see some flicker and not been able to successfully

[android-developers] Re: Android fragmentation study

2012-01-14 Thread Dusk Jockeys Android Apps
Hi Mark, Yes, I understand that this is the position I am in, and I have to adapt to that. My point was more that although there is no explicit law requiring home screens to support animations, from my reading of the CTD there is also no explicit law requiring views in normal Activities to