[android-developers] Urgently need to capture Android N reboot debug trace

2016-07-26 Thread MarkG123
I can easily make my Nexus 5x reboot with the last 3 developer preview releases, I have raised a bug report, but it's not really been treated with any severity, as there is no bug report. I really want this fixing for final N, I can't have my device rebooting several times a day, it's not prac

[android-developers] Re: AndroidStudio feedback (vs Eclipse)

2015-01-20 Thread MarkG123
Persevere, it's well worth the effort. Converting project's instant straightforward (mostly due to changes in build system), and that's where your problems are, not Android Studio itself. For my more complicated projects, I find it's easier NOT to try and convert them. Create a new empty pro

[android-developers] Play/Pause media playback on phone from AndroidWear Device.

2015-01-19 Thread MarkG123
Hi, trying (and failing) to simulate the media button ,(play pause) on androidwear so the default music player on to the phone recognises and acts upon it. I only need play and pause. Can anyone help, or point me in the correct direction. Many thanks. -- You received this message because you

[android-developers] Re: Adding AAR library to my libs directory in Android Studio causes "duplicate files during packaging of APK " error

2014-02-13 Thread MarkG123
and changed it to lib_name in the manifest and strings.xml and everything is now working again. On Wednesday, 12 February 2014 23:57:48 UTC, MarkG123 wrote: > > The error suggests it's a problem with duplicate AndroidManifest.xml > (which there are, one in the main project,

[android-developers] Adding AAR library to my libs directory in Android Studio causes "duplicate files during packaging of APK " error

2014-02-12 Thread MarkG123
The error suggests it's a problem with duplicate AndroidManifest.xml (which there are, one in the main project, one in the aar library project). What have I done wrong? Surely this is something the build system can handle? (the AAR was generated by Android Studio too). Executing tasks: [:te

[android-developers] Android Studio - libraries always called classes.jar

2014-02-12 Thread MarkG123
I can't seem to find anywhere to set the output filename of my class in Android studio. I have looked in the project setting, and the god-awful gradle files that get spewed all over the place. Am I missing something obvious? (other than renaming by hand). Thanks. -- You received this message

[android-developers] TimerTask and Handler without inner class.

2013-03-23 Thread MarkG123
Got a bit of a problem. I am trying to use TimerTask and Handler to do my background work, all the examples I have seen use the TimerTask as an inner class. I need my class to be a regular class, as it's called from a couple of different classes. Is this possible? Can someone show me how? Thanks

[android-developers] Re: Homescreen widget - sizing font to fit content.

2012-12-05 Thread MarkG123
Hmm, not had any luck with this. Anyone else ever got something working? Seems like a very simple requirement to achieve that's possibly unachievable... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] Homescreen widget - sizing font to fit content.

2012-11-27 Thread MarkG123
Hi, trying to work out how to set a TextView in a homescreen widget, so the font is correct and nothing is truncated. This is a resizable homescreen/lockscreen widget. Can someone give me a pointer? Thanks. -- You received this message because you are subscribed to the Google Groups "Android

Re: [android-developers] ImageView with a XML gradient background and a image ontop.

2012-04-09 Thread MarkG123
Many thanks, this worked a treat. Slightly annoyed with myself that I didn't come up with this obvious solution... On Monday, 9 April 2012 16:52:15 UTC+1, MagouyaWare wrote: > > Or, depending on how things are set up, you could put your gradient on the > background of the layout for the item,

[android-developers] ImageView with a XML gradient background and a image ontop.

2012-04-09 Thread MarkG123
Anyone know it's it's possible to have a XML gradient *AND* an image in a single ImageView? I have an expandable listview, and I want to overlay an expand and collapse arrow over to match the gradient TextView next to it. I have been playing with layer-list and not had much luck. Is this even

[android-developers] Re: Intent or intercepting the Bluetooth Headset Dial kepress

2012-01-07 Thread MarkG123
Spoke too soon, this only intercepts the MEDIA button on a bluetooth headset, not the CALL button, which seems to be ignored by this intent. On Jan 7, 3:47 pm, MarkG123 wrote: > Awesome, I have read perhaps 50 to a 100 threads, and Googling like > crazy, but I never seen this one!!!  T

[android-developers] Re: Intent or intercepting the Bluetooth Headset Dial kepress

