[android-developers] ListView and GridView Rendering

2011-06-15 Thread oriharel
ADT said that version 11 brings ListView and GridView Rendering,
however it's disabled in my eclipse and shows: not supported for this
SDK version; try changing the Render Target.

I tried changing the render target but no help there.
Suggestions?

-- 
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] Performance Issues

2011-05-09 Thread oriharel
Hi All,
I'm having performance issues in my app - lost and lots of OutOfMemory
exceptions.
I've noticed I'm using Context.getResources().getDrawable() a LOT on
my adapters.

Could it be it? if so, what are my alternatives?

-- 
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] Testing in android

2010-12-28 Thread oriharel
Just a question -
How many of you use the testing infrastructure provided by Android?

-- 
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: Eclipse ADT 8.0.0 (and 8.0.1) problem - can't create views hierarchy with drag and drop in the Outline view

2010-12-20 Thread oriharel
I got myself ADT 9.0 working! great job you guys!

On Dec 19, 5:05 pm, Cyril cyril.r...@gmail.com wrote:
 I confirm Xavier's solution. You can put a view inside a linearLayout,
 provided this layout is not empty and both width and height are NOT
 set to wrap_content. I fought hours before sorting that bug out :-)

 nevertheless, I hope a fix will come ASAP !!!

 On 9 déc, 09:11, oriharel ori.ha...@gmail.com wrote:







  Well, I can't put a TextView inside a LinearLayout by drag n' drop at
  all.
  am I missing something?

-- 
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] EditText background text

2010-12-20 Thread oriharel
Hi!
Is there a way to set the background text of an EditText? for
instance, I have a login screen with 2 EditText views, one for
username and one for password. I want the text Username and
Password be written inside the EditText, and once the user touches
those the text disappears but once user deleted his own entry, text re-
appears.

Is there a property for that or should I implement this on my own with
events and stuff?

-- 
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: Eclipse ADT 8.0.0 (and 8.0.1) problem - can't create views hierarchy with drag and drop in the Outline view

2010-12-12 Thread oriharel
no. they are not in 8.0.1 also.

On Dec 10, 5:11 am, Zarah zarahj...@gmail.com wrote:
 I think Undo (CTRL+Z on Windows) works when you are in the XML view of
 the Layout Editor (not on the graphical view).

 Are the up/down arrows still not back on the 8.0.1?

 I want my up/down arrows! :)

 - Zarah.

 On Dec 9, 4:24 pm, Logan Masten sevenrech...@gmail.com wrote:







  I simply cannot believe the up and down arrows are gone.  What should
  have been a couple minute job through a few arrow presses has turned
  into an hour of me saving and reloading the layout, as undo doesn't
  appear to work either.

  On Dec 8, 8:09 pm, Julian cacif...@gmail.com wrote:

   Hi,

   It would be great if the shapes don't break the entire layout, for 
   example,
   I frequently use rounded shapes for my tablerows, but I can't apply them
   till the end because they can't be displayed/rendered in the layout
   editor.

   Same thing for TabActivities where the content of each tab is populated by
   another independent activities with intents.

   Regards.

   2010/12/8 Xavier Ducrohet x...@android.com

hey all,

We're actively working on the editor, so this is good feedback.

The new editor in 8.x might look the same, but it's completely
different underneath and we have added the +/- features back.
the - button should be replaced by delete anyway. You can right
click and choose delete or simply hit delete on your keyboard.

The + option is indeed replaced by drag and drop. We've improved
drag and drop significantly (and still improving it for the next
version), and should be good enough that using + isn't needed.
In some cases too, + isn't enough, you need more information to know
where the item will be placed (like when dropping into a
relativeLayout).
(same thing with the up/down arrows)

On Tue, Dec 7, 2010 at 11:52 PM, oriharel ori.ha...@gmail.com wrote:
 Before the newest version I was able to create hierarchies using drag
 n' drop, performed on the outline view.
 Since the upgrade, I can't and the controls ('+', '-' and arrows) are
 missing.

 So how am I suppose to build view hierarchies now?

 --
 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.comandroid-developers%2Bunsubs
  cr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. 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.comandroid-developers%2Bunsubs
 cr...@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: Eclipse ADT 8.0.0 (and 8.0.1) problem - can't create views hierarchy with drag and drop in the Outline view

2010-12-09 Thread oriharel
Well, I can't put a TextView inside a LinearLayout by drag n' drop at
all.
am I missing something?

On Dec 9, 4:12 am, Xavier Ducrohet x...@android.com wrote:
 hey all,

 We're actively working on the editor, so this is good feedback.

 The new editor in 8.x might look the same, but it's completely
 different underneath and we have added the +/- features back.
 the - button should be replaced by delete anyway. You can right
 click and choose delete or simply hit delete on your keyboard.

 The + option is indeed replaced by drag and drop. We've improved
 drag and drop significantly (and still improving it for the next
 version), and should be good enough that using + isn't needed.
 In some cases too, + isn't enough, you need more information to know
 where the item will be placed (like when dropping into a
 relativeLayout).
 (same thing with the up/down arrows)









 On Tue, Dec 7, 2010 at 11:52 PM, oriharel ori.ha...@gmail.com wrote:
  Before the newest version I was able to create hierarchies using drag
  n' drop, performed on the outline view.
  Since the upgrade, I can't and the controls ('+', '-' and arrows) are
  missing.

  So how am I suppose to build view hierarchies now?

  --
  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

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

 Please do not send me questions directly. 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: Eclipse ADT 8.0.0 (and 8.0.1) problem - can't create views hierarchy with drag and drop in the Outline view

