[android-developers] Re: XML Adapter sample from SDK not compiling

2011-08-23 Thread droidin.net
Is there a reason why Android team fails to address this? I posted the same question on the stackoverflow.com to no avail. There are also compilation problems in Adapters.java. Please refer to http://stackoverflow.com/questions/7139299/android-broken-xml-parsing-example -- You received this

[android-developers] Re: Enable imported account contacts programmatically

2011-05-01 Thread droidin.net
Anybody? Hints? Thoughts? On Apr 29, 9:46 am, droidin.net dr...@hireadroid.com wrote: I'm successfully importing external contacts into the newly created account using this tutorialhttp://goo.gl/sLJeN. The account is setup to re-sync programmatically and yet to be able to see the synced

[android-developers] Enable imported account contacts programmatically

2011-04-29 Thread droidin.net
I'm successfully importing external contacts into the newly created account using this tutorial http://goo.gl/sLJeN. The account is setup to re-sync programmatically and yet to be able to see the synced contact, unless the contact dupe is found, I need to do Contacts-Menu- Display options-Find

[android-developers] Re: After extracting code to lib widget is no longer working

2010-11-30 Thread droidin.net
Anyone? This is really makes my life miserable where's my Google knight in shiny armor? On Nov 29, 11:57 am, droidin.net dr...@hireadroid.com wrote: I had a perfectly working widget as part of my project. Then I decided to extract common code (including the widget) into the library project

[android-developers] After extracting code to lib widget is no longer working

2010-11-29 Thread droidin.net
I had a perfectly working widget as part of my project. Then I decided to extract common code (including the widget) into the library project. After doing this everything works except the widget. It appears in the list of widgets available for addition but when I place it on the desktop all I get

[android-developers] Re: Source code fro Genie Widget

2010-04-22 Thread droidin.net
droidin.net bost...@gmail.com: Hi guys, Can anyone help me find source code for Android's Weather and News app (Genie Widget). It doesn't look like it can be found at http://android.git.kernel.org/ and Google's Code Search does not return any results ether Thanks, Bo Stone

[android-developers] Re: Source code fro Genie Widget

2010-04-21 Thread droidin.net
://android-sky.googlecode.com/svn/trunk/Sky/ 2010/4/20 droidin.net bost...@gmail.com: Hi guys, Can anyone help me find source code for Android's Weather and News app (Genie Widget). It doesn't look like it can be found athttp://android.git.kernel.org/ and Google's Code Search does not return

[android-developers] Source code fro Genie Widget

2010-04-19 Thread droidin.net
Hi guys, Can anyone help me find source code for Android's Weather and News app (Genie Widget). It doesn't look like it can be found at http://android.git.kernel.org/ and Google's Code Search does not return any results ether Thanks, Bo Stone -- You received this message because you are

[android-developers] SQLite transactions when using ContentResolver

2010-02-09 Thread droidin.net
The goal: refresh database from XML data The process: * Start transaction * Delete all existing rows from the tables * Per each main element of parsed XML insert row into main table and get PK * Per each child of the main element insert record into 2nd table providing FK from

[android-developers] ExpandableListView change background for child items

2009-12-14 Thread droidin.net
I'm using ExpandableListView in my app and one of the complains is that when expanded it's hard to visually distinguish where the child item ends and next group item begins. So I would like to change background of the child list item to the different shade. Brutal attempts that I've made so far

[android-developers] Android - NPE in BrowserFrame

2009-11-19 Thread droidin.net
I get this exception triggered by users occasionally that I cannot reproduce. Since it's issued from looper I suppose it is result of Handler-type callback. I found similar bug on Google code but putting the solution into code didn't solve it. The problem is at this line of code in BrowserFrame:

[android-developers] Re: Android market .... what's happening?

2009-11-18 Thread droidin.net
All my 3 apps are affected and I bet there's no single App on the marked that is intact. Interesting that I have more reviews than ratings. They screwed the database alright. The dev concole still shows old numbers but then it is always lagging due to caching On Nov 18, 10:24 pm, Pieter

