Re: [android-developers] Using a logo instead of icon in a SearchView and postioning of a ViewSwitcher

2012-12-14 Thread farble1670
sorry for the me too post, but me too. i'd really like to understand 
what's going on with the launcher vs. logo. 

On Monday, September 24, 2012 2:30:37 AM UTC-7, Martijn van Mechelen wrote:

 Does anyone know how to show a custom logo instead of the laucher app in 
 the SearchView ?

 Thanks,

 Martijn

 Op donderdag 20 september 2012 09:22:43 UTC+2 schreef Martijn van Mechelen 
 het volgende:

 Hi Kostya,

 Your suggested solution seems to solve the second problem (the incorrect 
 positioning of the ViewSwitcher). Do you also know a solution for the first 
 problem (the displayment of the laucher app icon instead of custom logo in 
 the SearchView)?

 Thanks,

 Martijn

 Op dinsdag 18 september 2012 13:30:13 UTC+2 schreef Kostya Vasilyev het 
 volgende:

 The answer at SO uses this:

 actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_HOME);

 Since your action bar has different content, you might want to try this:

 actionBar.setDisplayOptions(0, ActionBar.DISPLAY_SHOW_TiTLE);

 or just this:

 actionBar.setDisplayShowTitleEnabled(false);

 -- K

 2012/9/18 Martijn van Mechelen martijnv...@gmail.com

 Hi all,

 Recentely we've published a Android app which is developed according to 
 the Android design guidelines:
 https://play.google.com/store/apps/details?id=nl.jip.benzineapp

 This app uses a logo instead of the launcher icon. In the app a search 
 function is present in the ActionBar. There is also ViewSwitcher present 
 in 
 the ActionBar.

 Now we have two problems with the ActionBar.


1. We aren't able to show the custom logo instead of the laucher 
app icon in the SearchView, see attachment. This should be possible, 
 this 
is accomplished in the YouTube app for example. Any suggestions how to 
accomplish this?

2. When the user navigates between the default ActionBar and the 
SearchView the positioning of the ViewSwitcher becomes incorrect, see 
attachment. Apparently this is a known problem: 

 http://stackoverflow.com/questions/12115372/android-margin-between-actionbar-icon-and-navigation-dropdown-menu-changes-when
When we apply the suggested solution the custom logo is replaced by 
the laucher icon. Any suggestions how to avoid this?


 Thanks,

 Martijn van Mechelen

 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Catch HTTP error code with WebView

2012-08-23 Thread farble1670
that is not a solution. if we require anything more complicated than a 
simple fetch of a single page, this doesn't work. the ability to completely 
override resource loading isn't available until API 11.

On Monday, March 15, 2010 2:40:43 AM UTC-7, Manuel Vela wrote:

 Ok, the only solution I've found is to create an HTTPClient to create
 connection and do a Get petition. With this method I can get
 everything (header, status... etc) in the response and then give all
 datas to the Webview with webView.loadDataWithBaseUrl.
 Something like this:

 HttpClient httpclient = new DefaultHttpClient();
 HttpGet httpget = new HttpGet(http://ja.wikipedia.org/wiki/刀;;);
 HttpResponse response;

 BufferedReader real_response = null;
 try {
 response = httpclient.execute(httpget);
 new InputStreamReader(
 response.getEntity().getContent(), UTF-8));
 } catch (Exceptionn e) {
 e.printStackTrace();
 }
 if (real_response != null)
 {
 String data = ;
 String tempdata = ;
 try {
 while ((tempdata = real_response.readLine()) !
 = null)
 {
 data += tempdata;
 }
 } catch (Exception e) {
 e.printStackTrace();
 }
 wv.loadDataWithBaseURL(http://www.lliane.com/;;,
 data,
 text/html,
 UTF-8,
 about:blank);
 }



-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Handling Redirects in Android WebView

2012-08-10 Thread farble1670
yeah, but how do tell if it's a redirect?

On Monday, March 12, 2012 4:14:29 AM UTC-7, Mark Murphy (a Commons Guy) 
wrote:

 Redirects are handled via a WebViewClient and
 shouldOverrideUrlLoading(), as are clicks on ordinary links.

 On Sun, Mar 11, 2012 at 3:54 AM, Rao nidle...@gmail.com javascript: 
 wrote:
  Hi,
 
  I am developing a android application, Within the application I am
  trying to Load a URL using WEBVIEW. Afer i submit the data in the
  opened webpage, it gets redirected to some other URL. My requirement
  is to get the complete Redirected URL within my android application.
 
  I didnt see any events/ API methods which can be used to notify URL
  Redirect.
 
  Are there any way to listen for URL redirects within my application
  and then retrieve the URL.
 
  Thanks
  Rao
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript:
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com javascript:
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 -- 
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 _The Busy Coder's Guide to Android Development_ Version 3.7 Available!



