Re: [android-developers] Broadcast receiver not working in ICS

2012-07-13 Thread Streets Of Boston
Whoops, forgot to realize that his app is not doing the sending of the broadcast. :-) On Friday, July 13, 2012 11:55:16 AM UTC-4, Mark Murphy (a Commons Guy) wrote: > > On Fri, Jul 13, 2012 at 11:06 AM, Streets Of Boston > wrote: > > Add this flag to your intent to overrid

Re: [android-developers] Jelly Bean Crash with Bitmap Recycle "Sorry, an error has occurred: bitmap is recycled"

2012-07-16 Thread Streets Of Boston
The code below would fix an issue where a bitmap would have been recycled twice. This would not fix the issue where a bitmap would have been recycled where it should have never been recycled at all. BTW: the boolean expression (bitmap1 != bitmap2) or (bitmap1 == bitmap2) is very fast. It is jus

[android-developers] Re: Jelly bean accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility

2012-07-16 Thread Streets Of Boston
I'm just guessing here: What if you set thee android:targetSdkVersion to a value less than 16? On Monday, July 16, 2012 2:43:47 PM UTC-4, Andy dev wrote: > > Thanks Mark, your answer was perfect! > > After playing around the solution that worked for me was to use the bool > flags with the valu

[android-developers] Re: Jelly bean accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility

2012-07-16 Thread Streets Of Boston
, Andy dev wrote: > > I think that would have been ok, but I wanted to use some new features > from v16 > > On Monday, July 16, 2012 7:51:07 PM UTC+1, Streets Of Boston wrote: >> >> I'm just guessing here: What if you set thee android:targetSdkVersion to >> a valu

Re: [android-developers] Re: Jelly bean accessibility service needing android.permission.BIND_ACCESSIBILITY_SERVICE. Backwards compatibility

2012-07-16 Thread Streets Of Boston
te: >> >> On Mon, Jul 16, 2012 at 5:00 PM, Streets Of Boston >> > wrote: >> > The targetSdkVersion value only determines the compatibility mode of >> your >> > app (depending on the device it is running on), which influences the >> default >>

Re: [android-developers] onSaveInstanceState() killed by OS

2012-07-20 Thread Streets Of Boston
Hi Andrew, The answers you got are correct. You should spend as little time in onSaveInstanceState (or any other onX callback method) as possible. Preferably a few milliseconds. I don't know what your app does, but it looks like you try to save user supplied information (either in a file o

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

2012-07-20 Thread Streets Of Boston
The problem is with a non-static inner class is that you don't 'see' the implicit reference to the outer instance (OuterClass.this). It is easy to forget about this one and later realize what problems it causes. Usually, when the lifetime cycle of an inner class matches the lifecycle of the ou

[android-developers] Re: C2DM on tablets

2012-07-26 Thread Streets Of Boston
I don't think you can do much if users have configured their tablet to have their WiFi disconnects when the tablet is in sleep mode: No connection, no C2DM. The best you can do is to query this 'WiFi off when device is asleep' setting (i'm not sure how, but i think it should be possible) and i

[android-developers] Re: Selling Applications Thru Google Play, Do i have to pay Taxes?

2012-07-27 Thread Streets Of Boston
It entirely depends on your situation and,as the other said, get an accountant/tax-adviser to get a good answer. But in general: If you have income, you'd need to pay taxes on it fact of life :-) On Friday, July 27, 2012 3:11:31 PM UTC-4, Jaison Brooks wrote: > > So i am selling applictio

[android-developers] android:accessibilityFocusable attribute in a layout-xml produces an error

2012-07-31 Thread Streets Of Boston
Hi, I have a text-view next to a seekbar. The seekbar is accessible and announces its current value. The text-view also shows this value. For accessibility, I'd like to make the text-view not accessibility-focusable, since the seekbar already is (no use in stating the same thing twice). Howev

Re: [android-developers] android:accessibilityFocusable attribute in a layout-xml produces an error

2012-07-31 Thread Streets Of Boston
, 2012 11:11:15 AM UTC-4, Mark Murphy (a Commons Guy) wrote: > > There's no accessibilityFocusable attribute in the documentation, at > least based on a simple search. I don't see anything quite like it in > the list of XML attributes for View. Where did you find this? >

Re: [android-developers] android:accessibilityFocusable attribute in a layout-xml produces an error

2012-07-31 Thread Streets Of Boston
llyBean) custom view with a custom virtual view hierarchy. Do you know of any? On Tuesday, July 31, 2012 12:45:16 PM UTC-4, Mark Murphy (a Commons Guy) wrote: > > On Tue, Jul 31, 2012 at 12:31 PM, Streets Of Boston > wrote: > > If this is not the way to do it, how would one