2010-12-09 Thread oriharel
fill_parent should not be deprecated. it has different functionality
then match_parent

On Dec 9, 1:19 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 fill_parent has been deprecated since 2.2.  It's now match_parent

 On Dec 8, 10:01 pm, Julian cacif...@gmail.com wrote:







  Also de up and down arrows.
  Another thing, Where is the fill_parent option?

  2010/12/8 Prashast prash...@gmail.com

   At first I thought its because of a wrong view being opened but looks
   like they have removed the +, - and arrows.

   While working with a complex layout dragging the views just doesn't
   work me. The only solution is to go edit the files in XML.

   The +, - and arrows controls should be brought back IMO

   On Dec 8, 3:54 pm, Kumar Bibek coomar@gmail.com wrote:
Yep they are gone. Perhaps, we are now supposed to do drag and drop. +
   -
signs were helpful though.
Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

On Wed, Dec 8, 2010 at 1:22 PM, oriharel ori.ha...@gmail.com wrote:
 Before the newest version I was able to create hierarchies using drag
 n' drop, performed on the outline view.
 Since the upgrade, I can't and the controls ('+', '-' and arrows) are
 missing.

 So how am I suppose to build view hierarchies now?

 --
 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.comandroid-developers%2Bunsubs
  ­cr...@googlegroups.comandroid-developers%2Bunsubs
   cr...@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.comandroid-developers%2Bunsubs
­cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en-Hide quoted text -

  - Show quoted text -

-- 
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] Eclipse ADT 8.0.0 (and 8.0.1) problem - can't create views hierarchy with drag and drop in the Outline view

2010-12-07 Thread oriharel
Before the newest version I was able to create hierarchies using drag
n' drop, performed on the outline view.
Since the upgrade, I can't and the controls ('+', '-' and arrows) are
missing.

So how am I suppose to build view hierarchies now?

-- 
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: OnKeyListener not working on virtual keyboard

2010-12-05 Thread oriharel
Having the same issue, but with EditText.

On Nov 26, 5:13 am, bobetko bobe...@gmail.com wrote:
 I don't understand why this peace of code is not working. OnlyDelete
 and Return keys are detected. Listener doesn't fire for any otherkey.
 My device isNexusOne.

 I tried to override activity's OnKeyDown method and that's even worse.
 The only detected button was hardware back button.

 I am seeing around a suggestion to use TextWatcher and onTextChanged,
 while that might work in some cases, it's not a real work around. For
 example, if textbox is empty, you won't detect if user press Deletekey.
 So any ideas?

 Here is my code:

         TextView txtInput = (TextView)findViewById(R.id.txtInput);
                 txtInput.setOnKeyListener(new View.OnKeyListener() {

                         @Override
                         public boolean onKey(View v, int keyCode, KeyEvent 
 event) {
                                 makeToast(keyCode + keypressed);
                                 return true;
                         }
         });

-- 
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] Android onKey is not fired for soft keyboard on a nexus one

2010-12-05 Thread oriharel
I'm trying to catch onKey events from a soft keyboard. however, only
few keys fire the onKey event (Delete, back, etc.). not regular
characters. anyone know why?

-- 
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] Animated-Rotate

2010-12-05 Thread oriharel
I did some digging in Android code, and saw the use of animated-
rotate in the indeterminate progress bar. after trying to create my
own drawable with this tag:

animated-rotate xmlns:android=http://schemas.android.com/apk/res/
android
android:drawable=@drawable/spinner_pia
android:pivotX=50%
android:pivotY=50%
android:framesCount=12
android:frameDuration=100 /

I get an error:
No resource identifier found for attribute 'frameDuration' in package
'android' - which means that frameDuration is a private attribute.
Is there a way to use this animate-rotate feature?

-- 
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: Using Google's Ajax local search API with Android

2010-11-24 Thread oriharel
How did you solve this?

