[android-developers] SearchView focused when hiding the ActionBar menu

2011-10-02 Thread Julius Spencer
showing (except for the case where the SearchView is touched)? In the YouTube application the cursor doesn't show up in the SearchView unless it is selected/touched and this is the behaviour I'm looking for. Regards, Julius. -- You received this message because you are subscribed to the Google

[android-developers] Market APK device compatibility

2011-08-30 Thread Julius Spencer
) the device isn't listed (as Supported orUnsupported - it's just not there). Can anyone point me to a logical way for me to ascertain what is wrong with my manifest (assuming that is the problem)? Regards, Julius. -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Market APK device compatibility

2011-08-30 Thread Julius Spencer
, Julius Spencer jul...@msa.co.nz wrote: Hi, I have an application which I have deployed to the Market and when I look at the application on the website (on my Android tablet) it says: This item is not compatible with your device Is there a way to figure out what is making the application

Re: [android-developers] Market APK device compatibility

2011-08-30 Thread Julius Spencer
Ah thanks for the solution - I had just put that in for the next update in case it worked - thanks for that. The two devices I had that problem for were tablets. Is there any way to actually figure that out though - I mean, work backwards from a device? Regards, Julius. (Pity I missed

Re: [android-developers] Market APK device compatibility

2011-08-30 Thread Julius Spencer
as a notification. Cool - I have a question about Loaders catch you then. :) Thanks again - I really wouldn't know how to go about solving this problem. Regards, Julius. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Options from Fragment in Activity with multiple Fragments

2011-08-11 Thread Julius Spencer
Hi, I have a FragmentActivity with 3 fragments and each has its own set of options. Is it possible to have the Options for the Fragment show when the fragment is attached to the FragmentActivity? Regards, Julius. -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Options from Fragment in Activity with multiple Fragments

2011-08-11 Thread Julius Spencer
Oh it looks like this was working after all... :) Apologies! On 12/08/2011, at 10:50 AM, Julius Spencer wrote: Hi, I have a FragmentActivity with 3 fragments and each has its own set of options. Is it possible to have the Options for the Fragment show when the fragment is attached

[android-developers] ActionBar in TabActivity

2011-08-10 Thread Julius Spencer
Hi, I have a TabActivity and I would like to add tabs to the ActionBar in the Honeycomb+ devices. I'm not sure how to have a TabActivity for pre Honeycomb and yet use a FragmentActivity at the same time to access the actionbar. Has anyone know how to get around this issue? Regards, Julius

Re: [android-developers] ActionBar in TabActivity

2011-08-10 Thread Julius Spencer
Oops just saw the updated documentation for how to do tabs here: http://developer.android.com/reference/android/app/TabActivity.html Will give that a go. On 10/08/2011, at 9:00 PM, Julius Spencer wrote: Hi, I have a TabActivity and I would like to add tabs to the ActionBar

Re: [android-developers] Use CursorLoader for SQLiteDatabase?

2011-08-01 Thread Julius Spencer
Hi, I can't figure out how to use this if I am using a SQLiteDatabase which isn't set up as a ContentProvider. From what I remember there won't be source for Honeycomb released anytime soon so I'm not sure how I could use the Loader framework to make it work. Regards, Julius. On 31/07/2011

Re: [android-developers] Use CursorLoader for SQLiteDatabase?

2011-08-01 Thread julius
the replies and help; I feel like I'm making progress! Thanks for the tip on onStartLoading() I think I read that in another thread, but it's great to have it confirmed again. Cheers, Julius. -- You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Help... IllegalStateException: Couldn't init cursor window

2011-07-29 Thread Julius Spencer
): at android.database.AbstractCursor.moveToFirst(AbstractCursor.java:248) I can't seem to find much online about this and don't know what it really means. Regards, Julius. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] Re: Help... IllegalStateException: Couldn't init cursor window

2011-07-29 Thread Julius Spencer
. On 29/07/2011, at 6:35 PM, KP wrote: Code will help. On Jul 29, 11:16 am, Julius Spencer jul...@msa.co.nz wrote: Hi, I have been taking all my database reads off the main UI thread and have come across some new problems. I'm receiving the following error(s): ERROR/CursorWindow(26242

