[android-developers] Re: Home Button

2011-10-06 Thread Streets Of Boston
I surprised this works :) Anyway, this method doesn't work for you when a progressdialog, i.e. an alertdialog, is showing. A solution could be to *not* use progressdialogs or any other dialogs in your app. Instead use DialogFragments or Activities having the theme Theme.Dialog. -- You

[android-developers] Re: Home Button

2011-10-06 Thread Streets Of Boston
What happens if you put this this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD); into the *onCreate *of you Activity? -- 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: Does Android Support SOAP web service?

2011-10-11 Thread Streets Of Boston
If you control both the development of both the Android app and the server, i would suggest REST. Google SOAP vs REST to see why I suggest REST for mobile development :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: GL-related Crash on Xoom/Tab 10.1 requiring removal of battery or shell reboot?

2011-10-12 Thread Streets Of Boston
I've seen the log message W/SharedBufferStack( 78): waitForCondition(LockCondition) timed out (identity=5, status=0). CPU may be pegged. trying again. plenty of times on my Galaxy 10.1 and Xoom tablets. However, it was never hung (as far as I know); just a few of these messages in a row and

[android-developers] Re: How to use a OnClickListener in Fragment

2011-10-13 Thread Streets Of Boston
In your onCreateView callback of your fragment, you could do something like this: *Button myButton = (Button)view.findViewByid(R.id.mybutton);* *myButton.setOnClickListener(new OnClickListener() {* * public void onClick(View view) {* *// put some code here that handles the click event.* *

Re: [android-developers] Re: Soft Home Button Makes Games Suck on Android

2011-10-14 Thread Streets Of Boston
Yes, The 'Home key' is very much like the 'truth' :-) -- 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: possible bug in AsyncTask?

2011-10-24 Thread Streets Of Boston
I found this out the hard way too a while ago :) I worked around it by just having the first AsyncTask class reference being handled on the main UI thread. If you do that, all other instances of AsyncTask in your app can be created from any thread. E.g. in your Application object's *onCreate

[android-developers] Re: About Executors and ScheduledThreadPoolExecutor

2011-10-25 Thread Streets Of Boston
AsyncTasks could indeed be overkill for what you want. Also, the implementation of AsyncTask is at the mercy of Google. Currently, from version 1.6 and up, it uses a thread-pool of more than one thread. However, there is talk of reducing this thread-pool to only one thread. This may cause

[android-developers] Re: Suspended Account - Please Help - Red Alert

2011-10-26 Thread Streets Of Boston
You'd have to contact the complaining 3rd parties first to resolve the copyright/trademark-infringement issues. When these are resolved, you can begin re-instating the apps or your account. It isn't impossible, but it'll be an uphill battle... -- You received this message because you are

[android-developers] Re: AsyncTask null exception for the activity reference in the doInBackground method while rotating.

2011-10-26 Thread Streets Of Boston
You cannot just use a reference(be it explicit or implicit to an inner class definition) to an Activity in the doInBackground of an AsyncTask (or in any method that is executed on a background thread). You'll get the problem you see right now. First, i would suggest trying not to use an

[android-developers] Re: Account suspended

2011-10-26 Thread Streets Of Boston
Sorry, you'll not be able to get help here to get your app or account re-instated. At best we can be help you try to figure out *why *you got suspended. But since we don't know anything about your app(s), that'll be difficult. -- You received this message because you are subscribed to the

Re: [android-developers] Re: Account suspended

2011-10-26 Thread Streets Of Boston
Yep, If that's indeed his set of apps, Sy's using images and artwork that are copyrighted That's a big no-no, even if he wasn't charging for it. Sy, unless you can forge a deal with all these companies (Marvel, bunch of photographers, etc) or unless you create your own artwork, your

Re: [android-developers] Re: Account suspended

2011-10-27 Thread Streets Of Boston
Even using the word 'Marvel' in one of your app's names could be ground for a DMCA... I'm a 'pro-sumer' photographer. If my (lower-res) pics show up in Google search result, i don't mind, because people will click on it and this will take them to my galleries. And they can possibly buy my pics

[android-developers] Re: ProgressDialog is thread-safe?

2011-10-27 Thread Streets Of Boston
Not possible. You can't execute any View/Window/Activity related code (that modifies such objects) from any other thread but the main UI thread. Sublcass AsyncTask instead and call publisProgress on certain intervals from doInBackground. Implement onProgressUpdate to call

[android-developers] Re: RelativeLayout not working in ADT 14

2011-10-27 Thread Streets Of Boston
Same problem here. -- 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+unsubscr...@googlegroups.com For

[android-developers] Re: RelativeLayout not working in ADT 14

2011-10-31 Thread Streets Of Boston
Xav: Any news on this issue? -- 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] Re: RelativeLayout not working in ADT 14