-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Documentation errors for LocationManager.requestSingleUpdate() ?

2010-12-26 Thread farble1670
don't have the answer, but wondering this myself. my guess is the same
as yours ... the docs must be incorrect.

On Dec 7, 9:02 pm, davemac davemac...@gmail.com wrote:
 This is a new method in Android 2.3's LocationManager. It says
 basically the same thing as what it says for requestLocationUpdates(),
 except that there's no way to specify a minTime or minDistance. From
 the name I would guess that my listener is going to be called once and
 that's it, maybe as soon as a reliable location is available. But the
 descriptions start with this:

 Registers the current activity to be notified periodically by the
 named provider. Periodically, the supplied LocationListener will be
 called with the current Location or with status updates.

 Periodically is not defined nor settable it seems. And why would
 this method be called requestSingleUpdate if it gets multiple updates?
 Does anyone know how to use these methods?

 Thanks.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] applying a theme to an appwidget

2010-10-23 Thread farble1670
i'm trying to define a theme for an appwidget, and have it applied at
the application level. i have a theme like,

style name=theme.dark
  item name=androidbackground#00/item
/style

in my manifest, i set android:theme=@style/theme.dark. however, when
i run the appwidget, it does not pick up the items from the style.

i tried setting style=@style/theme.dark on an individual element in
my view layout, and that does work ... but that's not what i want. i
don't want to call out a specific style=... for each element in my
view. this page,

http://www.androidengineer.com/2010/06/using-themes-in-android-applications.html

has an excellent example app for using themes / styles, and it works
perfectly. the only difference is that it's an application .. and it's
setting the theme on the activity, not the application.

i've also tried setting the theme at programmatically on the Context
object in onHandleUpdate() of the appwidget, before the view is
accessed. that doesn't work either.

any ideas?
thanks.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] webview encoding

2009-12-02 Thread farble1670
i am calling WebView.loadDataWithBaseUrl() and passing utf-8 as the
encoding. when the string renders, some of the characters show as a
block. the string looks fine when i view it in the debugger.

am i missing some important step here? there doesn't seem to be any
control over this other than the encoding param to loadDataWithBaseUrl
().

thanks.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to detect the Widget is active in the current panel?

2009-12-02 Thread farble1670
that is really too bad.

it would be a huge battery saver and make widget use more realistic.
for non-zero widget update periods, it should just automatically avoid
updating the widgets if they aren't visible. for manual alarm-updated
widgets, there should be a way to ask if the widget is visible.

i'm struggling with a related problem ... trying to tell if a widget
has been removed from the desktop. i need to stop the service that is
running to update the widget in this case.

On Nov 8, 7:25 pm, Romain Guy romain...@google.com wrote:
 There's no way of knowing that.



 On Sun, Nov 8, 2009 at 7:17 PM, Jimmy Huang huan...@gmail.com wrote:
  Does anyone can help me?

  On Nov 6, 3:22 pm, Jimmy Huang huan...@gmail.com wrote:
  Hi All,

  Does anyone know how to detect the Widget in home screen is active in
  the currentpanel?

  As you know, some device has manypaneli.e (HTC Hero has 7panel),
  eachpanelcan put some widgets on the home screen, then the widget
  will run and refresh the data automatically, we want to let the widget
  disable the refresh data feature while it is not under currentpanel.
  and enable it while it is put to currentpanelagain.

  Thanks for your help!
  Jimmy

  --
  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, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android Dev Phone 1 out of stock

2009-08-17 Thread farble1670

agreed, frustrating. i should not have to pay $25 for the privilege of
knowing that they are out of stock. yes i would have joined eventually
anyway, but i did so *today* with the intent of picking up a device.

On Jul 27, 12:15 pm, AndyB rn.an...@gmail.com wrote:
 Nobody seems to have answered the question,

 Like you, i recently got fed up waiting for the G1 to be released in
 my country (Ireland) so I decided to order the ADP1, only to find out
 there was no stock.

 If you check the View Cart page of the order 
 website,https://android.brightstarcorp.com/cart.php, it says they expect
 availability to resume on March 4.
 I rang them to confirm that it would take 9 months, and that message
 is a mistake. I was told the phone would be restocked by the end of
 August.

 So i guess its eBay or wait a month.

 On Jul 25, 10:14 am, kenpark patrick.seiff...@gmx.net wrote:

  Hej.

  Yesterday I registered in the Android Market Place to be able to
  retrieve one of the dev devices. But after I had registered and paid
  the fee I was told that the dev phones are currently out of stock.
  Since I need one of those devices for my masterthesis I was very
  unhappy to hear that it may take a few weeks.

  Does anyone know (or can one estimate) when they might be available
  again?

  Regards,
  Kenpark



--~--~-~--~~~---~--~~
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, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---