[android-developers] Re: SharedUserId: Things that Cannot Change http://android-developers.blogspot.com/2011/06/things-that-cannot-change.html

2011-07-25 Thread Greg Giacovelli
not crazy. Thanks Nikolay. -Greg On Jul 24, 10:26 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Mon, Jul 25, 2011 at 12:39 PM, Greg Giacovelli miyamo...@gmail.com wrote: Would SharedUserId be worth calling out. I currently don't have one set on any of my apps, but after playing

[android-developers] Re: SharedUserId: Things that Cannot Change http://android-developers.blogspot.com/2011/06/things-that-cannot-change.html

2011-07-25 Thread Greg Giacovelli
. On Jul 25, 2:49 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Mon, Jul 25, 2011 at 4:14 PM, Greg Giacovelli miyamo...@gmail.com wrote: Sadly that open issue has been marked unreproducible ... I don't understand why but I guess it's not going to be addressed. I found another :) http

[android-developers] SharedUserId: Things that Cannot Change http://android-developers.blogspot.com/2011/06/things-that-cannot-change.html

2011-07-24 Thread Greg Giacovelli
Would SharedUserId be worth calling out. I currently don't have one set on any of my apps, but after playing around with the feature while trying to get a Test Project to run as the same user ... I think it's not really possible to change the user_id with a live app without some big issues.

[android-developers] Re: Android 2.1 Emulator proxy settings

2011-07-20 Thread Greg Giacovelli
Same here :) On Jul 18, 2:39 pm, Zoon smerr...@gmail.com wrote: I'm not having luck using -http-proxy on tools r12 for some reason. Had to revert to r11.  Is anyone else having this problem? On Jul 12, 7:44 am, superprogrammer jkerns...@gmail.com wrote: I need to access the internet

[android-developers] Is there a way to include permissions only during Testing?

2011-05-05 Thread Greg Giacovelli
Hi, I have a test project that mocks out a bunch of locations and sends them through my application project. I don't want my application to include the ACCESS_MOCK_LOCATION permission so I wanted to include it in the Test project. This seems to not give me the expected result as I always get a

[android-developers] Why does the SharedLibrary for maps sometimes fail?

2011-01-13 Thread Greg Giacovelli
Hi, I have an application with a manifest that clearly states it requires the android maps. I know this works because if the phone doesn't have the shared lib it fails on install (that's great I am glad). But sometimes I am seeing reports as follows: Exception Ljava/lang/NoClassDefFoundError;

[android-developers] Re: making white pixels transparent

2011-01-13 Thread Greg Giacovelli
You could try using AvoidXferMode but I believe it doesn't support transparency. Otherwise the fastest alternative in java land would be to generate a byte buffer the size of the pixels in the image and then read them from the bitmap and then set them again. You will pay the cost of read and

[android-developers] Android Emulator without a Camera, Camera.open() != null ????

2010-12-15 Thread Greg Giacovelli
Hi, So I made an AVD with hw.camera set to no, the default. I have uses feature for both camera and autofocus set and required=false. I also have the Camera permission set. I just want to make sure I don't expose a confusing UI to people without a camera. So I thought this would make the OS

[android-developers] Re: Does getBestLastKnownLocation block?

2010-12-08 Thread Greg Giacovelli
...@commonsware.com wrote: On Tue, Dec 7, 2010 at 1:49 PM, Greg Giacovelli miyamo...@gmail.com wrote: After which we call on the UI thread LocationManager.getBestLastKnownLocation() for the provider we were interested in. There is no getBestLastKnownLocation() in LocationManager in Android

[android-developers] Re: Does getBestLastKnownLocation block?