[android-developers] CheckBox blocks ExpandableListView.OnGroupClickListener

2009-11-05 Thread droidin.net
I'm trying to put a checkbox into ExpandableListView. I noticed that doing that disables basic functionality of displaying child list when group row is clicked. Furthermore when I click outside of checkbox the click is detected by nether checkbox nor by OnGroupClickListener. Can someone help me to

[android-developers] Re: ALT key for a virtual keyboard

2009-11-04 Thread droidin.net
Thanks you... Real bummer On Nov 4, 3:48 am, Dianne Hackborn hack...@android.com wrote: No, an IME doesn't provide any modifiers, it inserts the final UTF-16 characters into the text. On Tue, Nov 3, 2009 at 9:37 PM, droidin.net bost...@gmail.com wrote: Basically I want to capture Alt-key

[android-developers] ALT key for a virtual keyboard

2009-11-03 Thread droidin.net
Basically I want to capture Alt-key combination to provide some customized alternative text input. For example Alt-f would put FOO into the text field. However there doesn't seem to be ALT key on the virtual keyboard in ether portrait or landscape. Is it possible to fake Alt key on the virtual

[android-developers] Change backround of the view embedded in the ListView item

2009-10-22 Thread droidin.net
I have a ListView backed by customized ArrayAdapter where each item has 2 LinearLayouts - one I call head, and the other one - body. The body is hidden (gone) until user clicks on the row at which time it slides out. The second click (on the head) will hide the body. However if user clicks on the

[android-developers] Re: Change backround of the view embedded in the ListView item

2009-10-22 Thread droidin.net
(SearchResultsView.this, Unable to display details for this listing, Toast.LENGTH_LONG).show(); } } }); On Oct 22, 2:50 pm, Mark Murphy mmur...@commonsware.com wrote: droidin.net wrote: So to summarize my question - how do I change

[android-developers] Re: Change backround of the view embedded in the ListView item

2009-10-22 Thread droidin.net
Sorry - what I'm saying is no - setting background has no effect On Oct 22, 9:18 pm, droidin.net bost...@gmail.com wrote: Are you actually getting control in your onClick()? If yes, then calling setBackgroundColor() should work fine. Yes, I can setup a breakpoint and see how I'm executing

[android-developers] Re: Change backround of the view embedded in the ListView item

2009-10-22 Thread droidin.net
Ha! That's interesting thought! Let me try, thanks a bunch! On Oct 22, 8:54 pm, Nirav niravshah1988s...@gmail.com wrote: Looking at your problem, the solution is that you can use expandable list view to do the your task. It will solve your all prooblem and can change your background using

[android-developers] ListView - duplicate onScroll events

2009-10-13 Thread droidin.net
In my app I have a ListView backed by ArrayAdapter. In it I'm detecting events in OnScrollListener#onScroll method to find end of the list. I noticed that on the phone (MyTouch) both track-ball and gesture/touch scrolling will trigger the event twice. On the emulator I get the same behavior with

[android-developers] Re: for Google attention

2009-10-13 Thread droidin.net
With sales so dismal I think freeing up your app and figuring out an alternative way of making money from it (not ads ether) is the best way to fight Chinese (or Russians, or whomever). Or build-in license activation which validates that license is valid for the particular device. Litigation is

[android-developers] Re: ListView - duplicate onScroll events

