[android-developers] Goodbye friends and thanks for all the help.

2010-09-01 Thread brucko
After yesterdays little farce, http://ausdroid.net/2010/09/01/google-now-supporting-paid-applications-for-aussie-developers/ and the total lack of care factor re: Google and developers in countries unable to set up merchant accounts... I've decided to shelve all my consumer Android projects and

[android-developers] Re: Goodbye friends and thanks for all the help.

2010-09-01 Thread brucko
Yes, its extremely frustrating .. ... I hate it when business models restrict innovation. I've moved from frustration to resignation now. Personally, I feel that Google has been, and still is, one of the most significant driving forces behind innovation in IT today. Things to some extent go

[android-developers] Re: Goodbye friends and thanks for all the help.

2010-09-01 Thread brucko
Essentially, there has been no new countries added to the list for some time. Links like this http://market.android.com/support/bin/answer.py?hl=enanswer=143779 oops. wrong link. the other one has been changed now -- You received this message because you are subscribed to the Google

[android-developers] Re: Launching barcode reading from browser

2010-08-11 Thread brucko
Take a look at the zxing web page. http://code.google.com/p/zxing/wiki/ScanningFromWebPages Essentially any web developer can do this - but you are probably relying on the BarcodeScanner app already beibg installed on the phone. (haven't really tried it out myself) Best Regards, Geoff On Aug

[android-developers] Re: Binder is leaked by binding to a service

2010-08-02 Thread brucko
Sorry for slow reply - been away. By the way, if I changed LocalBinder to a static inner class, does it make sense ? I have made a separate generic class that usually use for all my services ie one that I import in - just a bit of cut and paste. That way I can reuse the code for all my

[android-developers] Re: Multiple Sliding Drawers

2010-07-30 Thread brucko
Disclaimer - I have no idea about what I am talking about. I have not tried this. Could you use one sliding drawer with three views on the handle - but change the drawer contents based on what part of the handle was touched to drag up. To make it a better user experience, you might make the

[android-developers] Re: Binder is leaked by binding to a service

2010-07-30 Thread brucko
This appears to be a bug http://code.google.com/p/android/issues/detail?id=6426 watch out. If your LocalBinder is a non-static inner class, then you will leak your Service as well as non-static inner classes have a reference to the outer class. -- You received this message because you are

[android-developers] Re: Wrapping content of a TableRow

2010-07-26 Thread brucko
Chris, You probably need two things. 1/ make sure your text view is multiline, as opposed to singleLine, if you want it to wrap to the next line. 2/ you will need to set the column for your text view (the one that you want to wrap) to shrinkable. have a look at

[android-developers] Re: Trying to retrieve IMEI but Eclipse says method getSystemService(String) is undefined

2010-07-20 Thread brucko
getSystemService() is not a static method and in Context is only an abstract method. You need to provide an actual Context such as your current Activity instance. On Jul 21, 2:52 am, Mystique joven.ch...@gmail.com wrote: Wonder why do I get this error? String srvcName =

[android-developers] Re: simplecursoradapter

2010-07-19 Thread brucko
to make things easier, you could use Activity.startManagingCursor() and the Activity will take care of it for you On Jul 20, 1:33 am, ecforu ecforus...@gmail.com wrote: If I pass a cursor to a simplecursoradapter, do I still need to close the cursor?  if so when: after I pass it to the

[android-developers] Re: Activity Stack Problem

2010-07-15 Thread brucko
I suspect you are leaking instances of your Activities. At one stage, I had similar problems, but they magically went away when my practices improved and I started using MAT for Eclipse. Watch out for anything that may have a reference to your Activities and callbacks. Listeners, drawables,

[android-developers] Re: Sharing SQLite Database between activities

2010-06-27 Thread brucko
Probably the model that your looking for is a local service. Keep all your interaction with the db in the one service. Open the db in onCreate and close it in onDestroy. You can bind to it from multple Activities - and if your service is still there when binding so is your db without replicating

[android-developers] Re: Using barcode scanner as input method?

2010-06-27 Thread brucko
On Jun 17, 12:44 am, PinkSharK senghouth.h...@gmail.com wrote: +1, I am also interested in it. I have installed two of the first free applications from the Android Market listed when looking for barcode:BarcodeScanner from ZXing Team and pic2shop by Vision Smarts. Unfortunately, both do not