2011-10-31 Thread Streets Of Boston
Thank you! I added some extra info to the tracked issue... I hope it helps somewhat. :) -- 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: Change PPI (pixel per inches) of PNG file in Android

2011-11-02 Thread Streets Of Boston
What is the problem? The PNG is still the same size (in pixels).Only some piece of meta-data (the PPI) has changed. Why must the PPI of the image stay the same? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: AIDL with Map generating broken Java

2011-11-02 Thread Streets Of Boston
What if you use *Bundle *instead (which is basically a Map implementation that implements Parcelable as well). -- 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

[android-developers] Re: Best way to communicate between two applications (on the same device)?

2011-11-02 Thread Streets Of Boston
- If you want just to send a message to another app, *without expecting *a result, use Intents on one app (and a BroadcastReciever on the other app). - If you want to send a message to another app, while *expecting *a result, but this result could be sent back later

Re: [android-developers] Re: Best way to communicate between two applications (on the same device)?

2011-11-02 Thread Streets Of Boston
Maybe not a separate app, but his app could still benefit of having multiple processes. -- 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: Change PPI (pixel per inches) of PNG file in Android

2011-11-03 Thread Streets Of Boston
That means you tie this image up with only one given PPI, in your case printing on paper. Anywhose, this is your app's requirements. :) This means you must change the Exif (metadata) of your image after you saved it to 'disk'. Use ExifInfo class. I think it not only works for JPEGs but for PNGs

[android-developers] Re: Limiting cache size of an Adapter

2011-11-04 Thread Streets Of Boston
Say you show a ImageViewFragment (which is a subclass of a Fragment) for each page in your ViewPager. Your ViewPager uses a FragmentPagerAdapter to handle the in-and-out swiping of ImageViewFragments. Implement these methods for your ImageViewFragment class: * @Override* * public void

[android-developers] Re: Change PPI (pixel per inches) of PNG file in Android

2011-11-04 Thread Streets Of Boston
That is actually my project, one of my old projects :) I use it in one of my apps (before ExifInterface became available). You can use it. :) But you can use ExifInterface as well, i think: You can't use one of the predefined tags (ExifInterface.TAG_), but you can call 'setAttribute' and

[android-developers] Re: Change PPI (pixel per inches) of PNG file in Android

2011-11-04 Thread Streets Of Boston
I just changed the license for SanselanAndroid to MIT. You're basically free to use it any way you like (read up on MIT License details for more info). -- 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: ThreadPoolExecutor stop tasks onPause

2011-11-04 Thread Streets Of Boston
shutDownNow will cancel all the pending tasks and make the Executor unavailable for any future task submissions. Instead, you'd have to keep track to any Future you have scheduled (the value returned by an executor.submit(...) call). Call 'cancel(boolean)' on all the Futures that are still

[android-developers] Re: OutOfMemory exception when there should be enough memory left

2011-11-05 Thread Streets Of Boston
I assume this is on pre honeycomb device. Do you have any bitmaps in your app or memory that is just in native (C/C++) code? Bitmaps take up process memory (that may contribute to OutOfMemory (OOM) errors) but the memory is native and isn't known to the DalvikVM. This means that it looks like

[android-developers] Re: Incorrect output values with gluUnProject… why?