2012-01-07 Thread MarkG123
ead... > > ?? > > > > > > > > On Fri, Jan 6, 2012 at 6:37 PM, MarkG123 wrote: > > I did look, didn't find anything, which I found suprising, and figured > > I might be looking in the wrong place... > > > Anyone know for sure this isn't possible.  All Bl

[android-developers] Re: Intent or intercepting the Bluetooth Headset Dial kepress

2012-01-06 Thread MarkG123
On Fri, Jan 6, 2012 at 9:33 AM, MarkG123 wrote: > > It's a hardware call/answer button on Bluetooth headsets. > > Right, well did you look through that list of intents on the devices > you wanted?  I suspect that this isnt' going to be possible, just off > the top of

[android-developers] Re: Intent or intercepting the Bluetooth Headset Dial kepress

2012-01-06 Thread MarkG123
It's a hardware call/answer button on Bluetooth headsets. -- 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-develop

[android-developers] Intent or intercepting the Bluetooth Headset Dial kepress

2012-01-06 Thread MarkG123
Hi, I am trying to capture the pressing of the Bluetooth Headset call button press in Android (<2.2, not Honeycomb or ICS), and not having much luck. Is this even possible? I tried looking for an intent and didn't come up with anything, nor did I find anything in the API -- You received this me

[android-developers] Re: Monitoring for outgoing Bluetooth headset originated calls.

2011-12-28 Thread MarkG123
Is there an easy way to differentiate a "local" initiated call and a BT headset initiated one? On Dec 28, 3:15 pm, Naeem wrote: > Please look at following Android help documentation link > > http://developer.android.com/reference/android/telephony/TelephonyMan... > > Whether you start a call fro

[android-developers] Monitoring for outgoing Bluetooth headset originated calls.