[android-developers] Pain taking db reads off UI thread

2011-07-29 Thread Julius Spencer
any ideas on this? Alternatively does anyone have or know of any documentation for using a CursorLoader against a SQLiteDatabase rather than a ContentProvider? Thanks for any help. Regards, Julius. -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Pain taking db reads off UI thread

2011-07-29 Thread Julius Spencer
)); } else { baseUri = Contacts.CONTENT_URI; } I have a SQLiteDatabase which I get usually access via a SQLiteOpenHelper. All the Loader examples I see refer to data stored as a ContentProvider. Regards, Julius. On 30/07/2011, at 6:04 AM, Dianne Hackborn wrote: Consider

Re: [android-developers] Use CursorLoader for SQLiteDatabase?

2011-07-26 Thread Julius Spencer
Hi, I'm planning on going down the path of making a SQLiteLoader. The question I have is how do I access the LoaderManager. I have a ListActivity and have the compatibility library set up, but can't figure out how to initialise my loader. Regards, Julius. On 21/07/2011, at 5:10 AM, Mark

[android-developers] Use CursorLoader for SQLiteDatabase?

2011-07-20 Thread Julius Spencer
do, can a Content Provider be private to the application (ie. not accessible to other applications on the device)? The documentation for ContentProvider says: Content providers store and retrieve data and make it accessible to all applications. Thanks for any help! Regards, Julius. -- You

Re: [android-developers] Use CursorLoader for SQLiteDatabase?

2011-07-20 Thread Julius Spencer
Thank you for the reply I will let you know how I get on. On 21/07/2011, at 5:10 AM, Mark Murphy wrote: On Wed, Jul 20, 2011 at 12:59 PM, Julius Spencer jul...@msa.co.nz wrote: The CursorLoader documentation describes itself as: A loader that queries the ContentResolver and returns a Cursor

[android-developers] MediaPlayer - mp3 audio stream Nexus Devices vs others

2011-07-17 Thread Julius Spencer
(1,-1 Is there a way to get more debug or error information to find out what might be going wrong or what is different? My error listener just gives me a what and extra of 1 and -1. I have tried unsuccessfully on devices running 2.1 update 1 and 2.2.2. Thanks for any help. Regards, Julius

[android-developers] Linkify combined with Html.fromHtml

2011-07-17 Thread Julius Spencer
. mArticleTextView.setText(mDescription); mArticleTextView.setText(Html.fromHtml(mArticleTextView.getText().toString(), new MImageGetter(), null)); Linkify.addLinks(mArticleTextView, Linkify.ALL); Is there a way to get both to link in a TextView? Regards, Julius

[android-developers] SearchRecentSuggestionsProvider for AutoCompleteTextView arrayadapter

2011-07-01 Thread Julius Spencer
with Strings array. Is it possible to bind up to the SearchRecentSuggestions? Regards, Julius. -- 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] HierarchyViewer on Nexus 1 HowTo

2011-05-29 Thread Julius Spencer
that this is a useful tool but running the emulator in my environment isn't really practical) Regards, Julius. -- 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

Re: [android-developers] Stack overflow

2011-05-21 Thread Julius Spencer
Wow, thank you everyone for the answers! I suspect the questions may be too niche which is why I'm not having much luck. Cheers, Julius. On 21/05/2011, at 10:51 PM, Mark Murphy wrote: On Fri, May 20, 2011 at 10:27 PM, Julius Spencer jul...@msa.co.nz wrote: After attending IO and talking

[android-developers] Stack overflow

2011-05-20 Thread Julius Spencer
Hi, After attending IO and talking to the engineers, I was told to put questions on stack overflow. I was wondering - how do I get people to look at these? Regards, Julius. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Access the Activity stack

2011-04-10 Thread Julius Spencer
Hi, Just wondering, is it possible to look at an application's Activity stack? I'd like to be able to look at the stack and see if the previous Activity on the stack is the same as the one on the top. Regards, Julius. -- You received this message because you are subscribed to the Google