2011-11-07 Thread Streets Of Boston
I experienced similar issues with gluUnProject. I wrote my own implementation. I posted it on this board a few years ago: https://groups.google.com/d/msg/android-developers/nSv1Pjp5jLY/wX9QEe6jzwcJ -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Incorrect output values with gluUnProject… why?

2011-11-08 Thread Streets Of Boston
In your 3D model, you have two Z values (for depth). Z-near (the 'location' of your screen) and Z-far (the furthest z-plane of your 3D model). The user touches the screen and Xs, Ys. Now call gluUnProject twice: gluUnProject(xWin, ((float)screenH)-yWin, *zNear*, modelMatrix, 0, projMatrix, 0,

[android-developers] Re: problem while updating UI from non-ui thread?

2011-11-08 Thread Streets Of Boston
And what about when the user rotates his or her device...? In short: Create an object that your will return in your activity's onRetainNonConfigurationInstance method. This object can be gotten in the onCreate, by calling getLastNonConfigurationInstance. Store this object in a field/reference

[android-developers] Re: Incorrect output values with gluUnProject… why?

2011-11-08 Thread Streets Of Boston
Nothing comes easy. :-) Google it. Open up your geometry books. Do whatever is necessary to make it happen. The information is out there and you can learn it and apply it to your app. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: RegisterBroadcastReceiver in Manifest.xml

2011-11-08 Thread Streets Of Boston
Then you'd have to do two things: - Make Receiver1 a static class: public *static *class Receiver1 extends BroadcastReceiver If not, instances of Receiver1 cannot be instantiated without an enclosing BroadcastActivity instance. - Change the name in your manifest to

[android-developers] Re: How to communicate between an Android Broadcast Receiver and a RemoteService

2011-11-10 Thread Streets Of Boston
Use Intents. Put data in the Intent's 'extras'. Put this Intent in the startService call. The Service's onStartCommand will be called with this Intent and you can handle it there. Or you can define an AIDL that your service implements. Bind to the service and communicate with the service

[android-developers] Re: Threshold a android bitmap image URGENT

2011-11-11 Thread Streets Of Boston
For a crude Threshold effect, you can use a ColorMatrixColorFilter with the right values put in it. I implemented a Threshold filter this way, I don't have the implementation at hand right now. But you can google it. :) -- You received this message because you are subscribed to the Google

[android-developers] Re: onCreate vs onStart

2011-11-13 Thread Streets Of Boston
What Mark said below :) And note that when the onStart is called, the activity becomes visible. When the onResume is called, the activity is about to receive focus (becomes for target user interaction). E.g. when a dialog-style activity (an activity with a partial transparent background) is

[android-developers] Re: Two active surfaceViews on top of one another

2011-11-13 Thread Streets Of Boston
I've been able to put regulars views on top of a Surface view. That's easy. Just create a layout with that has many views with one Surface view. However, putting multiple surface views in one Window (one activity), e.g. a video view on top of an opengl view... no success. The seconds surface

[android-developers] Re: Fragment Communication

2012-03-13 Thread Streets Of Boston
In general, have the containing activity handle the communication between the fragments. Let the containing Activity implement an interface that will tell it when important user interactions take place (e.g. item clicked in a fragment with a list-view). In the fragment's onAttach, cast the

[android-developers] Re: new 50mb expansion pack functionality, api 11... no easy dice?

2012-03-16 Thread Streets Of Boston
I haven't checked if the downloader services comes with the sources. But if so, just change the sources for the Notifications to your liking. (we did that for our app, using the DownloadManager (and DownloadProvider) from the ICS source code and adding compatibility code ourselves

[android-developers] Re: Clear data does not remove getExternalStorageDirectory()

2012-03-19 Thread Streets Of Boston
Don't put your files on the directory (or sub-directories) that is returned by getExternalStorageDirectory(). Instead use getExternalFilesDir(String type) (where type can be null). On Monday, March 19, 2012 10:53:00 AM UTC-4, Sergey Okhotny wrote: Clear data option from application settings

[android-developers] Re: Gallery app... bitmaps exceed memory in listView