On Oct 7, 5:25 pm, abhishek akhani abhishek.akh...@gmail.com wrote:
 Solved...

 On Oct 6, 3:51 pm, abhishek akhani abhishek.akh...@gmail.com wrote:







  HI,

  i want to use Google's ajax local search API in my android
  application.

  but i am getting following error:

  10-06 15:21:04.386: WARN/System.err(662):java.net.SocketException:
 Permissiondenied
  10-06 15:21:04.396: WARN/System.err(662):     at
  org.apache.harmony.luni.platform.OSNetworkSystem.createStreamSocketImpl(Nat 
  ive
  Method)
  10-06 15:21:04.426: WARN/System.err(662):     at
  org.apache.harmony.luni.platform.OSNetworkSystem.createStreamSocket(OSNetwo 
  rkSystem.java:
  186)
  10-06 15:21:04.426: WARN/System.err(662):     at
  org.apache.harmony.luni.net.PlainSocketImpl.create(PlainSocketImpl.java:
  265)
  10-06 15:21:04.426: WARN/System.err(662):     at
  java.net.Socket.checkClosedAndCreate(Socket.java:873)
  10-06 15:21:04.436: WARN/System.err(662):     at
  java.net.Socket.connect(Socket.java:1020)
  10-06 15:21:04.436: WARN/System.err(662):     at
  org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.init(HttpConnection.java:
  62)
  10-06 15:21:04.446: WARN/System.err(662):     at
  org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionPool.get(HttpConnectionPool.java:
  88)
  10-06 15:21:04.446: WARN/System.err(662):     at
  org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getHTTPConnection(HttpURLConn...
  927)
  10-06 15:21:04.455: WARN/System.err(662):     at
  org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl...
  909)

  Here is my code for making request:

  --- 
  --- 
  

  String url = http://ajax.googleapis.com/ajax/services/search/local?
  v=1.0q=pet+store;
  String result = MakeRequest(url);

  public static String MakeRequest(String url) throws Exception{
                  String rdata=;
                  try {

                           System.setProperty(http.keepAlive, false) ;

                          InputStream  is = null;
                          URL myFileUrl = new URL(url);

                          HttpURLConnection conn=
  (HttpURLConnection)myFileUrl.openConnection();
                          conn.setDoInput(true);
                          conn.setDoOutput(true);
                          conn.setRequestMethod(GET);
                          conn.connect();
                          is = conn.getInputStream();
                          int code = conn.getResponseCode();

                          if(code == 200){
                                  if(is!=null){
                                     ByteArrayOutputStream outputStream = new
  ByteArrayOutputStream();
                                     int len=-1;
                                     byte[] buff=new byte[1024];
                                     while((len=is.read(buff))!=-1){
                                             outputStream.write(buff,0,len);
                                     }
                                     byte[] bs = outputStream.toByteArray();
                                     rdata= new String(bs);
                                     is.close();
                                     conn.disconnect();
                                     outputStream.flush();
                                     outputStream.close();
                                           }
                          }else if(code == -1){
                                  is.close();
                                  conn.disconnect();
                                  MakeRequest(url);
                          }
                          else{
                                  throw new Exception(Please check Internet 
  connection:+code);
                                  //return null;
                          }
                          //is.close();
                          conn.disconnect();
                  } catch (Exception e) {
                          throw e;
                          //return null;
                  }

                  return rdata;
          }

          public static  InputStream OpenHttpConnection(String urlString)
  throws IOException {
                  InputStream in = null;
                  int response = -1;

                  URL url = new URL(urlString);
                  URLConnection conn = url.openConnection();

                  if (!(conn instanceof HttpURLConnection))
                          throw new IOException(Not an HTTP connection);

                  try {
                          HttpURLConnection httpConn = (HttpURLConnection) 
  conn;
                          httpConn.setAllowUserInteraction(false);
                          

[android-developers] Intent and extras

2010-11-23 Thread oriharel
Hi!
I set an PendingIntent on a Notification
(notification.setLatestEventInfo). this intent is actually the same
intent used to launch my app, only with a flag that I put in the extra
(intent.putExtra(TAB_INDEX_PARAM_NAME, UPDATES_TAB_INDEX)).

So my first activity launches, it queries it's intent's extras and
immediately navigates to an Alerts activity rather the normal activity
on a regular launch.

The problem:
from this point, every activation of my app navigates to this Alerts
activity. when debugged, I find that the flag is stuck in the intent
even though I removed/changed it. it just won't change.

do you know how can change an extra on a giving Intent?

Ori

-- 
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] Referencing a library adds libraryProj_src reference

2010-11-10 Thread oriharel
Hi,
after updating Eclipse Android plugin (ADT 0.9.9) I get strange
behavior.
I have one android project referencing another (IsLibrary=true for the
other). all worked fine but now, after upgrade, my referencing project
now includes another node: libraryProj_src which is in error state.
once I delete it it works fine but it resumes this upon each Eclipse
launch / adb restart.

any clue?

thanks,
Ori

-- 
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] Content Service Crash

2010-10-31 Thread oriharel
I get weird exception:

10-31 09:09:51.308: ERROR/ContentService(59): Content Service Crash
10-31 09:09:51.308: ERROR/ContentService(59):
java.lang.NullPointerException
10-31 09:09:51.308: ERROR/ContentService(59): at
android.content.ContentService
$ObserverNode.collectObserversLocked(ContentService.java:620)
10-31 09:09:51.308: ERROR/ContentService(59): at
android.content.ContentService.notifyChange(ContentService.java:134)
10-31 09:09:51.308: ERROR/ContentService(59): at
android.content.IContentService$Stub.onTransact(IContentService.java:
91)
10-31 09:09:51.308: ERROR/ContentService(59): at
android.content.ContentService.onTransact(ContentService.java:83)
10-31 09:09:51.308: ERROR/ContentService(59): at
android.os.Binder.execTransact(Binder.java:288)
10-31 09:09:51.308: ERROR/ContentService(59): at
dalvik.system.NativeStart.run(Native Method)

after that - only a restart of the emulator helps.
anyone knows what is this?

Ori

-- 
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: Content Service Crash

2010-10-31 Thread oriharel
the triggering code is:

getContentResolver().registerContentObserver(Uri.parse(refreshChange),
false, _refreshObserver);