[android-developers] Re: creating and opening sqlitedb on sdcard for api7

2010-06-21 Thread brucko
kamiseq, Only just saw your posts. I have to regularly create db's on sdCard due to my requirements. The code I use is below. The main thing that stands out in your code to me is File.pathSeparator, from memory this returns : when you need File.separator which is / - on my system anyhow.

[android-developers] Re: Using barcode scanner as input method?

2010-06-21 Thread brucko
I'm not sure what the question is here, but barcode scanner usually reads the barcode in less than a couple of seconds - depending on focus, and how steady your hand is. In my limited experience, I have had few problems with it. The app is not usually present on phones and needs to be downloaded

[android-developers] Re: Using barcode scanner as input method?

2010-06-19 Thread brucko
Do not tell me I have to develop an application from scratch to get this... OK. I wont :) ... and you don't. You can launch the barcode app with an Intent using startActivityForResult(). You will get back a result with Extras that will have the barcode content - and also I believe the barcode

[android-developers] Re: CANNOT manage to get ADB working whatever I do.

2010-06-02 Thread brucko
for all adb devices(windows XP64bit) show no device (service started successfully, device recognized in Device Manager correctly). When you say correctly do you mean that it appears in the Device Manager BOTH as a ( Portable Device / Android Phone ) AND (Android Phone / ADB Interface). If you

[android-developers] Re: Bottom of one LinearLayout being hidden by other LinearLayout?

2010-05-27 Thread brucko
Hi Mike, It appears you may be running out of room. RelativeLayout is drawing your first LinearLayout and then placing the other on top. My understanding is that Relative Layout (and FrameLayout) maintain a Z- ordering of children essentially each child is on a layer above the previous and will

[android-developers] Re: Combining OR calls in managedQuery