2010-12-08 Thread Greg Giacovelli
Thanks Mark :( At least I don't feel crazy :) Kostya, Is it just not able to get a fix or does your phone display become completely black? If it just is not getting a fix then yes we know of that issue. But on phones where the screen goes black reoccurs even when restarting the phone (and

[android-developers] Does getBestLastKnownLocation block?

2010-12-07 Thread Greg Giacovelli
Hi, I was wondering if this is a bad thing to do or if it is just a buggy ROM. The location strategy my application uses is from the UI Thread register for a location update. We then schedule a cancel request on the handler of the UI thread within a given timeout to cancel the location update if

[android-developers] Custom Drawable Type refrerenced from XML

2010-12-02 Thread Greg Giacovelli
Hi I was wondering if something like this is possible { public class Foo extends Drawable { public void draw(Canvas canvas) { ... custom draw routine } } ... some_layout.xml ... View android:id=@+id/view1 android:background=@drawable/Foo / ... I know the second syntax doesn't work.

[android-developers] Re: What are some good Automated Unit And System Test Tools for Android?

2010-11-04 Thread Greg Giacovelli
for this as well) and submit that back. -Greg On Nov 3, 1:33 pm, MarcoAndroid marco...@gmail.com wrote: This tool could be useful (integrates with Maven so should integrate with Hudson):http://code.google.com/p/robotium/ I still have it on my list as to look into :) On 3 nov, 07:20, Greg

[android-developers] What are some good Automated Unit And System Test Tools for Android?

2010-11-03 Thread Greg Giacovelli
So I give in. I approached this problem as an oh hey that's not too bad, I can write a bunch of unit tests, and I have been keeping my suite green. However as things get more involved continuous integration and testing is a great great thing to have. And then I saw oh Android has emma integration

[android-developers] Re: What are some good Automated Unit And System Test Tools for Android?

2010-11-03 Thread Greg Giacovelli
:20 pm, Greg Giacovelli miyamo...@gmail.com wro So I give in. I approached this problem as an oh hey that's not too bad, I can write a bunch of unit tests, and I have been keeping my suite green. However as things get more involved continuous integration and testing is a great great

[android-developers] Re: What are some good Automated Unit And System Test Tools for Android?

2010-11-03 Thread Greg Giacovelli
But thankfully after thinking of it some more I can just use ddmlib to get the data from adb's output. I think this will work much better than what I can find. On Nov 3, 10:38 am, Greg Giacovelli miyamo...@gmail.com wrote: Sadly after looking over monkey runner, it's a java program running

[android-developers] Caching Via URLConnection vs HttpClient

2010-10-20 Thread Greg Giacovelli
On Android these seem to be imported directly from their 3rd party sources but I don't see them in the repo so I can't verify that. However I notice the class URLConnection has on it the setUseCaches() method on it. My intention is that for static remote assets this would be a blessing however I

[android-developers] Should Plurals and Quantity Strings be used?

2010-09-20 Thread Greg Giacovelli
This feature has been around since cupcake, however it has always been broken. Bugs like, http://code.google.com/p/android/issues/detail?id=8287, have been posted. The things I am finding wrong with this is that it's completely undocumented, and only works for english and czech in undefined ways.

[android-developers] Re: Should Plurals and Quantity Strings be used?

2010-09-20 Thread Greg Giacovelli
up changing the way the message is worded, using an abbreviation to sidestep this issue. -- Kostya Vasilyev --http://kmansoft.wordpress.com 21.09.2010 2:24 пользователь Greg Giacovelli miyamo...@gmail.com написал: This feature has been around since cupcake, however it has always been

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-30 Thread Greg Giacovelli
and building a product. On Aug 28, 1:13 pm, Dianne Hackborn hack...@android.com wrote: On Sat, Aug 28, 2010 at 11:13 AM, Greg Giacovelli miyamo...@gmail.comwrote: So I am not saying use a dialog everywhere. I am saying on a per application basis. The problem with Windows Vista

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-28 Thread Greg Giacovelli
So I am not saying use a dialog everywhere. I am saying on a per application basis. The problem with Windows Vista was that it was everywhere. I am saying in addition to a small wall of permissions representing the what permissions are needed for the core functionality of the application, you

[android-developers] Is there a way to request permissions from a user as you need them?

2010-08-27 Thread Greg Giacovelli
I suspect there has to be. I mean I saw for bluetooth there is. I was wondering why it is not as easy for the other permissions. I mean heck we can intercept urls without even asking a user for the most part, so I would have to suspect that permissions have to have this ability. -Greg -- You

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-27 Thread Greg Giacovelli
:34 AM, Greg Giacovelli miyamo...@gmail.comwrote: I suspect there has to be. I mean I saw for bluetooth there is. I was wondering why it is not as easy for the other permissions. I mean heck we can intercept urls without even asking a user for the most part, so I would have to suspect

[android-developers] Re: MenuItem with Spanned elements in their titles

2010-08-27 Thread Greg Giacovelli
Just to close this off, apparently in MenuItems for context menus you need to use a string for the condensedTitle because the internal EventLog is dumb. On Aug 19, 7:28 pm, Greg Giacovelli miyamo...@gmail.com wrote: Hi I was just trying something and realized this doesn't seem possible due

[android-developers] MenuItem with Spanned elements in their titles

2010-08-19 Thread Greg Giacovelli
Hi I was just trying something and realized this doesn't seem possible due to the debugging code in the android OS. I register a context menu on an AdapterView, via registerContextMenu(mAdapterView), and then implement the onCreateContextMenu, like this: CharSequence title =

[android-developers] SimpleAdapter is not updatable after a Filter request has been made

2010-08-16 Thread Greg Giacovelli
So I was playing around with a ListView backed by a SimpleAdapter who's data is loaded via an async task. Now I can refill this adapter and use the notifyDataSetChanged methods to update the listView to display the correct contents. Ok that's cool. But then when I try to filter the results based

[android-developers] Re: SimpleAdapter is not updatable after a Filter request has been made

2010-08-16 Thread Greg Giacovelli
The only way I have gotten around this, is by taking my list of maps and creating a new simple adapter. Then I have to set the ListView's adapter to this new SimpleAdapter instance. This seems really wasteful, but it works. Why is this like this? On Aug 16, 3:53 pm, Greg Giacovelli miyamo

[android-developers] Any Harm in Tying GPS listening to onWindowFocusChanged()

2010-08-03 Thread Greg Giacovelli
Hi, So I have received complaints from users that they think our app was using GPS why they were not using the app because the lock screen was displaying the GPS icon. I previously within a common root activity, registered for GPS events in the onResume and deregistered in the OnPause(). Turns out

[android-developers] Sqlite segfault anyone ever see this??

2010-08-03 Thread Greg Giacovelli
Hi all, So I have been getting actual segfaults reported on start up of my app. However the segfault is within sqlite while opening a db which hasn't been touched in a while. Is there something I am missing? Here is a sample one that was sent to me recently. E/Database(26240):

[android-developers] Re: Sqlite segfault anyone ever see this??

2010-08-03 Thread Greg Giacovelli
, however yeah I agree it sounds like a firmware issue. I will see if I have more info to send back but so far this is the most complete that I know of. Thanks:) -Greg On Aug 3, 12:53 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Aug 3, 2010 at 3:48 PM, Greg Giacovelli miyamo