[android-developers] onActivityResult in Activity in TabActivity

2011-04-03 Thread Julius Spencer
. (thanks MM) Any help would be greatly appreciated! Regards, Julius. -- 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

Re: [android-developers] onActivityResult in Activity in TabActivity

2011-04-03 Thread Julius Spencer
Hi, After reading the documentation, the problem was that my REQUEST_CODE was negative so doesn't return a result. Ooops! Hope this helps someone else. Regards, Julius. On 3/04/2011, at 7:41 PM, Julius Spencer wrote: Hi, I am having trouble getting onActivityResult to run when I have

[android-developers] task affinity across devices

2011-03-28 Thread Julius Spencer
the Home button. Has anyone got some advice on this? Regards, Julius. -- 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

Re: [android-developers] Two Activity Stacks

2011-03-18 Thread Julius Spencer
which finishes the Activity which is being started but I think I'm just doing something incorrect here. It's basically adding to the top of the stack when switching to the original stack rather than just showing the last Activity. Any ideas from anyone would be much appreciated. Regards, Julius

Re: [android-developers] Two Activity Stacks

2011-03-15 Thread Julius Spencer
to Area A) i = new Intent(this,A.class); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(i); I feel like it's really close and was wondering if you (or someone) can see where I might be going wrong. Regards, Julius

[android-developers] Two Activity Stacks

2011-03-07 Thread Julius Spencer
, Julius. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options

Re: [android-developers] Toast not disappearing

2011-03-01 Thread Julius Spencer
() { @Override public void run() { toast.show(); } }); } The handler object is created in the IntentService. Thank you for the idea. Regards, Julius. On 1/03/2011, at 10:13

Re: [android-developers] Toast not disappearing

2011-03-01 Thread Julius Spencer
Hi, No unfortunately that didn't work. Thanks for the idea though. I think I'll use a notification instead (as it appears I probably should be). Cheers, Julius. On 2/03/2011, at 8:56 AM, Kostya Vasilyev wrote: Yes, that's pretty close to what I had in mind - assuming that the handler

[android-developers] Toast not disappearing

2011-02-28 Thread Julius Spencer
something I'm not thinking of but I'm stumped... Thanks in advance. Regards, Julius. -- 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

Re: [android-developers] Toast not disappearing

2011-02-28 Thread Julius Spencer
Yeah it's definitely being hit just once (I put a break point in). I'll try out dismissing it if the IntentService is destroyed. Thanks for the replies everyone. Regards, Julius. On 1/03/2011, at 4:15 PM, TreKing wrote: On Mon, Feb 28, 2011 at 8:53 PM, Julius Spencer jul...@msa.co.nz wrote

Re: [android-developers] Toast not disappearing

2011-02-28 Thread Julius Spencer
if that is of any use. I've never had any trouble with Toasts (except not calling show() :) ). I'm a bit stumped. Regards, Julius. On 1/03/2011, at 7:50 PM, Julius Spencer wrote: Yeah it's definitely being hit just once (I put a break point in). I'll try out dismissing

[android-developers] Concurrent database activity

2011-02-11 Thread Julius Spencer
. Currently I'm getting database is locked errors. Has anyone come across this issue before and solved it? Regards, Julius. -- 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

Re: [android-developers] Re: Concurrent database activity

2011-02-11 Thread Julius Spencer
there is contention to keep trying until it is successful? I guess I'd just have to be careful where the operations were taking place that they were never on the main UI thread. Regards, Julius. On 12/02/2011, at 8:58 AM, DanH wrote: SQLite implements its own locking protocol internally. If you want

Re: [android-developers] Re: Concurrent database activity

2011-02-11 Thread Julius Spencer
Hi Dan, Thank you very much for your help - so far so good :) Regards, Julius. On 12/02/2011, at 2:23 PM, DanH wrote: Java has several synchronization primitives. Simplest would be to have all accesses synchronized on the same object, or you could use a Semaphore. Likely the DB is never

[android-developers] Disable Auto-capitalization for EditText