On Oct 31, 11:38 am, oriharel ori.ha...@gmail.com wrote:
 I get weird exception:

 10-31 09:09:51.308: ERROR/ContentService(59): Content Service Crash
 10-31 09:09:51.308: ERROR/ContentService(59):
 java.lang.NullPointerException
 10-31 09:09:51.308: ERROR/ContentService(59):     at
 android.content.ContentService
 $ObserverNode.collectObserversLocked(ContentService.java:620)
 10-31 09:09:51.308: ERROR/ContentService(59):     at
 android.content.ContentService.notifyChange(ContentService.java:134)
 10-31 09:09:51.308: ERROR/ContentService(59):     at
 android.content.IContentService$Stub.onTransact(IContentService.java:
 91)
 10-31 09:09:51.308: ERROR/ContentService(59):     at
 android.content.ContentService.onTransact(ContentService.java:83)
 10-31 09:09:51.308: ERROR/ContentService(59):     at
 android.os.Binder.execTransact(Binder.java:288)
 10-31 09:09:51.308: ERROR/ContentService(59):     at
 dalvik.system.NativeStart.run(Native Method)

 after that - only a restart of the emulator helps.
 anyone knows what is this?

 Ori

-- 
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] ListView divider

2010-10-20 Thread oriharel
I have this code:

ListView
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:id=@+id/cashItemsList
  android:cacheColorHint=#
  android:divider=@drawable/list_divider/ListView

where @drawable/list_divide is:

shape
  xmlns:android=http://schemas.android.com/apk/res/android;
  android:shape=line
  stroke
android:width=1dp
android:color=#8F8F8F
android:dashWidth=1dp
android:dashGap=1dp /
/shape

but I don't see any divider.

help?

-- 
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: Animated background drawable

2010-10-18 Thread oriharel
Is this just for cross-fade?
can the transition be a slide and not fade?

On Oct 6, 2:19 pm, Kumar Bibek coomar@gmail.com wrote:
 Look at Transition Drawables.

 http://developer.android.com/guide/topics/resources/drawable-resource...





 On Wed, Oct 6, 2010 at 5:45 PM, oriharel ori.ha...@gmail.com wrote:
  Just like Twitter for android used to have (they removed it) - I need
  to display an animated background drawable.

  How to I show an image that is actually bigger then the given layout
  dimensions (without the image being shrink).

  What kind of animation do I need to use for the moving effect?

  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.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

-- 
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: Animated background drawable

2010-10-18 Thread oriharel
but how do I control the transition of items in the AnimationDrawable?

in fact, that might deviate from my real purpose.

What I really what is to create an animated background to my activity.
one that the Twitter-For-Android used, initially.
Romain suggested to use a custom drawable or a custom view, but I need
some more guidance there.

1. how to have an image, that is bigger then the container's size, set
as the background/src without it being shrunk (just show part of the
image if necessary).
2. how to have it in motion repeatedly.

for number 1 - I don't have any idea yet (is there a property for
that?)
for number 2 - I tried stuff like translate animation and
TranslateDrawable, but those are not what I'm looking for. (or am I
wrong...?)

thanks!

Ori


On Oct 18, 1:41 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, Oct 18, 2010 at 7:35 AM, oriharel ori.ha...@gmail.com wrote:
  Is this just for cross-fade?
  can the transition be a slide and not fade?

 AnimationDrawable is a series of frames, each as aPNG(or JPEG, I
 presume). You can draw yourPNGfiles however you like.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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] Animated background drawable

2010-10-06 Thread oriharel
Just like Twitter for android used to have (they removed it) - I need
to display an animated background drawable.

How to I show an image that is actually bigger then the given layout
dimensions (without the image being shrink).

What kind of animation do I need to use for the moving effect?

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] Android cloud to device

2010-09-25 Thread oriharel
Hi all,
When will C2DM be available to the public (no beta/whitlist) ?

Thanks,
Ori

-- 
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] Android Market the Google I/O 2010 features

2010-09-20 Thread oriharel
Anyone know when will the features introduced in Google I/O about
installing apps from the market via the website and etc be released?

-- 
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: Google maps - limit panning between longitudes

2010-08-23 Thread oriharel
I extended MapView (called MyMapView).
I overridden onLayout(). this is after I tried few other hooks.
this method is called upon each change to the map.
from there I was able to capture the current map left and right
bounds, match them against the bounds of my choice and reset the map
center so it won't exceed the bounds.

however, our world'd most left longitude is around -179*1E6. a small
pan to the right moves the map to be +179*1E6, which then my
calculations fails.

am I on the right track here or is there a simpler way, for us Andoird-
to-GoogleMapsApi dev people to bound map panning?

thanks
Ori

On Aug 16, 6:26 pm, TreKing treking...@gmail.com wrote:
 On Mon, Aug 16, 2010 at 6:51 AM, oriharel ori.ha...@gmail.com wrote:
  is it possible?

 Probably, assuming you can detect when a scroll happens, which I'm sure you
 can, you can simply check the MapView's current longitude bounds and if it's
 past the threshhold you want to allow, get the MapController() and reset it
 to where your limit is.

 I'll leave the implementation details to the reader =)

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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: Google maps, Overlays and the shadow layer

2010-08-17 Thread oriharel
@Override
public void draw(Canvas canvas, MapView mapView, boolean shadow)
{
if (shadow) {
Paint arcPaint = new Paint();
arcPaint.setARGB(250, 255, 255, 255);
arcPaint.setAntiAlias(true);
arcPaint.setFakeBoldText(true);
arcPaint.setStyle(Paint.Style.STROKE);
arcPaint.setStrokeWidth(2);
arcPaint.setShadowLayer(0.1f, 1.2f, 1.2f, Color.BLACK);
if (_fromLng  _toLng)
{
_drawer = new FlightRouteDrawer(mapView, 
_fromLat, _toLat,
_fromLng, _toLng);
} else
{
_drawer = new FlightRouteDrawer(mapView, 
_toLat, _fromLat,
_toLng, _fromLng);
}
canvas.drawArc(_drawer.getRouteOval(),
_drawer.getRouteStartAngle(), 
_drawer.getRouteSweepAngle(),
false, arcPaint);
}
}