2012-04-03 Thread Streets Of Boston
Don't load your images in full (100%) size. Load them no larger (or maybe slightly larger) than the size of the screen (in pixels). Take a look at this link: http://developer.android.com/reference/android/graphics/BitmapFactory.Options.html and look at the 'inSampleSize' parameter: Set this to

[android-developers] Re: (e-)books on Android XML Layouts: suggestions?

2012-04-04 Thread Streets Of Boston
I use this one for XML Drawables: http://idunnolol.com/android/drawables.html On Tuesday, April 3, 2012 2:59:01 PM UTC-4, Spooky wrote: Working on my current project, one thing I am really missing is a good, solid, and *complete* reference covering Android XML layouts, widgets (from the XML

Re: [android-developers] No validating SAX parser for android?

2012-04-04 Thread Streets Of Boston
What about not validating the incoming XML? Since i don't know what type of app you need the validating SAX parser for, but if your app just needs to read bits and pieces of incoming XML, you really don't need a validating XML. Just read the data and present it to the user. If the incoming data

Re: [android-developers] No validating SAX parser for android?

2012-04-04 Thread Streets Of Boston
10:36:34 AM UTC-4, RedBullet wrote: That's sort of what I am doing now. Seems kind of unsatisfying ;-) Just wanted to know what my options were... It is confusing because the docs seem to imply that one can do validation... On Wednesday, April 4, 2012 9:39:07 AM UTC-4, Streets Of Boston

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Streets Of Boston
The size of the JPG/PNG file has almost nothing to do with the size of the corresponding image in memory. An RGB_565 takes 2 bytes per pixel (5+6+5=16bits=2bytes). An ARGB_ takes 4 bytes per pixel. This means a 5MPixel image will take 5M*2 = 10MByte in RAM when using RGB_565 or 5M*4=20MByte

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Streets Of Boston
Dealing with ARGB_ full-sized images may just not be possible for certain devices (e.g. 5MPixel images taking 20Mbyte of memory, not leaving much room for anything else). Unless you can decode the byte[] data from the Camera yourself... this would mean writing your own JPG decoder that

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-18 Thread Streets Of Boston
/android/graphics/Bitmap.html source, int x, int y, int width, int height) On Wednesday, April 18, 2012 6:40:51 PM UTC-4, Spooky wrote: On Wed, Apr 18, 2012 at 03:28:11PM -0700, Streets Of Boston wrote: The size of the JPG/PNG file has almost nothing to do with the size

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-19 Thread Streets Of Boston
(saving the raw data in chunks) or by calling Bitmap.copyPixelsToBuffer. On Wednesday, April 18, 2012 7:58:36 PM UTC-4, Spooky wrote: On Wed, Apr 18, 2012 at 03:59:23PM -0700, Streets Of Boston wrote: Dealing with ARGB_ full-sized images may just not be possible for certain devices

[android-developers] Re: bitmap.recycle() and multiple passes through a method question

2012-04-19 Thread Streets Of Boston
After you call bitmap.recycle(), you can no longer use that bitmap at all. After calling recycle(), the bitmap still occupies a tiny little bit of memory in the DalvikVM. All its raw pixel data memory has been released, though. To release that tiny little bit of memory in the DalvikVM as well,

Re: [android-developers] Re: bitmap.recycle() and multiple passes through a method question