2011-01-26 Thread Julius Spencer
option checked: how can I ensure that the keyboard won't open up with capital letter as the first letter when the EditText is selected? This is for a username / password form. Regards, Julius. -- You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Re: Capturing Intent.ACTION_MEDIA_SCANNER_FINISHED

2011-01-22 Thread julius
On Dec 17 2010, 12:16 am, Mark Murphy mmur...@commonsware.com wrote: On Wed, Dec 15, 2010 at 7:47 PM, Julius Spencer jul...@msa.co.nz wrote: That was it; thank you again Mark. Do you know why it might not work in the manifest in this case (ie. for this Intent)? If you have not tried

Re: [android-developers] Re: Disable Antenna

2011-01-05 Thread Julius Spencer
or the question! :) Regards, Julius. On 6/01/2011, at 6:47 AM, Bob Kerns wrote: A screwdriver and an X-Acto knife. I doubt there's hardware support (or any need) for disabling antennas. Radios, yes, antennas, no. What are you trying to do? On Jan 5, 4:24 am, Mark Murphy mmur

[android-developers] Disable Antenna

2011-01-04 Thread Julius Spencer
Hi, I was wondering if it's possible to disable one or more antennae manually for example, if I had a GSM Nexus One, disable all the antennae except the one which supplies 850MHz communications (900 1800 1900). Regards, Julius. -- You received this message because you are subscribed

Re: [android-developers] Opera callbacks

2010-12-25 Thread Julius Spencer
Oh yeah I meant the built in browser. Ah WebView os a great idea. Thank you. Regards, Julius. On 26/12/2010, at 10:56 AM, Mark Murphy wrote: I would recommend you try to find a way to use a WebView, for better control. Also, there is no Chrome in Android. I am assuming you are referring

[android-developers] Opera callbacks

2010-12-24 Thread Julius Spencer
to create an Intent which specifies Chrome. (or perhaps someone has come across this problem?) Regards, Julius. -- 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] ContentObserver and BroadcastReceiver

2010-12-19 Thread Julius Spencer
a ContentObserver and a BroadcastReceiver so that the application doesn't need to be running and yet when content is updated a broadcast is created? Regards, Julius. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] ContentObserver and BroadcastReceiver

2010-12-19 Thread Julius Spencer
Ah ok, thanks for the reply. Regards, Julius. On 20/12/2010, at 3:58 PM, Dianne Hackborn wrote: No there isn't. This is deliberate, as having apps suddenly getting launched left and right as syncs happen in the background stuff is likely to lead to an undesirable outcome. The approach

[android-developers] Capturing Intent.ACTION_MEDIA_SCANNER_FINISHED

2010-12-15 Thread Julius Spencer
tried this - is there a permission or something I need to capture this? Thank you for any help! Regards, Julius. Regards, Julius Spencer. jul...@msa.co.nz Ph: 0064 9 307 1089 Fax: 0064 9 307 5281 Mobile: 0064 21 72 5559 -- You received this message because you are subscribed to the Google

Re: [android-developers] Capturing Intent.ACTION_MEDIA_SCANNER_FINISHED

2010-12-15 Thread Julius Spencer
That was it; thank you again Mark. Do you know why it might not work in the manifest in this case (ie. for this Intent)? Regards, Julius. On 16/12/2010, at 1:40 PM, Mark Murphy wrote: If the source code is any indicator, you need: intentFilter.addDataScheme(file); or the data

Re: [android-developers] Accessing Video Thumbnail

2010-11-25 Thread Julius Spencer
showing when I searched for it. Hope that helps someone... Cheers, Julius. On 25/11/2010, at 8:26 AM, Julius Spencer wrote: Hi, I am having trouble getting a thumbnail for a video. I am targeting 2.1 update 1. (API level 7) I would like to use MediaStore.Video.Thumbnails.getThumbnail

[android-developers] Accessing Video Thumbnail

2010-11-24 Thread Julius Spencer
to get called. Has anyone had any success making thumbnails like this? Any direction would be really helpful :) Regards, Julius. -- 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] GridView disappears...