2010-05-24 Thread brucko
and so on, in various permutations. mActivity.managedQuery(content_uri, [id, title, tags], title LIKE ? OR tags LIKE ?, [%A% OR %C%, %A% OR %C%], title ASC) Not familiar with the syntax you are using, but this is how I would try it mActivity.managedQuery(content_uri, //table

[android-developers] Re: Restricting Softkeyboard Kyes for EditText

2010-05-20 Thread brucko
try, android:inputType=number|phone will still have letter on buttons, but bigger, fewer buttons -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Re: Can't stop debugging

2010-05-18 Thread brucko
Do you happen to have... Debug.wait for debugger() somewhere in your code? -- 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

[android-developers] Re: Using same sqlite database from multiple Activities and Services

2010-05-12 Thread brucko
This all sounds like a local Service to me. Open the db in onBind if its not open. Let the service take care of how many Activities/ Services are bound and close the db in onUnbind. Easy, simple everything you need is already there. Or you can complicate things and reinvent singletons and

[android-developers] Re: Sqllite database join query

2010-05-12 Thread brucko
Have a look at the SQLite website. SQLite does have support for joining separate databases, but I am not sure how it is done. -- 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: Debugg problem source not found

2010-05-11 Thread brucko
Hi Mohammad, I suspect you are using Eclipse and whilst stepping through the code you are getting source not found whilst calling methods that you have not written yourself. There is no bug. You probably don't have the source code files for Android on your system. This is the default and is not

[android-developers] Re: How to disable home and other buttons so as to persist an app?

2010-05-11 Thread brucko
Quick question guys. I have no real knowledge in this but am quite interested. Assuming that the devices belong to an enterprise, can you just replace the Home application with your application? Like... http://developer.android.com/resources/samples/Home/index.html That way when the home button

[android-developers] Re: Local Service not Registering

2010-05-09 Thread brucko
My bad, somewhere I managed to call the unbind method OF the service I was trying to unbind. Of, course the service is NOT registered as being bound to itself. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: Process Crash whilst using JUnit

2010-05-07 Thread brucko
This problem is caused by calling Binder.finalize() on the Binder. Whilst the documentation says that finalize() may be called. Its causing all sorts of problems for me. As a result I am accepting the rather small memory leak and moving on. I have reported Issue 8046 for this as it appears to be a

[android-developers] Re: Sliding Drawer question

2010-05-06 Thread brucko
Never done this before, Tommy. Have a look at http://developer.android.com/reference/android/widget/ImageView.html#attr_android:scaleType -- 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] Local Service not Registering

2010-05-06 Thread brucko
Essentially my problem is this, I open my Activity. It binds to a local service that appears to be connected. I get a force close when I press the back button IllegalArgumentException: Service not registered when unbind is called in my onPause method... public void onPause() {

[android-developers] Re: Parcelable datatype in AIDL file

2010-05-05 Thread brucko
I had something like that once when I was dumb and used setDataPosition() in a readFromParcel() method. Threw the pointer out of position. Otherwise, sorry i cant help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: How to narrow down the method that is involved in exception from the pid

2010-05-05 Thread brucko
Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.sqlitecur...@437c0e60 on null that has not been deactivated or closed This is a strange one. I find that this error is given in two situations 1/ When I forgot to close a cursor. 2/ When I dumbly tried to reuse a

[android-developers] Re: Simple LinearLayout doesn't work

2010-05-05 Thread brucko
Gravity defines the layout of elements laid out within that view - not the view itself. For what I think you may be trying to achieve, you may be better off with a RelativeLayout instead of a LinearLayout for your outer layout. Set the relative layout gravity to center_horizontal, then put the

[android-developers] Re: Sliding Drawer question

2010-05-04 Thread brucko
Tommy, Whilst RelativeLayout is quite powerful, and as Mark stated earlier, is what you need for your sliding drawer - especially as you have other elements - you may need to be a little more careful in the order you declare your view elements. If you want your SlidingDrawer to go over the top

[android-developers] Re: ButtonDown and ButtonUp events for Android buttons?

2010-05-03 Thread brucko
Have you tried an OnTouchListener? This will send you motion events which you can check for ACTION_DOWN and ACTION_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

[android-developers] Re: Development and debugging tools

2010-05-03 Thread brucko
Hi Sandy, I'm bit of an amatuer, and other people here know a lot more about this than I do. Have a look at this blog... http://ttlnews.blogspot.com/2010/01/attacking-memory-problems-on-android.html It will help you with some of the automated heap dump stuff I think you are looking for. I had

[android-developers] Re: Process Crash whilst using JUnit

2010-05-01 Thread brucko
Thanks for the reply Bob. I'm a little out of my depth here. Luckily, or I suppose yes by plan, I am using subversion and have found a much smaller subset of my code that causes the problem. Actually using System.gc() did help me isolate and was actually an earlier post of yours that gave me the

[android-developers] Process Crash whilst using JUnit

2010-04-29 Thread brucko
Nearly at my wits end. Been slowly building my app and now JUnit is crashing regularly with logcat as below. There are no other real hints. No relevant code as this can happen at multiple points of the code. There are no other errors or exceptions thrown. As far as I can tell there is plenty of

[android-developers] Re: Running activity from remote service

2010-04-29 Thread brucko
not an expert here, but have you put an intent filter in the manifest for the activity you want to start? Gives the system an idea that you want that activity to catch that intent. Something like this?... intent-filter . . . action android:name=com.pushservice.PushActivity / /intent-filter

[android-developers] Re: IllegalArgument Exception: Service is not registered: when unbindservice is called.

2010-04-05 Thread brucko
Hi Prajakta, Not sure here - but I dont think you really need to call stopService. Stop service is usually used when you have started your service with startService(). Unbind service is used when you started the service with bindService. If you really needed to kill your service when unbinding

[android-developers] Re: App not visible in Australia

2010-03-25 Thread brucko
Just an update.. Paid apps are now accessible through Optus in Australia. -- 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: App not visible in Australia

2010-03-21 Thread brucko
String, Its right about Optus. They will not support Android Market and at one stage were talking of their own app store. Also drawn into this are the vitrual carriers TPG (which I am on), Virgin Mobile and Dodo ( I think). There is a forum on the problem at Whirlpool

[android-developers] Re: Custom Dialog

2010-03-17 Thread brucko
Bob, Thanks for this and other posts. If it weren't for yourself, Mark Murphy and TreKing I would be pulling my hair out - and its getting too precious to be doing that these days. As someone with not a lot of experience in things Android, the Context is one of the most confusing things to me

[android-developers] Re: Custom Dialog

2010-03-17 Thread brucko
Sorry to single you out Mark, but you just write stuff that makes sense. -- 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: OnPause() - how to resume to an activity which has a Bundle passed to it when it is created

2010-03-12 Thread brucko
I'm not really sure as to how you want to implement this, but can you just store the image file name/resource id and the text view for the song in the preferences for your activity and just reload the preferences when the activity is recreated? Or alternatively, get the service to store the

[android-developers] Re: OnPause() - how to resume to an activity which has a Bundle passed to it when it is created

2010-03-12 Thread brucko
I'm not really sure as to how you want to implement this, but can you just store the image file name/resource id and the text view for the song in the preferences for your activity and just reload the preferences when the activity is recreated? Or alternatively, get the service to store the

[android-developers] Re: where can I get the source code of button

2010-03-12 Thread brucko
Don't know how up to date this is but it may give you a start. http://www.google.com/codesearch/p?hl=en#uX1GffpyOZk/core/java/android/widget/Button.javad=2 Geoff -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: EditText uncontrollable/unpredicatable soft keyboards

2010-03-08 Thread brucko
Thanks jamesc, Sorry about the late reply, for quite some time I couldn't find my post earlier. I had given up and then stumbled across your reply today. You're not using a Hero by any chance, are you? Why actually, yes I am. Is there an issue you are aware of with the Hero? Try putting this

[android-developers] Re: EditText uncontrollable/unpredicatable soft keyboards

2010-03-08 Thread brucko
Thanks jamesc, Sorry about the late reply, for quite some time I couldn't find my post earlier. I had given up and then stumbled across your reply today. You're not using a Hero by any chance, are you? Why actually, yes I am. Is there an issue you are aware of with the Hero? Try putting this

[android-developers] EditText uncontrollable/unpredicatable soft keyboards

2010-03-03 Thread brucko
Does anyone have an idea as to what determines whether the soft keyboard will be opened with an EditText. I have a single Edit Text, in a RelativeLayout, that has an attached onEditorActionListener which for some strange reason grabs focus and opens the soft keyboard whenever the activity is

[android-developers] Re: Petition: Google, please improve the Android Market.

2010-02-23 Thread brucko
So throwing a T-Mobile sim card inside the Nexus One will net T-Mobile with those fees. If you load up an Archos and use the Market Enabler, T-Mobile might get those too, depending if you use those tmobile credentials to access the market. The market is filtered by your carrier, then your

[android-developers] Re: Access barcode app from website

2010-02-17 Thread brucko
Not sure if this is what you want, but a lot of apps like Compare Everywhere are based around the zxing app Barcode Scanner. This can be launched if on your phone via Intent --- http://code.google.com/p/zxing/wiki/ScanningViaIntent Alternatively the packages are open source and can be put in

[android-developers] Re: Trapping onItemSelected events from an Auto complete list

2010-02-11 Thread brucko
Hi had same problem. What I suspect you need is an AdapterView.OnItemClickListener. This captures events when the item is clicked. OnItemSelected appears to capture when the list item gains focus such as when the DPad buttons are used to shift focus. Change all your selected 's toclick 's and

[android-developers] Re: International emergency number support

2009-12-06 Thread brucko
On Dec 5, 11:35 am, Eric Wong (hdmp4.com) ericwon...@gmail.com wrote: Why do you bother to find out when you can use 112? I need to find out as I am looking at importing some specific Android devices for a project I am working on. Voice communication equipment in Australia needs to be able to

[android-developers] International emergency number support

2009-12-04 Thread brucko
Does any one have any idea as to which countries Android supports interms of Emergency Number dialling. Is there a list of supported countries and emergency numbers? For example US has 911, Australia has 000 and there is also the international numbers 112. How can we find out which

[android-developers] Discussion on localizing-android-apps-draft

2009-12-04 Thread brucko
Guys, Im using a HTC Hero and downloaded MoreLocale from Market. It seems to change the locale on my Hero with no problems. seems to work fine with the L10nDemo app although it exposes a few flaws. -- You received this message because you are subscribed to the Google Groups Android Developers