2012-04-19 Thread Streets Of Boston
localBitmap to a field (instance field or class field) or you need to return localBitmap as the return-value of someMethod(). On Thursday, April 19, 2012 9:49:23 AM UTC-4, Spooky wrote: On Thu, Apr 19, 2012 at 06:32:15AM -0700, Streets Of Boston wrote: After you call bitmap.recycle(), you can

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-19 Thread Streets Of Boston
. On Thursday, April 19, 2012 9:38:28 AM UTC-4, Spooky wrote: On Thu, Apr 19, 2012 at 06:25:12AM -0700, Streets Of Boston wrote: First, ignore this sentence below from my previous answer entirely: Save the byte[] data from the camera into file directly (this is your JPG file). (It was a left

Re: [android-developers] need help working with very large (photo) bitmaps

2012-04-20 Thread Streets Of Boston
. However, camera quality of some devices is starting to catch up. But for now, people taking pics with their phones would need no better than RGB_565 processing. On Thursday, April 19, 2012 11:03:11 PM UTC-4, Spooky wrote: On Thu, Apr 19, 2012 at 03:22:39PM -0700, Streets Of Boston wrote

[android-developers] Re: Global static class versus bundles

2012-04-26 Thread Streets Of Boston
Yes, sharing data by using plain 'static' or 'global' classes and members is possible. Be careful what you keep referenced in these static or global classes/members: don't hold on to activities and such, keeping them alive/references beyond the end of their lifecycle (e.g. after an activity's

[android-developers] How to debug Service/BroadcastReceiver and prevent Watchdog from killing process when stepping through the code?

2012-04-27 Thread Streets Of Boston
I'm debugging on a device. When setting a breakpoint in a process that runs a Service or a BroadcastReceiver on a spot in the code that is run on the main (UI) thread, the phone's watch-dog service kills the process, because I'm stepping through the code slowly. Is there a way, when in

Re: [android-developers] How to debug Service/BroadcastReceiver and prevent Watchdog from killing process when stepping through the code?

2012-04-28 Thread Streets Of Boston
to point out how to do it as well! Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Apr 27, 2012 at 2:46 PM, Streets Of Boston wrote: I'm debugging on a device. When setting a breakpoint in a process that runs a Service or a BroadcastReceiver

Re: [android-developers] How to debug Service/BroadcastReceiver and prevent Watchdog from killing process when stepping through the code?

2012-04-28 Thread Streets Of Boston
/magouyaware On Fri, Apr 27, 2012 at 2:46 PM, Streets Of Boston wrote: I'm debugging on a device. When setting a breakpoint in a process that runs a Service or a BroadcastReceiver on a spot in the code that is run on the main (UI) thread, the phone's watch-dog service kills the process

[android-developers] Re: Google I/O device in reboot loop.

2012-04-29 Thread Streets Of Boston
The same happened to mine. I was hoping a firmware update by me would fix it. However, the GoogleIO version of the tablet seemed to have a different boot-loader than the standard ones. I contacted Samsung and they told me the only way to flash it with a proper firmware and fix it was to send it

[android-developers] Re: Google I/O device in reboot loop.

2012-05-01 Thread Streets Of Boston
Enjoy your 'new' tablet. You were kind-of lucky. :) A factory reset didn't work for me. Only a fresh flash would do the trick (which had to be done by Samsung). On Tuesday, May 1, 2012 4:02:17 PM UTC-4, Nathan wrote: I managed to do a factory reset with the help of Samsung over the phone so

Re: [android-developers] Re: Rendering off UI thread causes ANR on Samsung Note

2012-05-01 Thread Streets Of Boston
Yep, both threads are in Canvas.native_drawBitmap and clobbering each other (or least the background thread is clobbering the UI one). This is a tough one to fix or to work-around. On Tuesday, May 1, 2012 7:27:00 PM UTC-4, Ab wrote: I hadn't, but I just did on your suggestion. The call

[android-developers] Re: All APK has cracked by apkcracks.net

2012-05-03 Thread Streets Of Boston
*Every *app can be cracked and pirated. It doesn't matter how much layers of protection you add to your app; your app can always be cracked. If someone is willing to spend time to reverse engineer your app and has enough determination, they will succeed. If i may be so bold to say, the only

Re: [android-developers] Singletons in Android .... Final solution?

2012-05-03 Thread Streets Of Boston
I have plenty of these types of constructs in my code and I've never ever seen static variables becoming un-initialized. The only times they are uninitialized is when the process (DalvikVM) has been killed and restarted. Are you sure that the code in your onDestroy (or some other life-cycle

[android-developers] Re: Singletons in Android .... Final solution?

2012-05-03 Thread Streets Of Boston
You are right that the enum has been initialized a second time. But the second time is a different process (26202 != 26607). In other words, the first process (26202) did not see this enum being initialized twice. The process was killed and the new process had its enum initialized instead.