if you're interested in what FlightRouteDrawer is doing, well - it
does all sorts of trigonometric to get a nice arc from point A to
point B.
the fact is when I run this code with if (!shadow) then it draws the
arc.
but this code doesn't draw the arc.

On Aug 16, 8:24 pm, TreKing treking...@gmail.com wrote:
 On Mon, Aug 16, 2010 at 1:57 AM, oriharel ori.ha...@gmail.com wrote:
  What can I do with the shadow layer of the the google maps overlays?

 Anything you want, I would think.

   I tried, naively, to draw something (an arc) only when (shadow == true)
  and got nothing?

 Maybe you did something wrong? Post some code?

  I'm interested in drawing arcs and arc shadows on a map.
  is there a nice google-maps way to do this?

 Probably exactly what you're doing - only correctly =)

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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] Google maps, Overlays and the shadow layer

2010-08-16 Thread oriharel
What can I do with the shadow layer of the the google maps overlays?
I tried, naively, to draw something (an arc) only when (shadow ==
true) and got nothing?

I'm interested in drawing arcs and arc shadows on a map.
is there a nice google-maps way to do this?

thanks,
Ori

-- 
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] Google maps - limit panning between longitudes

2010-08-16 Thread oriharel
Hi,
Im trying to set limits to the map view so the user won't be able to
pan it cyclic.
(when panning to the right, instead of the map will cycle, I want it
to stop).

is it possible?

Ori

-- 
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: Google Maps - MapView - draw a nice flight route between 2 points

2010-08-05 Thread oriharel
ok,
another Q -
is there a good tip on how to display an item's Title in a
ItemizedOverlayOverlayItem?

I don't want to implement the onTap method (remember - lazy). I need
that title drawn upon creation.

thanks.

On Aug 2, 3:17 pm, TreKing treking...@gmail.com wrote:
 On Mon, Aug 2, 2010 at 1:21 AM, oriharel ori.ha...@gmail.com wrote:
  yea, but I'm lazy.

 Good luck on your Android App. I'm sure you will get far with it.

   I'm not interested in figuring out these things.

 Then why did you bother posting a question?

  anyway,
  here's an easy way to learn how to draw curves (found it in other
  sites):

 http://www.tbray.org/ongoing/When/200x/2009/01/02/Android-Draw-a
  -Curved-Line

  enjoy

 OK. But I didn't ask how to draw a curve - you did.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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: Google Maps - MapView - draw a nice flight route between 2 points

2010-08-02 Thread oriharel
yea, but I'm lazy.
I'm not interested in figuring out these things.

anyway,
here's an easy way to learn how to draw curves (found it in other
sites):

http://www.tbray.org/ongoing/When/200x/2009/01/02/Android-Draw-a-Curved-Line

enjoy

On Aug 1, 7:51 pm, TreKing treking...@gmail.com wrote:
 On Sun, Aug 1, 2010 at 5:38 AM, oriharel ori.ha...@gmail.com wrote:
  how can I draw a nice flight route between 2 points on a googlemap's 
  MapView?

 1 - Figure out how to draw a curve using Canvas.
      (NOTE: A beautiful thing about the internet is that you can see the
 source to any web page ... like the one you linked ... which shows exactly
 how they're plotting points on a JavaScript Map ... which shouldn't be too
 hard to port).

 2 - Override one of the various draw methods in MapView or an Overlay to
 draw the curve using the Canvas that's passed in and awesome logic you
 borrowed from the website.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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] Google Maps - MapView - draw a nice flight route between 2 points

2010-08-01 Thread oriharel
Hi,
I wonder,
how can I draw a nice flight route between 2 points on a google map's
MapView?

look at this:
http://maps.forum.nu/gm_flight_path.html

this is exactly what I need.

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] Get current location

2010-07-26 Thread oriharel
How do I get the current location of the phone?
I'm not talking about registering for location updates on the location
manager and waiting for it to update upon change.
I'm talking about get the current position.

thanks!

Ori

-- 
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: Twitter / Facebook source code

2010-07-22 Thread oriharel
yes, this is what I mean

On Jul 20, 1:30 pm, Yi Ling lingyi@gmail.com wrote:
 what does it mean? the source code of twitter/fb's client for android
 platform?

 google would help you, i think.

 2010/7/20 oriharel ori.ha...@gmail.com



  Where can I find the source code of Twitter / Facebook?

  --
  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.comandroid-developers%2Bunsubs 
  cr...@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] Twitter / Facebook source code

2010-07-20 Thread oriharel
Where can I find the source code of Twitter / Facebook?

-- 
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: Google Maps API in Israel

2010-07-18 Thread oriharel
Thanks.

On Jul 14, 12:52 am, Steve Howard ste...@android.com wrote:
 Likely the same as this:

 http://code.google.com/p/gmaps-api-issues/issues/detail?id=664

 http://code.google.com/p/gmaps-api-issues/issues/detail?id=664Steve



 On Tue, Jul 13, 2010 at 1:15 PM, oriharel ori.ha...@gmail.com wrote:
  Can a Googler please answer this one -
  how come I don't see detailed Israel map when I integrate with the
  MapView in my MapActivity?
  I can see just about any other country except Israel.

  thanks,
  Ori

  --
  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.comandroid-developers%2Bunsubs 
  cr...@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] Google Maps API in Israel