2010-11-08 Thread Julius Spencer
in a row the height of the GrdiView is calculated incorrectly) Regards, Julius. Regards, Julius Spencer. jul...@msa.co.nz Ph: 0064 9 307 1089 Fax: 0064 9 307 5281 Mobile: 0064 21 72 5559 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] Get View's siblings

2010-11-07 Thread Julius Spencer
at 11:15 AM, Julius Spencer jul...@msa.co.nz wrote: Hi, I have a layout that includes an ImageView and a CheckBox and I am implementing onClick for the ImageView. I would like to alter the state of the CheckBox when the ImageView is 'clicked'. The state I am storing fine, but I would like

[android-developers] Get View's siblings

2010-11-06 Thread Julius Spencer
to the ImageView's siblings (in this case there would be one; the CheckBox)? Regards, Julius. -- 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] IllegalStateException: No wrapped connection.

2010-10-31 Thread Julius Spencer
on the client. Is it possible I running execute too many times on the client or something? I'm don't really understand what the error means and I haven't been able to glean anything much from Googling other than to catch it and hope for the best. Cheers, Julius. -- You received this message

Re: [android-developers] IllegalStateException: No wrapped connection.

2010-10-31 Thread Julius Spencer
Wow thank you Mark. I'll try to implement those changes. Regards, Julius. On 31/10/2010, at 7:56 PM, Mark Murphy wrote: There is something messed up with your HttpClient object. That exception is being raised by HttpClient itself, based upon what I can see in the Android source code

Re: [android-developers] IllegalStateException: No wrapped connection.

2010-10-31 Thread Julius Spencer
Hi Mark, Looks like it was a threading issue - from what you say; IntentService doing work on a separate thread, so just creating a new DefaultHttpClient seems to have done the trick. Thank you for explaining (once again) :) Regards, Julius. On 31/10/2010, at 7:56 PM, Mark Murphy wrote

[android-developers] setSpeakerPhoneOn

2010-09-13 Thread Julius Spencer
errors, but I don't have any joy either... I have searched for setSpeakerPhoneOn and haven't come up with anything other than permissions which I have set up in my Manifest. Cheers, Julius. -- You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Re: Testing C2DM service on Android 2.2 emulator

2010-09-12 Thread julius
Hi, I have the same problem - not quite sure what I'm doing wrong. I'd like to use the emulator to be able to check the networking. Perhaps my c2dm account isn't really set up yet. Regards, Julius. On Sep 10, 9:08 pm, Hatch tomislav.hecimo...@gmail.com wrote: Been trying for ages (at least

Re: [android-developers] Re: Testing C2DM service on Android 2.2 emulator

2010-09-12 Thread Julius Spencer
have Market in the emulator. If this is why I can't do this, it would be great to know. Cheers, Julius. On 12/09/2010, at 6:48 PM, julius wrote: Hi, I have the same problem - not quite sure what I'm doing wrong. I'd like to use the emulator to be able to check the networking. Perhaps

Re: [android-developers] Re: Testing C2DM service on Android 2.2 emulator

2010-09-12 Thread Julius Spencer
, Android API 8. Then, you need to set up an AVD that uses that system image. On 12/09/2010, at 7:30 PM, Julius Spencer wrote: Hi, Unable to start service Intent { act=com.google.android.c2dm.intent.REGISTER (has extras) }: not found Oh maybe this can't be done in the emulator

[android-developers] C2DM debugging

2010-09-12 Thread Julius Spencer
have set up the account with Google for the service and have an Auth key. Does anyone have any tips as to what I might be able to do, to see where I might be going wrong (or maybe can see what I've done wrong in the manifest)? Regards, Julius. -- You received this message because you

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

2010-09-09 Thread Julius
Ideally, as a user, I would like to: 1. Have app developers be able to note specifically what each permission they are requesting is for. 2. On install, have the ability to 'uncheck' any permission that I don't feel comfortable with (otherwise would install with default requested permissions).

[android-developers] Styling text with internationalisation

2010-09-08 Thread Julius Spencer
into it from outside the bus)). Is there a standard way to deal with styling text based on different languages? Regards, Julius. -- 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] Deep sleep behaviour