[android-developers] Re: Any Harm in Tying GPS listening to onWindowFocusChanged()

2010-08-03 Thread Greg Giacovelli
sorry for the premature bump, I just can't find this thread on the site other than the thread id which I know. bump On Aug 3, 10:05 am, Greg Giacovelli miyamo...@gmail.com wrote: Hi, So I have received complaints from users that they think our app was using GPS why they were not using

[android-developers] am i using these correctly? AbsListView.layoutparams

2010-07-01 Thread Greg Giacovelli
Hi, So listview is on of those.components used all over the OS and has all those tricks to speed it up and in a lot of cases, work correctly. So let's say I have an adapter that supports N views. GetViewTypeCount() returns N. GetItemViewType() return [0, (N - 1)] Now the interesting part getView

[android-developers] Re: Repackaging Android System Classes in an application

2010-06-17 Thread Greg Giacovelli
Hackborn hack...@android.com wrote: Don't do this.  This is not a security issue at all; it just makes an app that will likely break itself. On Wed, Jun 16, 2010 at 12:47 PM, Greg Giacovelli miyamo...@gmail.comwrote: Hi, So I came across this today and was wondering does this work

[android-developers] Repackaging Android System Classes in an application

2010-06-16 Thread Greg Giacovelli
Hi, So I came across this today and was wondering does this work in production app or does it merely work because my phone allows non market apks. Here is an example, Take a class like, android.view.IWindow, and copy it's source into your project and recompile it after changing a few things.