2010-07-13 Thread oriharel
Can a Googler please answer this one -
how come I don't see detailed Israel map when I integrate with the
MapView in my MapActivity?
I can see just about any other country except Israel.

thanks,
Ori

-- 
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] Orange rectangle around links in WebView

2010-06-13 Thread oriharel
Hi All,
I have a web view that is loaded with an HTML that contains links (a
ref).
when I switch to another activity (say to another tab in a tab
activity) and then switching back to it, the link is surrounded with
an orange rectangle. also happens in the GoogleAdView which really
makes it impossible to view.

can someone explains this?

thanks,
Ori

-- 
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] How to catch a Done key press from the soft keyboard

2010-06-13 Thread oriharel
Hi,
how do I catch specific key events from the soft keyboard?
specifically I'm interested in the Done key.

thanks,
Ori

-- 
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 duplicate HTML problem

2010-06-05 Thread oriharel
Hi all,
I load a url over the web containing images (their source is another
url).
when then view loads the html, it loads it without the images. after
few milliseconds, the images come along but then the html is redrawn,
and it does so over the previous html, causing it the web view to hold
2 htmls one over the other (very ugly result).

anyone knows why does that happen? how can I avoid that?

thanks,
Ori

-- 
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] How to become a featured app in the Android market

2010-05-31 Thread oriharel
Can you provide with good tips on how to become a featured app in the
market?
my guess is (besides the obvious have tons of unique downloads)

1. Make use of as much as android-only features (multi-tasking, live
folders, widgets, QSB, etc).
2. Keep the active user percentage high.


let's discuss.

-- 
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] How to become a featured app in the Android market

2010-05-31 Thread oriharel
Can you provide with good tips on how to become a featured app in the
market?
my guess is (besides the obvious have tons of unique downloads)

1. Make use of as much as android-only features (multi-tasking, live
folders, widgets, QSB, etc).
2. Keep the active user percentage high.


let's discuss.

-- 
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] How to make the keyboard to show

2010-05-26 Thread oriharel
I read few threads, I'm sorry but none of them works/answers the
simple scenario of:

1. I popup a dialog.
2. The dialog have EditText on it.
3. I want the keyboard to show up (without the need of clicking inside
the edit text).

I tried:

InputMethodManager imm =
(InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);

then I tried both:
imm.showSoftInput(et, InputMethodManager.SHOW_FORCED);

and:
imm.showSoftInputFromInputMethod(et.getWindowToken(),
InputMethodManager.SHOW_FORCED);

please help?

thanks,
Ori

-- 
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] Cursor and rowId

2010-05-17 Thread oriharel
how do get the row ID from a Cursor?

-- 
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] Set Title from a Tab child

2010-05-12 Thread oriharel
Hi,
How do change the title from a child tab?
I'm trying a naive approach (just setTitle(...)) and nothing.

(setTitle(..) from the parent TabActivity does work).

thanks,
Ori

-- 
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: ProgressDialog - how to remove the numbers

2010-05-10 Thread oriharel
relax bibek, I will explain...

since I don't know how to upload screenshots here, I'l do my best to
describe.

about the example - as I said, in the ApiDemos there is a progress
dialog example. look it up.

about the numbers - when the dialog shows, you see the orange progress
bar start running, and underneath it you see 2 sets of numbers:

25% 25/100

these are running numbers as the bar progresses.

I need these to be hidden (at least the 25/100).

Ori