2010-09-06 Thread Julius Spencer
listens to the acceleration and the battery state, will these still work when the phone is in deep sleep? Also, is there a way to induce deep sleep? (so I can perform testing) Thanks for any help! Regards, Julius. -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Deep sleep behaviour

2010-09-06 Thread Julius Spencer
could make this happen? This is the kind of situation where the user would want this to happen. op touching the device for a while, and have it untethered. Ok so I guess I'll have to debug using System.out.println or Log.i or something. Regards, Julius. -- You received this message because you

Re: [android-developers] Re: Problem computing the free space on the external card - only with a single installation

2010-08-18 Thread Julius Spencer
Hi, I have this same issue; my check evaluates available space as negative in rare cases. I'm not sure yet whether I can take an absolute value. This must be a problem which has happened before. Anyone else come across this? Regards, Julius. On 16/08/2010, at 7:52 AM, Bob Kerns wrote: Two

Re: [android-developers] Re: Problem computing the free space on the external card - only with a single installation

2010-08-18 Thread Julius Spencer
; -- Kostya Vasilyev -- http://kmansoft.wordpress.com 19.08.2010 0:09 пользователь Julius Spencer jul...@msa.co.nz написал: Hi, I have this same issue; my check evaluates available space as negative in rare cases. I'm not sure yet whether I can take an absolute value. This must

Re: [android-developers] Re: KEYCODE_HOME