[android-developers] Re: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-05-24 Thread Greg Giacovelli
or someplace other than just cleaning my workspace that I should be looking at? -Greg On May 24, 5:36 am, Flying Coder av8r.st...@gmail.com wrote: Hi Greg,     Did you ever figure out what was going on?  I'm having exactly the same problem. Thanks, Steve On May 21, 8:39 pm, Greg Giacovelli miyamo

[android-developers] Re: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-05-24 Thread Greg Giacovelli
Thanks Xav, Much appreciated, I thought I was crazy :) I have been following the conventions you speak of and that is why I brought it here when I exhausted all the known things that I was doing. I really look forward to the information in the coming weeks. If there is anything more from me that

[android-developers] Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-05-21 Thread Greg Giacovelli
Hi, I just built my app against the new SDK released yesterday and it seems to break when I run the app in my old 1.5 profile in regards to packaging assets. I haven't changed anything about my application and it ran on API 3 - 7. However just increasing that build to 8 seems to change something

[android-developers] Re: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-05-21 Thread Greg Giacovelli
Yeah that was what I tried before posting. I did that like 3 times. The same APK works on 2.1 devices so it cannot be an inlining issue. I am sorry I know it's a vague error. The drawable in question is just a selector with dither equals true with 4 states inside of it. Nothing complicated but

[android-developers] Re: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-05-21 Thread Greg Giacovelli
to be missing (or if it's actually missing) and match it with the R class. To look at the compiled resources: aapt dump resources yourapp.apk aapt is in sdk/platforms/android-8/tools/ Xav On Fri, May 21, 2010 at 4:17 PM, Greg Giacovelli miyamo...@gmail.com wrote: Yeah that was what I tried

[android-developers] Re: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-05-21 Thread Greg Giacovelli
Ok oddly enough, aapt dump xmltree APK res/drawable/profile_section_background.xml returns data from both toolsets, however loading the apk on either the G1 or an emulator of API level 5 still dies. -Greg On May 21, 5:10 pm, Greg Giacovelli miyamo...@gmail.com wrote:   public static final

[android-developers] Re: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-05-21 Thread Greg Giacovelli
Nope it's just in drawable. -Greg On May 21, 5:28 pm, Xavier Ducrohet x...@android.com wrote: Is that resource in a qualified drawable folder? (like drawable-hdpi ?) Xav On Fri, May 21, 2010 at 5:10 PM, Greg Giacovelli miyamo...@gmail.com wrote:  public static final int

[android-developers] RelativeLayout vertical center issue in Android OS 1.5

2010-04-27 Thread Greg Giacovelli
Hi, I found this thread http://groups.google.com/group/android-developers/browse_thread/thread/125dd6c435aa7cad/c19724a514558af7 which seems to be closed. I don't think it's an actual solution, it's more of a we needed this to work now. I am having the same issue where the centerVertical seems to

[android-developers] Re: AsyncTask : java.util.concurrent.RejectedExecutionException

2010-04-09 Thread Greg Giacovelli
Hi arnouf, I don't mean to butt in but I suspect this is a similar problem to something I saw before. In your ViewAdapter, I am assuming you are creating or using a View which is or contains an ImageView which you are trying to load the image contents for remotely. If you are always creating the

[android-developers] Incorrect documentation for Xml Attributes (onclick, padding, etc), all API Levels?

2010-04-07 Thread Greg Giacovelli
Hi, The documentation seems to specify API Level Blank for a lot of the XML attributes in View. I haven't checked others. I have my filters set to only look for API 3 and it seems that this misses the filter. So it shows up and low and behold since it's XML it will parse, compile and then just not

[android-developers] Re: Localization of Plurals using Context and resources strings.xml

2010-03-11 Thread Greg Giacovelli
Thanks :) Sadly I just read through tons of source code and got this Pretty interesting :) Ok so since you seem to know that, would you know what the quantity=few, quantity=many do? The src code doesn't seem to define them in the PluralRules implemented, or at least nothing that is really