On May 9, 5:37 pm, Kumar Bibek coomar@gmail.com wrote:
 What numbers Which numbers??? Which example    ???

 Thanks and Regards,
 Kumar Bibek

 On May 9, 7:14 pm, oriharel ori.ha...@gmail.com wrote:





  I was following the progress dialog example in the ApiDemos.
  all went great except for one thing - I want to remove the numbers
  that appear underneath the bar (those running numbers that run from 0
  to .getMax().

  couldn't find how to do it.

  anyone?

  Ori

  --
  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 
  athttp://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 
 athttp://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: ProgressDialog - how to remove the numbers

2010-05-10 Thread oriharel
I got an answer that there is no answer.
so I just subclassed, reflected and changed.

On May 10, 10:04 am, oriharel ori.ha...@gmail.com wrote:
 relax bibek, I will explain...

 since I don't know how to upload screenshots here, I'l do my best to
 describe.

 about the example - as I said, in the ApiDemos there is a progress
 dialog example. look it up.

 about the numbers - when the dialog shows, you see the orange progress
 bar start running, and underneath it you see 2 sets of numbers:

 25% 25/100

 these are running numbers as the bar progresses.

 I need these to be hidden (at least the 25/100).

 Ori

 On May 9, 5:37 pm, Kumar Bibek coomar@gmail.com wrote:





  What numbers Which numbers??? Which example    ???

  Thanks and Regards,
  Kumar Bibek

  On May 9, 7:14 pm, oriharel ori.ha...@gmail.com wrote:

   I was following the progress dialog example in the ApiDemos.
   all went great except for one thing - I want to remove the numbers
   that appear underneath the bar (those running numbers that run from 0
   to .getMax().

   couldn't find how to do it.

   anyone?

   Ori

   --
   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 
   athttp://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 
  athttp://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 
 athttp://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] ProgressDialog - how to remove the numbers

2010-05-09 Thread oriharel
I was following the progress dialog example in the ApiDemos.
all went great except for one thing - I want to remove the numbers
that appear underneath the bar (those running numbers that run from 0
to .getMax().

couldn't find how to do it.

anyone?

Ori

-- 
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: Boardroom Projectors

2010-04-27 Thread oriharel
I'm interested in that either...

On Apr 27, 9:17 pm, Tom Opgenorth opgeno...@gmail.com wrote:
 This is probably not the best place to ask this question, but thought
 I would try anyway.

 I'm looking to do an introductory presentation to a local user group
 on Android programming.  I was wondering if there was a way to attach
 or hook-up an ADP1/HTC Dream to projector or something, so that people
 could actually see an application running on a real device, rather
 than the emulator?

 Also, if anybody has some presentations they'd like to share, that
 would be great too.

 Thanks.

 --http://www.opgenorth.net

 --
 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 
 athttp://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] AutoCompleteTextView / ArrayAdapter performance

2010-04-25 Thread oriharel
Hi All!
I have an AutoCompleteTextView which the user can enter a name of an
airport.
the suggestion strings looks like this (for example):

John F. Kennedy (JFK)
New York, United States

I'm using an ArrayAdapterString (following the examples in Android
documentation) and when I construct it, I provide a ListString which
have items of the sort of:
airportName (airportCode)/nairportCity, airportCountry

the list size is 4,244.
my problem is that I'm getting a very poor performance from the view.
I'm talking 5-7 seconds after the user entering a letter (I set
threshold to '1').

also my problem is that I want the search to be a regular expression -
i.e., not having the user write the initial letter of the airport name
but any characters sequence that exist in the string. does the view
support that?

thanks!
Ori

-- 
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] TabActivity and startAcitivtyForResult

2010-04-13 Thread oriharel
can make the TabActivity start it's childs activities for result?

I need it because I can't make result code from a tab to propagate all
the way up in the chain (it's reset in the TabActivity)

thanks,
Ori

-- 
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

To unsubscribe, reply using remove me as the subject.


[android-developers] ListView and Scroll

2010-04-13 Thread oriharel
I need to show a list that is scrolled to a specific item.

how can I do it?

Ori

-- 
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

To unsubscribe, reply using remove me as the subject.


[android-developers] Installing apps to Nexus One device

2010-03-31 Thread oriharel
Hi,
Im running Win XP 32 bit, SP3.
I have Nexus one device. and I develop on Eclipse.
I'm trying to install my app to test it on a real device - my own
Nexus one.

after downloading and installing the USB driver - the devices charges
just fine. after I mount the USB storage (from the device) I can even
see the phone's file system from the computer (thus able to move files
in and out of the SD card).

however - adb devices command returns an empty list.
also, Eclipse Device Chooser doesn't show the device (it shows
emulators I previously configured).

anyone has an answer?

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Installing apps to Nexus One device

2010-03-31 Thread oriharel
Hi,
Im running Win XP 32 bit, SP3.
I have Nexus one device. and I develop on Eclipse.
I'm trying to install my app to test it on a real device - my own
Nexus one.

after downloading and installing the USB driver - the devices charges
just fine. after I mount the USB storage (from the device) I can even
see the phone's file system from the computer (thus able to move files
in and out of the SD card).

however - adb devices command returns an empty list.
also, Eclipse Device Chooser doesn't show the device (it shows
emulators I previously configured).

anyone has an answer?

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Installing apps to Nexus One device

2010-03-31 Thread oriharel
it was turned on (even before the first time I installed the driver)
still doesn't work


On Mar 31, 1:45 pm, Kumar Bibek coomar@gmail.com wrote:
 You need to turn on USB Debugging setting on your phone. That should
 work.

 Thanks and Regards,
 Kumar Bibek

 On Mar 31, 11:47 am, oriharel ori.ha...@gmail.com wrote:



  Hi,
  Im running Win XP 32 bit, SP3.
  I have Nexus one device. and I develop on Eclipse.
  I'm trying to install my app to test it on a real device - my own
  Nexus one.

  after downloading and installing the USB driver - the devices charges
  just fine. after I mount the USB storage (from the device) I can even
  see the phone's file system from the computer (thus able to move files
  in and out of the SD card).

  however - adb devices command returns an empty list.
  also, Eclipse Device Chooser doesn't show the device (it shows
  emulators I previously configured).

  anyone has an answer?

  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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Installing apps to Nexus One device

2010-03-31 Thread oriharel
IT WORKS
Thanks (again) Mark!

On Mar 31, 2:47 pm, Mark Murphy mmur...@commonsware.com wrote:
 oriharel wrote:
  it was turned on (even before the first time I installed the driver)
  still doesn't work

 adb kill-server
 adb start-server
 adb devices

 See if that helps. If not, reboot and see if that helps.

 If not, plug in your N1 and see if you see any evidence that Windows is
 actually recognizing it and associating the driver to it.

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

 Android App Developer Books:http://commonsware.com/books

-- 
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

To unsubscribe, reply using remove me as the subject.


[android-developers] Launch Google Maps app

2010-03-31 Thread oriharel
Hi,
I'm trying to launch Google maps from my application.
I'm using:

GeoPoint center = _mapView.getMapCenter();
Uri uri = Uri.parse(geo:+center.getLatitudeE6()
+,+center.getLongitudeE6());
Log.d(LOG_TAG, Launching Google Maps with Uri: (+uri+));
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);


I tested it with a map centered on somewhere in NYC, however Google
maps opens not centered there.
I followed Android Developer's site reference to use:
geo:latitude,longitude pattern.

the log that you see prints:
03-31 13:01:20.126: DEBUG/CarMapActivity(248): Launching Google Maps
with Uri: (geo:40763500,-73979305)

anyone knows what can be the problem?

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Google Maps icons

2010-03-28 Thread oriharel
I want to place markers on the map.
I want to use the standard Google Maps icons for markers.
how do I use them? I don't want to create my own icons.
I'm developing for Android.

in the documentation they tell me to create a class that overrides
ItemizedOverlayOverlayItem but in the constructor I'm asked to
provide a drawable object.

how do I point to the standard Google Maps ones?
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: Google Maps icons

2010-03-28 Thread oriharel
Thanks Mark.

On Mar 28, 5:27 pm, Mark Murphy mmur...@commonsware.com wrote:
 oriharel wrote:
  I want to place markers on the map.
  I want to use the standard Google Maps icons for markers.
  how do I use them? I don't want to create my own icons.
  I'm developing for Android.

 Those icons are not available from the Google Maps add-on for Android --
 or, at least, they are not documented. Perhaps there is a way you can
 obtain them for legal download through Google Maps for the Web.

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

 Android Development Wiki:http://wiki.andmob.org

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: Google Maps icons

2010-03-28 Thread oriharel
However,
isn't it weird that those are available outside of Android (regular
use of Google API) but not from the Google-owned Android platform?

On Mar 28, 5:33 pm, oriharel ori.ha...@gmail.com wrote:
 Thanks Mark.

 On Mar 28, 5:27 pm, Mark Murphy mmur...@commonsware.com wrote:



  oriharel wrote:
   I want to place markers on the map.
   I want to use the standard Google Maps icons for markers.
   how do I use them? I don't want to create my own icons.
   I'm developing for Android.

  Those icons are not available from the Google Maps add-on for Android --
  or, at least, they are not documented. Perhaps there is a way you can
  obtain them for legal download through Google Maps for the Web.

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

  Android Development Wiki:http://wiki.andmob.org

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Problems with ViewGroup.addView()

2010-03-25 Thread oriharel
this is my code:

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);


TextView t = new TextView(this);
t.setText(Ori);
TextView t2 = new TextView(this);
t.setText(Ori2);

LinearLayout layout = (LinearLayout)
findViewById(R.id.mainLayout);
layout.addView(t);
layout.addView(t2);

}

However, all I see in screen is:
Ori2

Why doesn't the Ori text shows up?

thanks,
Ori

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] ActivityGroup and LocalActivityManager

2010-03-24 Thread oriharel
Hi All!
I need a to create a layout that holds to other layouts.
each one of the layout should be populated by a different activity.

I've done some research and came across the fact that I need to
implement an ActivityGroup and use it's LocalActivityManager.
problem is that I don't understand the View hierarchy in such a
situation. a naive attempt to find the view of the parent window
(simple findViewById) fails (returns NULL).

I can't find any examples on the web.
have anyone done it before?

thanks,
Ori

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: ActivityGroup and LocalActivityManager

2010-03-24 Thread oriharel
ok,
someone here wrote a nice web activity that I want to use.
however, I want to use it differently, say adding an area on the top
that will be populated by news feed or adds.

his activity takes over the entire layout it resides in, and doesn't
support adding another layout inside.

so I want an activity group that will hold that news feed activity
and the implemented web activity.



On Mar 24, 5:57 pm, Mark Murphy mmur...@commonsware.com wrote:
 oriharel wrote:
  I need a to create a layout that holds to other layouts.
  each one of the layout should be populated by a different activity.

 Why?

 What do you think you gain versus just using ordinary Views?

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

 _Beginning Android 2_ from Apress Now 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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: ActivityGroup and LocalActivityManager

2010-03-24 Thread oriharel

So when should one extend tha ActivityGroup? Never?


On Mar 24, 4:07 pm, Mark Murphy mmur...@commonsware.com wrote:
 oriharel wrote:
  ok,
  someone here wrote a nice web activity that I want to use.
  however, I want to use it differently, say adding an area on the top
  that will be populated by news feed or adds.

  his activity takes over the entire layout it resides in, and doesn't
  support adding another layout inside.

  so I want an activity group that will hold that news feed activity
  and the implemented web activity.

 If you have the source code to the nice web activity, fix it to work
 the way you want, and skip all this ActivityGroup stuff.

 If you do not have the source code, and are trying to use the other
 app's APK, you will not be able to integrate the nice web activity
 into your application.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: Updating UI in one activity from another activity

2010-03-22 Thread oriharel
Intents?

On Mar 22, 6:50 pm, Jonathan jon.aposto...@gmail.com wrote:
 I have an activity (Activity A) that simply shows a list that a user
 can pick from.

 In a separate activity (Activity B) this list can be manipulated (ie:
 add, delete).  What's the best way to have an interaction in Activity
 B tell Activity A to refresh its list so when the user returns to
 Activity A the list is up to date?

 Is this a situation where a BroadcastReceiver makes sense?  Should the
 list be managed by a service instead?  Other thoughts?

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.