Re: [android-developers] android:accessibilityFocusable attribute in a layout-xml produces an error

2012-08-01 Thread Streets Of Boston
y 31, 2012 3:23:13 PM UTC-4, bob wrote: > > What do you mean "hover events seem to work somewhat better"? What's a > hover event on a touchscreen? > > > On Tuesday, July 31, 2012 12:54:25 PM UTC-5, Streets Of Boston wrote: >> >> Thank you Mark. >

[android-developers] Re: Installing a private corporate app

2012-08-07 Thread Streets Of Boston
If your company is larger and is planning on developing more in-house app for its employees (and customers?), then something like the EASE platform of Apperian may be of interest: http://www.apperian.com/get-started/ease-platform/ On Sunday, August 5, 2012 11:23:55 AM UTC-4, jayd wrote: > > I’

[android-developers] Re: Handler or (Local) BroadcastReceiver

2012-08-28 Thread Streets Of Boston
You could do both, if you abstract out the javascript-to-java calls in your HTML5's javascript - Create a javascript class in your HTML5 that implements a certain set of methods that define all the necessary javascript-to-java calls (abstraction). Let's call it 'CallToJava'. - On Android, re

Re: [android-developers] global_context

2012-08-28 Thread Streets Of Boston
As long as *global_context *is an Application object, it is 'alive' as long as the (DalvikVM) process is alive (and vice-versa). As long as this context is only used to load assets/resources, this should be fine. Having such a global context (*application *context would be a better word) could

[android-developers] Re: Connection RESTful service with AsyncTask

2012-08-29 Thread Streets Of Boston
I'm don't know how you use 'ServiceController', but note that for each instance of a ServiceController, you can call 'executeService()' only *once*. This is because it has an AsyncTask (your WebService) as a field, which is constructed in the ServiceController's constructor. And an AsyncTask's