2009-10-13 Thread droidin.net
, final int scrollState) { // Log.d(OnScrollListener, state: + scrollState); } }); On Oct 13, 11:58 am, droidin.net bost...@gmail.com wrote: In my app I have a ListView backed by ArrayAdapter. In it I'm detecting events in OnScrollListener#onScroll method

[android-developers] Autogrow ListView is not working

2009-10-12 Thread droidin.net
I look at some posts from the past and it seems that if I add items to the ListView adapter it should update itself and user should be able to scroll to the newly appended items. Unfortunately it's not what I observe. If I append new items to my existing ArrayAdapter I only will see updated

[android-developers] Re: Autogrow ListView is not working

2009-10-12 Thread droidin.net
Nevermind... Basically I should not add items to the internal list directly but instead, use ArrayAdapter#add(Object) method. Thanks to Mark Murphy for pointing that out On Oct 12, 1:59 pm, droidin.net bost...@gmail.com wrote: I look at some posts from the past and it seems that if I add items

[android-developers] MOTODEV Studio vs. Google plugin

2009-10-05 Thread droidin.net
Is anybody have any advice, experience, suggestions? I'm pretty comfortable with Google plugin - what would make me change to MOTODEV? Needless to say - I will download and play with it but I'm also interested in fellow developer's feedback. --~--~-~--~~~---~--~~

[android-developers] UI background task

2009-09-29 Thread droidin.net
Here's scenario: 1. Client makes remote call to the service (returns void) and provides a callback object 2. Service executes some long running logic on the background thread and then uses callback object to trigger ether success or failure which (since these manipulate visual elements) execute

[android-developers] Mangled PreferenceActivity

2009-09-24 Thread droidin.net
I have pretty unassuming preferences screen based on PreferenceActivity. (You can see it in DroidIn app) I'm having some problems with it that I think have to do with redrawing the screen after updates. Here are the symptoms: 1. OnPreferenceChangeListener#onPreferenceChange if I change summary of

[android-developers] Re: Mangled PreferenceActivity

2009-09-24 Thread droidin.net
Problem solved! Turned out that for whatever reason (probably just copying some example code without much thinking) I had this line in my theme.xml item name=android:windowBackground@null/item. Once I removed it - my redrawing problem was gone On Sep 24, 2:06 pm, droidin.net bost...@gmail.com

[android-developers] WebView - disallow breaking out

2009-09-21 Thread droidin.net
I'm using WebView#loadUrl() to load page inside my app. Unfortunately, the original URL redirects to some other URL and that 2nd redirect (302) basically opens external browser and loads final page into it. I really don't want to do anything with the page I'm loading and don't want to add any

[android-developers] Re: WebView - disallow breaking out

2009-09-21 Thread droidin.net
Jason - I do want to redirect. What I also want is to stay in the original WebView window, right now it starts there but then app pops- up mobile browser and page is displayed in that browser rather than the app On Sep 21, 3:45 pm, Jason Proctor jason.android.li...@gmail.com wrote: do you have

[android-developers] Restore last viewed Activity

2009-09-19 Thread droidin.net
I have 3 different Activities that user navigates between in no particular order. My goal it twofold: 1. When user switches to something else when app is resumed I want to start where user left even if app was terminated. Specifically I want to display last viewed activity, not the default

[android-developers] Re: WebView data caching

2009-09-19 Thread droidin.net
My problem is that data I'm loading/reloading into WebView takes long time to process since it's full blown HTML + JS + CSS. I noticed that when cached, same code loads way faster. What I'm trying to do is to minimize loading hiccup when user reloads already cached content On Sep 3, 4:42 pm,

[android-developers] Re: WebView data caching

2009-09-19 Thread droidin.net
Indra - I would suggest asking separate question. It's hard to answer 2 questions on a single thread however related these may be On Sep 18, 4:10 am, indra indrad...@gmail.com wrote: Hi Guys, I am doing google search and I want to receive the data without loading the webView. Just like a

[android-developers] Re: Http server at localhost

2009-09-04 Thread droidin.net
...in android and use it it works for my requirements very well may be it will use full for you Thank you Dilli On Fri, Sep 4, 2009 at 5:19 AM, droidin.net bost...@gmail.com wrote: Is it possible to do something like WebView#loadUrl(http://10.0.0.2/ index.html) with service acting

[android-developers] Re: Http server at localhost

2009-09-04 Thread droidin.net
Oh my God! Access your phone from the browser - I'm going to be sick... Beyond brilliant! On Sep 4, 6:48 am, Neil neilb...@gmail.com wrote: I think jetty is the thing you're looking for:http://code.google.com/p/i-jetty/ Neil http://l6n.org/android/ On Sep 4, 3:11 pm, Haravikk

[android-developers] Re: need help on https (code for http included)

2009-09-04 Thread droidin.net
Try to init your HttpClient as follows (worked for me) final HttpParams params = new BasicHttpParams(); HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); HttpProtocolParams.setContentCharset(params, UTF-8); final SchemeRegistry registry = new SchemeRegistry(); registry.register(new

[android-developers] Re: need help on https (code for http included)

2009-09-04 Thread droidin.net
If you need a stream why don't you just use HttpEntity? // Get hold of the response entity HttpEntity entity = response.getEntity(); // If the response does not enclose an entity, there is no need // to worry about connection release if (entity != null) { InputStream instream =

[android-developers] Re: WebView data caching

2009-09-03 Thread droidin.net
This really stinks (not caching data loads). Is it possible to code it in? On Sep 2, 4:07 pm, Jason Proctor jason.android.li...@gmail.com wrote: the loadData() methods don't enter anything into the history and rather more awkwardly don't set the current URL. so if you call loadData() and then

[android-developers] Http server at localhost

2009-09-03 Thread droidin.net
Is it possible to do something like WebView#loadUrl(http://10.0.0.2/ index.html) with service acting as local http server? Where would one start? Will I need at least partial http server implementation that would listen on the socket? --~--~-~--~~~---~--~~ You

[android-developers] Re: Http server at localhost

2009-09-03 Thread droidin.net
, but the android folks would say it's better done in java On Sep 3, 7:49 pm, droidin.net bost...@gmail.com wrote: Is it possible to do something like WebView#loadUrl(http://10.0.0.2/ index.html) with service acting as local http server? Where would one start? Will I need at least partial http

[android-developers] WebView data caching

2009-09-02 Thread droidin.net
1. I load HTML data into WebView with loadDataWithBaseURL 2. Do it one more time 3. Execute the following code and instead of going back to the 1st page - whole app exits. What am I doing wrong here? public boolean onKeyDown(final int keyCode, final KeyEvent event) { if (keyCode ==

[android-developers] Service lifecycle and in-memory caching

2009-09-01 Thread droidin.net
If I have a service that contains Map with some cached objects that I'm serving on demand to the Activity, then how reliable that cache is and what are the chances that server object (and my cache) may be dropped? The server runs in its own thread (AIDL) and Activity binds/unbinds from it as

[android-developers] Services - best way to bind

2009-08-31 Thread droidin.net
When using AIDL-based async services I've seen various examples when the service is bound/unbound on Activity's oncreate/ondestroy, onstart/ onstop and even on onpause/onresume. Which one is right? And what is acceptable recovery strategy when attempt using the service fails? Thanks you for your

[android-developers] Re: Alternative Android Markets

2009-08-17 Thread droidin.net
about expanding merchant checkout (seller) accounts to more countries as to fight all those alternate stores popping up. On 16 Aug, 18:15, droidin.net bost...@gmail.com wrote: Sorry reposting here. It seems that I'm not able to post to Android Discuss r my posts are getting ignored I have 2

[android-developers] Re: Alternative Android Markets

2009-08-17 Thread droidin.net
, 9:34 pm, cs_post...@hotmail.com cs_post...@hotmail.com wrote: On Aug 16, 12:15 pm, droidin.net bost...@gmail.com wrote: I have 2 apps (DroidIn) on Market for some time now. Lately I start getting offers from Taiwanese/Chinese mobile leaders companies offering to host and resell

[android-developers] Alternative Android Markets

2009-08-16 Thread droidin.net
Sorry reposting here. It seems that I'm not able to post to Android Discuss r my posts are getting ignored I have 2 apps (DroidIn) on Market for some time now. Lately I start getting offers from Taiwanese/Chinese mobile leaders companies offering to host and resell the app. They are offering to

[android-developers] Parse or not to parse?

2009-08-16 Thread droidin.net
I guess to definitely answer this, one needs to run some benchmarks but I'll ask anyway. In you opinion/experience what would work faster after initial HTML is grabbed from the remote source. (The HTML is group of one or two level nested OL or UL within body tag and some DIVs) 1. Using

[android-developers] Re: Parse or not to parse?

2009-08-16 Thread droidin.net
Say it's clean enough to write a SAX handler with few possible exception handling lines. I really don't want 3rd party jars. With that aside - will it be faster to use ListView? Bo On Aug 16, 4:58 pm, Mark Murphy mmur...@commonsware.com wrote: droidin.net wrote: I guess to definitely answer

[android-developers] Unable to debug on HTC MyTouch

2009-08-15 Thread droidin.net
All right - I admit my defeat. Can anyone walk me trough successfully debugging with MyTouch? Here's what I tried: 1. Plugged in the phone - my XP Prfessional never asked me for anything - just simply told me that Hardware is ready to use 2. In the phone - mounted USB - no problem accessing

[android-developers] Re: Unable to debug on HTC MyTouch

2009-08-15 Thread droidin.net
way to get to the driver, btw is to right click on the removable drive folder and select Properties-Hardware-Driver On Aug 15, 6:07 pm, Mark Murphy mmur...@commonsware.com wrote: droidin.net wrote: All right - I admit my defeat. Can anyone walk me trough successfully debugging with MyTouch

[android-developers] Vertical label

2009-08-10 Thread droidin.net
I need 2 ways of showing a vertical label: 1. Horizontal label turned 90 degrees counterclockwise (letters on the side) 2. Horizontal label with letters one under the other (like a store sign) Do I need to develop custom widgets for both cases (one case), can I make TextView to render that way,

[android-developers] T-Mobile MyTouch Emulator Skin

2009-08-09 Thread droidin.net
I tried to Google for it to no avail. I really need it to make some promos - any hint will be appreciated Thanks, Bo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: T-Mobile MyTouch Emulator Skin

2009-08-09 Thread droidin.net
://coffeecokeandcode.blogspot.com/2009/06/htc-magic-skin-for-andr... /Casper On 9 Aug., 18:50, droidin.net bost...@gmail.com wrote: I tried to Google for it to no avail. I really need it to make some promos - any hint will be appreciated Thanks, Bo

[android-developers] Service lifecycle and persistent objects

2009-08-06 Thread droidin.net
I need to retain a complex object in my service, so I can reliably come back to it (it holds updates). Initially I coded it just as a class filed in my Service implementation but I'm observing that the updates object is periodically reset to null which tells me that server class itself is

[android-developers] Re: Activity timeout on WebView load

2009-08-04 Thread droidin.net
, you create a new thread that does the http stuff. If the user needs to wait for the data to display anyway, I think  you can prevent the timeout from happening by using a progress bar. On Aug 4, 1:07 am, droidin.net bost...@gmail.com wrote: In my app I have to load external page into WebView

[android-developers] Re: Spinner - don't display selection

2009-08-04 Thread droidin.net
(AdapterView? arg0, View arg1, int arg2,long arg3) the parameter of arg1 is your selected view, and you could pick textview form it. then set the backgroud color as your like of textview On Aug 4, 1:10 pm, droidin.net bost...@gmail.com wrote: I'm trying to use Spinner as a button

[android-developers] Spinner: text vs value

2009-08-04 Thread droidin.net
I declare my Spinner in the following manner (it's very static so I have 2 string arrays in array.xml for titles and values) Spinner android:id=@+id/searchCriteria android:entries=@array/ searchBy android:entryValues=@array/searchByValues /Spinner I expect spinner.getSelectedItem() to return an

[android-developers] Activity timeout on WebView load

2009-08-03 Thread droidin.net
In my app I have to load external page into WebView-based activity. Some of my users with slower connections are reporting screen timeout while waiting for the page to load. What would be a good way of loading the page on backgorund thread and then refreshing the screen? Use HttpClient to fetch

[android-developers] Spinner - don't display selection

2009-08-03 Thread droidin.net
I'm trying to use Spinner as a button with selection pop-up. Basically I want an icon and when user clicks it - the popup list is displayed and user can make a selection. The Spinner happily accepts icon image as drawable background. Unfortunately when I select a value the text overlays the

[android-developers] Re: LinearLayout fill the middle

2009-08-01 Thread droidin.net
: droidin.net wrote: I have a vertical, set height (300px)LinearLayout(LL) with 3 nested LLs. 1 and 3rd are set with android:layout_height=wrap_content and the middle one with android:layout_height=fill_parent. To my dismay, 3rd LL get's pushed out with 2nd one filling parent layout right

[android-developers] Search in the Market

2009-08-01 Thread droidin.net
I don't know if my question belongs to this group but I'll ask it anyway: I noticed that when I search for my app (DroidIn) on the market using keyword linkedin the app is not coming up in the results.I tried different combinations, currently I have 2 apps titled: DroidInLite linkedin + twitter

[android-developers] Re: App not showing up in Android Market??

2009-08-01 Thread droidin.net
I have a thread http://is.gd/1XVPG complaining about same thing. I think there's something screwy with market search Bo (DroidIn - LinkedIn + Twitter on Android) On Aug 1, 9:07 am, rcs rsar...@gmail.com wrote: We just got an email from someone on an HTC Magic searching for our app and saying

[android-developers] Re: Terminating Application (Activity)

2009-08-01 Thread droidin.net
This unfortunately has a huge drawback that when exit() is executed your debugging session goes kaput. When app restarts it's no longer in debugger :( On Jul 31, 5:22 am, Mark Murphy mmur...@commonsware.com wrote: droidin.netwrote: Mark! You are a genius! Somebody else pointed out the

[android-developers] Full browser vs WebView view

2009-08-01 Thread droidin.net
I'm trying various ways of Twitter authorization which requires roundtrip to the browser. When I load auth URL into standalone browser everything works well. However if I call same URL but into embedded WebView (separate Actions, same app) the page loads but it is not fully functional (I cannot

[android-developers] Re: Full browser vs WebView view

2009-08-01 Thread droidin.net
: droidin.net wrote: I'm trying various ways of Twitter authorization which requires roundtrip to the browser. Why not use their API? 1. Execute intent with startActivity(new Intent(auth, Uri.parse(authUrl), this, Browser.class)); On a side note, since Intent actions are device-global in scope

[android-developers] Re: Full browser vs WebView view

2009-08-01 Thread droidin.net
in the real device. Well - I'll check it on Monday Bo On Aug 1, 5:09 pm, droidin.net bost...@gmail.com wrote: Been there, done that. It's simple. I use OAuth since that gives me ability to mark each of messages posted with my app as from DroidIn not with from API. It's my app, I want my glory

[android-developers] Re: Terminating Application (Activity)

2009-07-31 Thread droidin.net
Mark! You are a genius! It did exactly what I need. I'll put it as a tip into my blog (http://dev.bostone.us) with due diligence, it's a great testing tool On Jul 30, 3:09 pm, Mark Murphy mmur...@commonsware.com wrote: droidin.net wrote: For the test purposes I need to terminate my app from

[android-developers] LinearLayout fill the middle

2009-07-31 Thread droidin.net
I have a vertical, set height (300px) LinearLayout (LL) with 3 nested LLs. 1 and 3rd are set with android:layout_height=wrap_content and the middle one with android:layout_height=fill_parent. To my dismay, 3rd LL get's pushed out with 2nd one filling parent layout right to the bottom. How do I

[android-developers] Vertical tab - possible?

2009-07-25 Thread droidin.net
I tried to search discussions and couldn't find definite answer or example in old thread. I want my tabs to realign vertically in the landscape mode. Currently I have to use buttons which is sorta silly when there is a tab control. If it is possible short hint would be greatly appreciated