[android-developers] Re: Singletons in Android .... Final solution?

2012-05-03 Thread Streets Of Boston
(such as the system's time), then the contents/value of someObject is depending on the first-time access of this method for this particular process. } On Thursday, May 3, 2012 7:24:23 PM UTC-4, blake wrote: On May 3, 4:15 pm, Streets Of Boston flyingdutc...@gmail.com wrote: You are right

Re: [android-developers] Re: Singletons in Android .... Final solution?

2012-05-04 Thread Streets Of Boston
Easy peasy, Make it thread safe by adding the synchronized keyword. public static *synchronized* C getInstance() throws YourException { if (mInstance == null ) { mInstance = new C(); //it throws YourException } On Friday, May 4, 2012 10:17:37

[android-developers] Re: FragmentStatePagerAdapter getItem only called for starting orientation, which in turn keeps some fragments between orientation change (not recreates them)

2011-11-14 Thread Streets Of Boston
How did you implement the onCreate method of your TestsFragment implementation? Did you call setRetainInstance(true)? If so, try to call setRetainInstance(false) instead. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: How to transform a openGL object into a bitmap?

2011-11-15 Thread Streets Of Boston
Maybe you could use this: https://groups.google.com/d/msg/android-developers/OGuoxpX20Ag/pr2FSeDYfigJ -- 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: How to transform a openGL object into a bitmap?

2011-11-15 Thread Streets Of Boston
Just try it out! Use (x,y) and (w,h) to render only a portion of your screen into a bitmap. -- 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: How to transform a openGL object into a bitmap?

2011-11-16 Thread Streets Of Boston
Looks like colors are inversed. Probably an issue with this part: int pb = (pix 16) 0xff; int pr = (pix 16) 0x00ff; int pix1 = (pix 0xff00ff00) | pr | pb; Try swapping the red and blue channels: int p*r* = (pix 16) 0xff; int p*b* = (pix 16) 0x00ff; int pix1 = (pix

[android-developers] Re: Listening to a signal sent by other app.

2011-11-18 Thread Streets Of Boston
There is a huge amount of data to be found on the internet. Just google android sample broadcastreceiver and you'll find plenty of info. -- 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] AsyncTask null exception for the activity reference in the doInBackground method while rotating.

2011-11-20 Thread Streets Of Boston
This will work if you just want to get rid of the null pointer exceptions. However, you just should never do any background work in an activity, i.e. run code in an Activity on the stack of a background thread (in your case, calling Activity.doBackgroundRequest()). It will set you up for

Re: [android-developers] Lots of the layout ID xyz is not valid errors in ADT r15

2011-11-20 Thread Streets Of Boston
Starting *eclipse.exe -clean *got rid of this problem... but only temporarily! As soon as I moved from a library project to a sub-project or vice-versa, the same problem occurs. Doing the *-clean *again, would get rid of it again, but temporarily :-) -- You received this message because you

[android-developers] Re: Issue 9656: Library projects don't support custom XML attributes for custom classes

2011-11-23 Thread Streets Of Boston
I have the same problem and haven't found a solution yet. Instead, i query the attributes by name (note that this means that they need to be set directly on the view in the XML layout). Here is an example: // called by the custom view's constructors private void init(Context context,

[android-developers] Re: Persistence of complex Java objects (SQLite, Serialization, JSON) and client-server app architecture

2011-11-27 Thread Streets Of Boston
My answer below is a general answer and i would advise this even if it weren't for Android but for mobile (connection limited devices) in general: I would vote for a RESTful/HATEOAS web-service exchange of information. The format of the RESTful data can be JSON. It's a good choice. If you

[android-developers] Re: I/O date change

2011-11-28 Thread Streets Of Boston
Thanks for the heads up! -- 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+unsubscr...@googlegroups.com

[android-developers] Re: Get Button Coordinates

2011-11-29 Thread Streets Of Boston
Are you trying to write JUnit tests for apps you write? If so, take a look at Robotium. -- 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: listactvity should not scrooll inmy view can any one tell how to do this

2011-11-29 Thread Streets Of Boston
I don't understand. A ListView is just for that purpose. If items don't fit, it'll show a scrollbar so that you can scroll up or down to reach the controls you want to see. 1. Make your list-items smaller or use fewer list-items. or 1. Don't use a ListView or a ListActivity. Just use a

[android-developers] Re: Service lifecycle timing with bindService and startService

2011-11-29 Thread Streets Of Boston
There is a whole lot to Services and the different ways it behaves when using 'bind' vs 'startService' (and the the return-value of the Service's onStartCommand callback). It would be too much to describe right here. Try this: http://developer.android.com/reference/android/app/Service.html --

Re: [android-developers] Same Issue

2011-11-29 Thread Streets Of Boston
*42!* -- 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+unsubscr...@googlegroups.com For more options,

Re: [android-developers] database connectivity on real device

2011-11-29 Thread Streets Of Boston
To access that directory and its sub-directories (data/data/**), you'll need to root your device. Create (and prefill) you database in the app (the app with id/name * package_name*) itself through SQL. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Android activity lifecycle bug/problem. Android team please help.

2011-12-01 Thread Streets Of Boston
I agree with the others. Killing your app in DDMS is like a crash on your phone. Using the Force Stop in the Applications Manager is different. Your app's processes (activities, services) won't be restarted. However, the fact that there at to Activities B on top of each other and B is

Re: [android-developers] Droid-fu BetterAsyncTask

2011-12-01 Thread Streets Of Boston
Hi Mukesh, I looked at your async-task-in-android blog post... But registering an Activity instance as a listener (WebServiceListener), you set yourself up for trouble. E.g. if you click the 'Login' button (in your example) and your rotate the device and the login returns after that, the

Re: [android-developers] Need A web xml parsing code... Urgently please

2011-12-01 Thread Streets Of Boston
Sorry Treking, But the example you provided won't work. He asked for Urgent*ly* ... slight typo on your part, can happen to the best of us :-D -- 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] Complicated JSON String Parsing in Android

2011-12-01 Thread Streets Of Boston
First, what are 'attributes' of the JSON string? Secondly, You create a String out of the JSON-array 'fruits' and then write code to get each and every character of this String. I don't understand why you are surprised that your code works and actually do get characters... In other words,

Re: [android-developers] Re: Android activity lifecycle bug/problem. Android team please help.

2011-12-01 Thread Streets Of Boston
I think it is possible to have two singleTop activities of the same class on top of each other, if they each one of them is part of a different target *task*. Maybe this is what happens? -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: getString in a class with no context - Runtime Error Resource Not Found

2011-12-05 Thread Streets Of Boston
It's great you got it to work. But why do you need a separate class (LanguagePack) to get localized strings/resources? In a method of your activity or another context, you could just do: getString(R.string.some_string)? If you want to access localized resources/strings in code that does not

[android-developers] Re: list actvity is scrolling

2011-12-05 Thread Streets Of Boston
Don't use a ListActivity. You only have a small and fixed amount of elements (8). Use a regular Activity with a layout that has a vertical LinearLayout or a TableLayout as the top element. These two don't scroll. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Unique ID, but not IMEI, IMSI, MAC, AndroidID

2011-12-05 Thread Streets Of Boston
http://android-developers.blogspot.com/2011/03/identifying-app-installations.html This link suggests and advises identifying accounts, not specific devices. However, sometimes you can't get around it. E.g. if you have an app that publishes digital content under DRM, you usually have to be able

[android-developers] Re: How to create a bitmap from binary data?

2011-12-05 Thread Streets Of Boston
http://developer.android.com/reference/android/graphics/BitmapFactory.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

Re: [android-developers] Re: Unique ID, but not IMEI, IMSI, MAC, AndroidID

2011-12-05 Thread Streets Of Boston
We use the generated device-id for DRM purposes. The generated device-id is not used as-is. The DRM code creates encrypts it and creates a hash. The hash is used for identifying the device on the DRM server. It is true that an upgrade from 2.2. to 2.3 can trigger a different result if the

[android-developers] Re: parsing nested xml tags using sax parser

2011-12-07 Thread Streets Of Boston
Look at the android.sax package: RootElement and Element, which are based upon SAX parsers and allow to maintain a context easily of your XML elements being parsed (e.g. being able to distinguish the differences/location of a child element in /parent1/child or /parent2/child). -- You

Re: [android-developers] Using ClassLoader to load class from another apk

2011-12-14 Thread Streets Of Boston
But if that is not possible for your design or the intents needs to pass Parcelables that you have created, use this construct: Say you need to pass a Parcelable inside an extra of an Intent from an Activity to a remote Service. As soon as the remote Service touches the extras (i.e. the

[android-developers] Re: Is the same 'push' possible for Android and iPhone

2011-12-14 Thread Streets Of Boston
http://urbanairship.com/ -- 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+unsubscr...@googlegroups.com

[android-developers] Re: how to use mvc architecture in android application development.

2011-12-16 Thread Streets Of Boston
Don't get hung up on 'pure' architectures/frameworks. Android supports somewhat of a MVC framework by having plain objects (M), Views and Fragments (V), and Activities (C and a bit of V if you're not using Fragments). Go to http://developer.android.com to learn more. -- You received this

[android-developers] Re: Showing DialogFragments crashes ICS

2011-12-16 Thread Streets Of Boston
That happens on Honeycomb as well. I had this happen when i tried to create/add a fragment while the onActivityResult was executing (which is just before an onResume is called). I got around this by deferring the creation/adding the fragment until the onResume is called: just set a boolean

[android-developers] Re: if() Statement Not Working Correctly...

2011-12-16 Thread Streets Of Boston
Don't worry, we've all been there at least once :-) -- 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: Passing Compressed bitmap from C to Android

2011-12-16 Thread Streets Of Boston
You'd have to show more of the code. Where does *j*bitmap come from? But at least you need to copy the pixels (pixel by pixel) into the buffer of 'bitmap' after you locked it and make sure that pixels copied into there are in the correct format (RGB_565). Look at one of the examples in the API

[android-developers] Re: SENDING YUV-TO-JPEG CONVERTED BUFFER AS A BITMAP from JNI to Android code...plzzz help...Not a Noob , Am i??

2011-12-19 Thread Streets Of Boston
Problems in 'fill_plasma': 1. The raw data of the *pxl*-array can not contain JPEG encoded data. Instead it must be encoded as RGB_565, each 2 bytes having 5 bits of red, 6 bits of green and 5 bits of blue. 2. You can not assign the bitmap's raw-data array address (*pxl*) to

[android-developers] Re: SENDING YUV-TO-JPEG CONVERTED BUFFER AS A BITMAP from JNI to Android code...plzzz help...Not a Noob , Am i??

2011-12-19 Thread Streets Of Boston
See my answer in 'android-developers' group. Please, don't cross-post. -- 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: SENDING YUV-TO-JPEG CONVERTED BUFFER AS A BITMAP from JNI to Android code...plzzz help...Not a Noob , Am i??

2011-12-19 Thread Streets Of Boston
The cross-posting remark wasn't targeted at you, Stephen. It was for the original poster :-) BTW: All the answers that we post on one forum will automatically be cross-posted on the other two forums as well (i guess because the original message was cross-posted) unless you uncheck some Cc

[android-developers] Re: Want to know about Thread life cycle

2011-12-21 Thread Streets Of Boston
Which is indeed a big problem and a cause of many crashes or force-closes. If something needs to run in the background (as a Thread or a Task/AsyncTask/Future) and it will possibly survive the destruction of an activity: - Avoid making your (anonymous or inner) Thread/AsyncTask/etc

[android-developers] Re: Messages between App and Server without C2DM

2011-12-21 Thread Streets Of Boston
Every 10 seconds? That'll drain the battery quite quickly. Why don't you want to use C2DM (or Urban Airship or other such technologies)? But yes, without a server-push technology (like C2DM or Urban Airship), you're left with client-polling and you're doing that. Just don't do it every 10

<    7   8   9   10   11   12   13   14   15   >