[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 *yo

[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 dead-

[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 subscr

[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 Activit

[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 Goog

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 accou

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 progressDialog.setProg

[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 mo

[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 android-developers+unsubscr...@googlegroups.

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 e

[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 unsu

[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 (*asynchronou

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 onViewCrea

[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 'get

[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 a

[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 outst

[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 y

[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, m

[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 o

[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 pos

[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 com.broadcast.B

[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 through

[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 Group

[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 pu

[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 vie

[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 gro

[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 fr

[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

[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 android-develop

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 problem

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 ar

[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, AttributeSe

[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 impleme

[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 reg

[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, v

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 Develop

[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 singleTop,

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 onPos

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 android-d

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, you'd

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 ha

[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 "Andr

[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 to

[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 t

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 devic

[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 Bundle

[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 messa

[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 field

[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+un

[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 your

[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 an

[android-developers] Re: Can we create two ThreadPoolExecutor running on android?

2011-08-30 Thread Streets Of Boston
Create a ThreadPoolExecutor instance with a small sized thread-pool (maybe only 1 thread in the pool, maybe 2). Don't worry about creating one or two more possible threads if you can't use AsyncTask. If threads are dormant/parked, they don't take up too much resources. -- You received this me

Re: [android-developers] Re: How to 'delete' allocated class by 'new'??

2011-08-31 Thread Streets Of Boston
As other have stated, Java Objects are garbage collected: If an Object cannot be reached (from any of the current threads' stack-frames or from the heap), directly or indirectly, i.e. there is no path to the Object, then this Object can be garbage collected. It is impossible to 'delete' an Obje

[android-developers] Re: two icons for the same app

2011-08-31 Thread Streets Of Boston
Look at your AndroidManifest.xml file. If you have *two * items whose intent filters look like this: then that's one too many (if you don't want two of them). If you have only one activity with that intent-filter, then i'm not sure what is causing your problem. -- You received this message

[android-developers] Re: AbsoluteLayout

2011-09-01 Thread Streets Of Boston
"I have an iPhone app that needs conversion to Android ASAP." And just plain (attempts of) ports/conversions of iPhone apps into Android apps don't work. You will get a lousy rating on the Market. No one will use it or want to use it. And using an AbsoluteLayout to do so, is setting yourself up f

[android-developers] Re: Can we create two ThreadPoolExecutor running on android?

2011-09-05 Thread Streets Of Boston
You can execute AsyncTasks from services (or background threads), as long as the first ever AsyncTask in your process is created in a UI Thread (thread with Looper). I found this out when running JUnit tests... -- You received this message because you are subscribed to the Google Groups "Andro

[android-developers] Re: one AsyncTask at a time

2011-09-12 Thread Streets Of Boston
An AsyncTask is not a thread. It is a unit of work that is run on an existing thread. The thread is plucked from a pre-allocated pool of threads. You cannot run an AsyncTask more than one. To run the same thing (implemented as an AsyncTask) more than once, create a new instance of that AsyncTas

Re: [android-developers] Dialog dismiss()

2011-09-14 Thread Streets Of Boston
I found the use of activities (with a Theme.Dialog or such theme) much easier and prefer it over the use of dialogs. And usually, i put busy-indicators such as indeterminate progress-bars on the screen it self (the right top corner of the screen or as a 'full' screen overlay). This prevents me

Re: [android-developers] Re: Abrir URL desde android y no mostrar barra de direcciones o fuente del sitio

2011-09-15 Thread Streets Of Boston
I disagree; I wouldn't want to see every possible language on this board. If you read the 'About' of this group ( https://groups.google.com/group/android-developers/about), it states that the language is English. If possible, please try to post in this language, in English. You get a lot more vi

[android-developers] Re: [Fragments/supportv4] How do I make ViewPager/TabHost attatch all tabs and not just the current and the one next to it?

2011-09-16 Thread Streets Of Boston
If you just need your tabs *instantiated *(as a Java Object), you can do this in your activity. Pre-instantiate all 4 of them (new MyFragment() 4 times), add them to a list and use this list in the FragmentPagerAdapter's * 'getItem(int)*' method. If you need your MyFragments to be *attached* al

[android-developers] Re: Progressive Rendering, when loading the content at runtime in Android Webview

2011-09-16 Thread Streets Of Boston
The only way i can come up with is to do this in JavaScript. Render the page with your initial HTML. This HTML contains JavaScript code/functions that 'append' html after the last child of the . Then when 'new' html is ready, send it to the JavaScript. The JavaScript then will make sure to turn

[android-developers] Re: passing objects to pushed activities

2011-09-17 Thread Streets Of Boston
Intent intent = new Intent(this, FooActivity.class); intent.putExra("SomeVariableName", strVariable); startActivity(intent); Then in your FooActivity.class (in onCreate(...) for example): ... Intent intent = getIntent(); String variable = intent.getStringExtra("SomeVariableName"); That's it :)

[android-developers] Re: passing objects to pushed activities

2011-09-17 Thread Streets Of Boston
Some extra info: If you need to pass more than just String, ints, floats and such, and you need to pass 'complex' Objects, do one of these: - Pass a Bundle. A Bundle is much like a Map (HashMap) but it can be passed as a value for the Intent's 'Extras'. - Pass an Object that implements

[android-developers] Re: Icecream Sandwich, when the SDK?

2011-09-19 Thread Streets Of Boston
Nothing new...it's always been like this: The first phones are almost already on the market before the devs get the SDK. -- 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.c

Re: [android-developers] Re: Progressive Rendering, when loading the content at runtime in Android Webview

2011-09-19 Thread Streets Of Boston
I don't have examples. Just take a look at the official android developer site: http://developer.android.com/guide/webapps/webview.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

[android-developers] Re: Some times R.Java file is not genarated? what is reason behind that

2011-09-19 Thread Streets Of Boston
I think that's not happening because regenerating R.java, i.e. recompiling the resources, can take a looong time. However, when changing, adding or deleting a resource, R.java should be re-generated. When you just change a Java source file, R.java may not be regenerated. -- You received

[android-developers] Re: ListView: responding to item clicks via a listener

2011-09-19 Thread Streets Of Boston
The solution you have may work, but it's not the best... keyboard/dpad navigation of your list won't work well. My question is: What about R.layout.alarmgroups_item. Could you show the alarmgroups_item.xml contents? Maybe one of the items in there is clickable and/or focusable. -- You receiv

[android-developers] Re: What the hell is ActivityManager.isUserAMonkeyFor???

2011-09-19 Thread Streets Of Boston
http://developer.android.com/guide/developing/tools/monkey.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-d

[android-developers] Re: savedInstanceState always null

2011-09-20 Thread Streets Of Boston
I assume that your activities have the default launch-mode. I.e. when started, they will be newly created. Press app-icon: Activity is started and onCreate is called. Press Home-button long time: Your task, that contains your activity, is brought to the foreground. If your process was still runn

Re: [android-developers] parcelable again: passing object BACK through activity stack

2011-09-21 Thread Streets Of Boston
1. Try to avoid Serializable. It is very slow compared to Parcelable. 2. Take a look at startActivityForResult and onActivityResult. 3. If you reeeaaally need to update activity A about events from activity B, consider putting your own subclass of ResultReceiver in the Intent's 'extras'. Then act

<    4   5   6   7   8   9   10   11   12   13   >