2011-12-28 Thread MarkG123
Hi, NewB question time! I have done activity based Android apps without a problem, however I want to write an application that monitors for outgoing calls from my Bluetoooth header using BroadcastReciever (I am trying to remap the call button on my Bluetooth headset to be a mediaplayer play/pause b

[android-developers] Re: Problems reading/writing to SQLite db on SD card.

2011-12-11 Thread MarkG123
Dec 11, 6:52 pm, skink wrote: > MarkG123 wrote: > > adding NO_LOCALIZED_COLLATORS allowed me to open the database, but it > > was still opening it as readonly (despite me asking for read.write), > > it now blows up much later. > > > Is it even possible to open non An

[android-developers] Re: Problems reading/writing to SQLite db on SD card.

2011-12-11 Thread MarkG123
, MarkG123 wrote: > On Dec 9, 1:53 am, Nikolay Elenkov wrote: > > > Try on a different device, to check if you are hitting some firmware bug. > > Have you tired creating the android metadata table manually (with sqlite3, > > before you try to use it in Android)? > > &

[android-developers] Re: Problems reading/writing to SQLite db on SD card.

2011-12-10 Thread MarkG123
On Dec 9, 1:53 am, Nikolay Elenkov wrote: > Try on a different device, to check if you are hitting some firmware bug. > Have you tired creating the android metadata table manually (with sqlite3, > before you try to use it in Android)? > > create table android_metadata(locale TEXT) > insert into

[android-developers] Re: Detect if the device is a tablet or phone

2011-12-09 Thread MarkG123
Try this method. Works for me... Might not be the proper way and I have yet to see what the "ICS" effect will be, but for now I can support tablets and phones in the same apk, with both a phone and tablet layout.. http://tinyurl.com/86n632x -- You received this message because you are subscri

[android-developers] Re: Problems reading/writing to SQLite db on SD card.

2011-12-08 Thread MarkG123
Well I have read/write access to the DB, but it's still throwing exception trying to write metadata. The database is here is someone can take a quick look, this problem is driving me nuts... http://db.tt/dNgiPEmi -- You received this message because you are subscribed to the Google Groups "Andr

[android-developers] Re: Problems reading/writing to SQLite db on SD card.

2011-12-05 Thread MarkG123
Hmmm, I need to remove entries from tables as I "process" them... Is there any way this can be achieved on Android? On Dec 5, 9:05 am, Nikolay Elenkov wrote: > On Mon, Dec 5, 2011 at 5:50 PM, MarkG123 wrote: > > > The full callstack: > > > 12-04 19:51:12.665: I

[android-developers] Re: Problems reading/writing to SQLite db on SD card.

2011-12-05 Thread MarkG123
Database opens just fine in the windows sqlite3.exe application, I can view the tables. The full callstack: 12-04 19:51:12.665: I/Database(842): sqlite returned: error code = 8, msg = prepared statement aborts at 37: [CREATE TABLE IF NOT EXISTS android_metadata (locale TEXT)] 12-04 19:51:12.665:

[android-developers] Problems reading/writing to SQLite db on SD card.

2011-12-04 Thread MarkG123
Hi, writing an Android application that reads data from a SQLite database created by a 3rd party camera. I have added permission WRITE_EXTERNAL_STORAGE, but I still get "attempt to write a readonly database" exception I have tried different API levels and such, without any difference. I have

[android-developers] Re: How reliable is Google Marketplace Device Compatibility Report?

2011-09-09 Thread MarkG123
.  Is suggest using reflection to > retrieve that. > > > > > > On Fri, Sep 9, 2011 at 3:24 PM, MarkG123 wrote: > > This is what I am using now to have a my single APK support tablets > > and smartphones on-the-fly.   I use if from my start activity, which > > decides

[android-developers] Re: How reliable is Google Marketplace Device Compatibility Report?

2011-09-09 Thread MarkG123
This is what I am using now to have a my single APK support tablets and smartphones on-the-fly. I use if from my start activity, which decides which activity to use (my app differences are more than just layout). public boolean isTablet() { if (Build.VERSION.SDK_INT >= Build.VERS

[android-developers] Re: How reliable is Google Marketplace Device Compatibility Report?

2011-09-09 Thread MarkG123
and other such things that result in > the device's screen size changing radically.  I wouldn't expect anything in > the platform to magically make your two separate apks work correctly > together on such devices. > > > > > > On Thu, Sep 8, 2011 at 11:32 PM, Mar

[android-developers] Re: How reliable is Google Marketplace Device Compatibility Report?

2011-09-09 Thread MarkG123
OK, so how would I achieve this as a single APK? Should I check the OS version API 11+ for tablets, < 11 for smartphones? How does this work when the next combined OS comes out? Should I check screen density on the fly and open the correct activity? Will I have problems using honeycomb controls

[android-developers] How reliable is Google Marketplace Device Compatibility Report?

2011-09-08 Thread MarkG123
I have been playing with side by side tablet/smartphone version of my app using the single marketplace listing method, and whilst that works, I have some curious reports of what my app will and won't run on for example: Galaxy S2(GT-I9100) NOT COMPATIBLE Galaxy S2(GT-I9103) COMPATIBLE Galaxy

[android-developers] Android Honeycomb 3.1 webclient with flash content - not working :-(

2011-06-28 Thread MarkG123
I am trying to embed a webclient in my app, and the page has flash content, i'm pretty sure it's loading the flash, but it's not displaying it. Anyone know the problem? public class FlashTestActivity extends Activity { final Activity activity = this; /** Called when the activity is first created

[android-developers] Re: Subclassing TextView in a widget - HELP!!!!!

2011-04-26 Thread MarkG123
dget. Application-provided subclasses are not supported. > > http://developer.android.com/guide/topics/appwidgets/index.html#Creat... > > -- Kostya > > 26.04.2011 13:44, MarkG123 пишет: > > > > > > > I'm having a nightmare trying to get this to work.  Is it ev

[android-developers] Subclassing TextView in a widget - HELP!!!!!

2011-04-26 Thread MarkG123
I'm having a nightmare trying to get this to work. Is it even possible? I have a very simple widget that works just fine with a TextView, however when I change it to use a subclassed TextView and change the layout XML to reference it, nothing works anymore.. Even a subclassed TextView that does

[android-developers] Comping Android APK from commandline (Win32)

2010-11-18 Thread MarkG123
Hi, I am trying to find a standalone toolset that can compile Android java project/source code to a finished APK. Is there such a thing? I am not having much success finding anything... Currently I compile using Eclipse, but I want a minimal and standalone automated build system. Thanks. -- Y

[android-developers] Problem with Saxparser and malformed XML

2010-08-16 Thread MarkG123
Hi, I am using a saxparser to read RSS XML from the web and populate listviews. Everything works fine until I come across malformed XML, usually encoding related, and my reader falls over. I have changed it so that it gets as many items parsed and populated before falling over (by default if it fi