2010-08-18 Thread Julius Spencer
Hi, Just wanted to check this is still the case. I have a situation where someone wants an application not exit, if the power or home keys are pressed. (They'd like the application to be exited via a password or PIN) I'm guessing there is no other work around... Regards, Julius. On 11/08

Re: [android-developers] Re: Get all text (including encoded) from XML Text Node

2010-07-04 Thread Julius Spencer
/DocumentBuilderFactory.html#setExpandEntityReferences(boolean) which is supposed to default to true. On Jul 2, 8:06 pm, Julius Spencer jul...@msa.co.nz wrote: On closer inspection the index part I have misinterpreted - the whole string might be broken into parts eg. Text node j EntityReference node ó Text

[android-developers] Get all text (including encoded) from XML Text Node

2010-07-02 Thread Julius Spencer
this by doing a lookup to convert the encoded character to utf8 and then insert it into the string for the Text node. Does anyone know how this works? Sorry for asking what is probably a really basic question, but I can't find the answer. Thank you for any help. Regards, Julius. -- You received

Re: [android-developers] Get all text (including encoded) from XML Text Node

2010-07-02 Thread Julius Spencer
= DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = builder.parse(new ByteArrayInputStream(xmlResponse.getBytes())); Regards. Julius. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group

Re: [android-developers] Get all text (including encoded) from XML Text Node

2010-07-02 Thread Julius Spencer
On closer inspection the index part I have misinterpreted - the whole string might be broken into parts eg. Text node j EntityReference node ó Text node bb Regards, Julius. (on closer inspection zees are loafers) On 3/07/2010, at 2:47 PM, Julius Spencer wrote: Hi, Thank you for the reply

Re: [android-developers] Creating ContextMenu based on information from Cursor

2010-06-11 Thread Julius Spencer
Eg. should it be in the View? I could make the decision when creating the menu too, but I need to get a unique id from the row in the ListView public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { Cast the menuInfo to an

[android-developers] Creating ContextMenu based on information from Cursor

2010-06-10 Thread julius
to return null, listView.getSelectedItemId() gives a very negative number and listView.getSelectedView() is null too. I thought that the mSelectedItem in the listView would be populated when creating the context menu. Or it could be some typo somewhere... :) Thank you for any ideas. Regards, Julius

[android-developers] Images in ListView in wrong places

2010-06-09 Thread julius
Hi, I have a ListView which has rows that include an ImageView. I am populating the ImageView with the following code (getting the image from the SDCard if available): Bitmap bmp = BitmapFactory.decodeFile(filename); ImageView iv = getCoverImageView(); if(null!=iv)

Re: [android-developers] Images in ListView in wrong places

2010-06-09 Thread Julius Spencer
code part of populateFrom()? Yes that is correct: void populateFrom(Cursor c) {... There is a unique id in the Cursor (result) I can use to reference the file. I omitted that the adapter (SDIReleaseAdapter) implements SectionIndexer although I'm assuming this won't affect things. Regards, Julius

Re: [android-developers] Images in ListView in wrong places

2010-06-09 Thread Julius Spencer
Well, all I can tell you is that the symptom of images seem randomized when I scroll usually points to some sort of binding problem. Julius Spencer wrote: Are you sure your SDIReleaseWrapper is pointing to the right ImageView? Yes I performed a search and the only layout (or xml file

[android-developers] Modify data retrieved for View from SimpleCursorAdapter

2010-03-18 Thread julius
Hi, I have a SimpleCursorAdapter for a list which returns data from a SQLite database as it appears in the database. I would like to be able to change the data as it shows in the View so if I have a long representing a timestamp I can format it using DateFormat.format. Can anyone recommend a

[android-developers] Re: Modify data retrieved for View from SimpleCursorAdapter

2010-03-18 Thread julius
I tend to override bindView() in a SimpleCursorAdapter subclass for situations like this. Thanks Mark, this works perfectly. I copied the concepts from an excerpt I found from your book. (just purchased) Use a JOIN clause in your SQLite rawQuery() that builds the Cursor. Thanks for the

[android-developers] ListView

2010-03-17 Thread julius
Hi, I have an ArrayAdapter which is used to show a list in a ListActivity. This list is updated from time to time and when this happens I call notifyDataSetChanged() on the ArrayAdapter. This works well as the Activity shows the changes (eg. adding a new item to the list). However, when I

[android-developers] Re: ListView not updated with ArrayAdapter notifyDataSetChanged()

2010-03-17 Thread julius
Apologies for not entering in the subject... On Mar 18, 10:47 am, julius jul...@msa.co.nz wrote: Hi, I have an ArrayAdapter which is used to show a list in a ListActivity. This list is updated from time to time and when this happens I call notifyDataSetChanged() on the ArrayAdapter

[android-developers] Re: ListView

2010-03-17 Thread julius
into how I'm doing it; but I could change all that perhaps if it it would be better. Without trying to be difficult, is there a way I could maintain my existing structure? Thanks again. On Mar 18, 10:51 am, Mark Murphy mmur...@commonsware.com wrote: julius wrote: I have an ArrayAdapter which is used

[android-developers] Re: ListView

2010-03-17 Thread julius
Thanks for the help. Sorry for not supplying the info abut having the DB. On Mar 18, 11:04 am, Mark Murphy mmur...@commonsware.com wrote: julius wrote: The ArrayAdapter gets information from a SQLite DB and I'm currently adding a record to the DB and then refreshing the ArrayAdapter. I'm

[android-developers] Update extras for paused Activity

2010-03-15 Thread julius
Hi, If I have a paused Activity is it possible to create an intent which will update its extras? In this case I have a Service which creates a Notification. The Notification has an Intent with extras. I find that if I have the Activity set up with: launchMode=singleTask when the Activity is

[android-developers] Re: Update extras for paused Activity

2010-03-15 Thread julius
Look up Activity.onNewIntent(). Thank you that was just what I was looking for! -- 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

[android-developers] Multiple Notifications

2010-03-04 Thread julius
Hi, I have a notification which is being created with a PendingIntent setup with some extras in the Intent. After the first notification is created, all subsequent notifications have the same values in their extras as the first, even though the notification and the extras are being updated.

[android-developers] Re: Multiple Notifications

2010-03-04 Thread julius
Oh gee thank you, I didn't see that. On Mar 5, 8:13 am, Mark Murphy mmur...@commonsware.com wrote: julius wrote: I have a notification which is being created with a PendingIntent setup with some extras in the Intent. After the first notification is created, all subsequent notifications

[android-developers] Re: How to determine if Activity is on screen

2010-03-04 Thread julius
Furthermore, a BroadcastReceiver has no good way of communicating to a running activity, let alone determining if there is one there. Yeah I was kinda having trouble with this part... :) Now, if you take the BroadcastReceiver out of the equation, your dialog-raising Activity could register

[android-developers] Re: How to determine if Activity is on screen

2010-03-04 Thread julius
I was using a BroadcastReceiver as the Service has ProximityAlerts set up , each of which expects a PendingIntent. I had each PendingIntent send a broadcast. I guess I'll need to use PendingIntent.getService() to start the process of notification or call method on the listener. Actually I'll

Re: [android-developers] Display Dialog from notification

2010-03-03 Thread Julius Spencer
Thanks for the reference Mark. I realised from an Activity I can just finish it and it will show the other Activity. On 3/03/2010, at 7:45 AM, Mark Murphy wrote: julius wrote: 1. Is it possible to show an AlertDialog (from the notification) without sending the user to a new Activity

[android-developers] Update Activity from BroadcastReceiver

2010-03-03 Thread julius
Hi, Does anyone know how I might go about accessing an Activity in an application from a BroadcastReceiver (in the same application)? (I have some state information in the Activity I'd like to update) I'm not sure if there is a best practice for it. Thanks for any help. -- You received this

[android-developers] Display Dialog from notification

2010-03-02 Thread julius
Hi, I have a situation where I have a broadcast receiver which creates a notification and the notification, when selected, sends the application to a new Activity with a yes/no AlertDialog. I have two questions: 1. Is it possible to show an AlertDialog (from the notification) without sending the

[android-developers] Re: Testing location using network as location provider?

2010-01-28 Thread julius
Thanks for the reply. I'm really trying to respond to changes. This is a good idea to kick things off, but I'd like to be able to show changes so I can turn the GPS service on/off. Is there a way to do fake this in the emulator? Regards, Julius. On Jan 29, 2:50 am, WoodManEXP woodman

[android-developers] Re: Testing location using network as location provider?

2010-01-28 Thread julius
better... On Thu, Jan 28, 2010 at 2:10 PM, julius jul...@msa.co.nz wrote: Thanks for the reply. I'm really trying to respond to changes. This is a good idea to kick things off, but I'd like to be able to show changes so I can turn the GPS service on/off. Is there a way to do fake

[android-developers] Testing location using network as location provider?

2010-01-27 Thread julius
Hi, I have an application which uses the network as the location provider (rather than GPS eg.), however I can't seem to figure out how to send the emulator test coordinates. In DDMS I would usually send coordinates in the Emulator Control tab. Is there a place to simulate coordinates derived

[android-developers] Re: Preference Validation

2009-12-10 Thread julius
wrote: Hey julius,   You will have to extend the EditTextPreference class and override some methods in the underlying EditText  (use getEditText()).   Best bet would be to make your own key listener, and have it check what the current text in your EditText is.   Then in your preference XML

[android-developers] Preference Validation

2009-12-08 Thread julius
Hi, If I have a Preference Activity and it has an edittext input, how would I go about say limiting the input to integers between 1 and 300? I've looked around and I can't seem to find anything regarding Preference Validation. Thanks in advance. -- You received this message because you are

Re: [android-developers] G1 Wifi issue

2009-11-24 Thread Julius Spencer
: if (state.matchesWifiConfiguration(wifiConfig) = AccessPointState.MATCH_WEAK) { return wifiConfig; } Does anyone know who wrote this? It looks like it's going through the available access points list in reverse, but after that I'm kinda lost. Regards, Julius. On 18/11/2009, at 8:27 AM, julius wrote

[android-developers] lock_layer timed out (is the CPU pegged?)

2009-11-18 Thread Julius Spencer
): lock_layer timed out (is the CPU pegged?) layer=1, lcblk=0x424800a0, state=0043 (was 0043) I see others have had this issue, but I don't see a solution or explanation (that I can understand :-) ). Can anyone point me in the right direction? Thanks for any help. Regards, Julius. -- You

  1   2   >