[android-developers] Re: LocationManager crashes app, every time

2008-04-02 Thread guzarva



On Apr 3, 7:09 am, "Harsh Jain" <[EMAIL PROTECTED]> wrote:
> are you running this in a second emulator by any chance ?
>
>
>
> On Thu, Apr 3, 2008 at 5:35 AM, JoeB <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Any advice on this would help--I can never get a provider from
> > LocationManager (there is supposed to be a mock one at least, and I
> > can see the data for it by using "adb shell").  I also can't get
> > locations or anything else.  Any of the following statements crash the
> > application, every time (take your pick, they all crash it).
>
> >    LocationProvider mockProvider = locMgr.getProvider("gps");
> >    locMgr.getBestProvider(CRITERIA);
> >    locMgr.requestUpdates(CRITERIA, LOCATION_PERIOD,
> > LOCATION_ACCURACY, notifyIntent);
>
> > Oh, and this
> >     List providers = locMgr.getProviders();
> > ...doesn't crash, but returns an empty list.
>
> > This is the Criteria setup btw:
>
> >        private static final Criteria CRITERIA;
> >        static{
> >                CRITERIA = new Criteria();
> >                CRITERIA.setSpeedRequired(false);
> >                CRITERIA.setAltitudeRequired(false);
> >                CRITERIA.setBearingRequired(false);
> >                CRITERIA.setCostAllowed(false);
> >        }
>
> > I also have the following permissions defined in my manifest (I added
> > all the location-related ones, just in case that was the issue):
>
> > 
> >  > android:name="android.permission.ACCESS_ASSISTED_GPS" />
> > 
> > 
> > 
>
> > I don't get any kind of error message in the console, but I also can't
> > run "adb debug" from command line anymore since moving to m5-rc15 for
> > unknown reason.  It always just displays "error: closed", whether I
> > run the emulator stand-alone or from eclipse.  I know the
> > LocationManager calls are causing the crash by tracing w/ debugger.
>
> > Any tips on why this is happening, or why I can no longer get any
> > debug information, would be greatly appreciated.  By the way,
> > everything described above behaves exactly the same way with either m5-
> > rc14 or m5-rc15 (I tried switching back to no avail).- 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: LocationManager crashes app, every time

2008-04-02 Thread guzarva



On Apr 3, 7:05 am, JoeB <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Any advice on this would help--I can never get a provider from
> LocationManager (there is supposed to be a mock one at least, and I
> can see the data for it by using "adb shell").  I also can't get
> locations or anything else.  Any of the following statements crash the
> application, every time (take your pick, they all crash it).
>
>     LocationProvider mockProvider = locMgr.getProvider("gps");
>     locMgr.getBestProvider(CRITERIA);
>     locMgr.requestUpdates(CRITERIA, LOCATION_PERIOD,
> LOCATION_ACCURACY, notifyIntent);
>
> Oh, and this
>      List providers = locMgr.getProviders();
> ...doesn't crash, but returns an empty list.
>
> This is the Criteria setup btw:
>
>         private static final Criteria CRITERIA;
>         static{
>                 CRITERIA = new Criteria();
>                 CRITERIA.setSpeedRequired(false);
>                 CRITERIA.setAltitudeRequired(false);
>                 CRITERIA.setBearingRequired(false);
>                 CRITERIA.setCostAllowed(false);
>         }
>
> I also have the following permissions defined in my manifest (I added
> all the location-related ones, just in case that was the issue):
>
> 
>  android:name="android.permission.ACCESS_ASSISTED_GPS" />
> 
> 
> 
>
> I don't get any kind of error message in the console, but I also can't
> run "adb debug" from command line anymore since moving to m5-rc15 for
> unknown reason.  It always just displays "error: closed", whether I
> run the emulator stand-alone or from eclipse.  I know the
> LocationManager calls are causing the crash by tracing w/ debugger.
>
> Any tips on why this is happening, or why I can no longer get any
> debug information, would be greatly appreciated.  By the way,
> everything described above behaves exactly the same way with either m5-
> rc14 or m5-rc15 (I tried switching back to no avail).
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: WebView History use?

2008-04-02 Thread guzarva



On Apr 3, 4:29 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I'm working on a custom html browser using WebView.loadData().  I'm
> trying to implement a back button feature, but it seems that loadData
> doesn't update the history, and I have no way to do it myself.
>
> private WebView wv;
> private boolean goBack = false;
>
> public void onCreate(Bundle icicle)
> {
>   super.onCreate(icicle);
>   wv = (WebView)findViewById(R.id.record_html);
>
>   wv.setOnKeyListener(this);
>   wv.loadData("Test!", "text/html",
> "utf-8");
>
> }
>
> boolean onKey(View v, int keyCode, KeyEvent event)
> {
>   if (keyCode == KeyEvent.KEYCODE_BACK && event.getAction() ==
> KeyEvent.ACTION_DOWN)
>   {
>     if (goBack)
>     {
>       if (wv.canGoBack())
>       {
>         wv.goBack();
>         goBack = !goBack;
>         return true;
>       }
>     }
>     else
>     {
>       goBack = !goBack;
>       wv.loadData("Test 2!","text/html",
> "utf-8");
>       return true;
>     }
>   }
>   return false;
>
> }
>
> I would expect this to first load "Test!".  When I press the back
> button, it loads "Test2!" (this part works), and sets goBack to true.
> Then I press the back button again, and it sees that it can goBack,
> and loads "Test!" again.  Instead, canGoBack() returns false.
>
> I've tried adding a WebViewClient and calling doUpdateVisitedHistory,
> but that is asking for a URL and doesn't accept data.
>
> Is there another way of doing this, or am I going to have to create a
> list of HTML to cycle through?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: making a http post call from an andriod app to web app

2008-04-02 Thread guzarva



On Apr 3, 4:24 am, yizhao <[EMAIL PROTECTED]> wrote:
> I posted a similar question in the beginner group but didn't get what
> I was looking for so I'm trying my luck here : ).
>
> I have a simple android app.  In one of the Activity's onCreate()
> method, I have some code to make a http post (this code is tested in
> an independent java program and works):
>
>             URL url = new URL("http://10.0.2.2:8080/GoogleCamAF/
> welcome.action");
>             URLConnection conn = url.openConnection();
>             conn.setDoOutput(true);
>             OutputStreamWriter wr = new
> OutputStreamWriter(conn.getOutputStream());
>             wr.write(""); // sends a blank string
>             wr.flush();
>
> For some reason (I'm not sure if its because I didn't give the app
> enough permission to access the internet, or something else I didn't
> do), this piece of code doesn't work!
>
> I am able to use Android's browser to access this link fine. Does
> anyone know what I'm doing wrong here?
>
> 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Can Spinner OnItemSelectedListener use View's drawable state to detect drop-down?

2008-04-02 Thread guzarva



On Apr 3, 5:33 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> Hi Todd,
>
> Its not clear to me what you are trying to do, I read twice through your
> post, but I couldn't figure it out.
>
> Thanks,
> Megha
>
>
>
> On Wed, Apr 2, 2008 at 1:57 PM, lee.t <[EMAIL PROTECTED]> wrote:
>
> > Seems there have been a lot of questions regarding the selection model
> > for the spinner (ie - no OnItemClicked, only OnItemSelected listeners,
> > making it difficult to use callbacks which respond to 'final' item
> > selection and not every 'browsing' selection in between). Most
> > proposed solutions to this involve catching key events etc... has
> > anyone come up with anything better than this?
>
> > As I sit here (without my eclipse IDE, so I can't try it myself :( )
> > I'm wondering if it isn't possible to detect the state of the spinner
> > (ie - expanded as drop-down, vs collapsed 'left-right/up-down'
> > selection). I'm assuming we can do this by taking advantage of the
> > 'state' methods available for the View class and the
> > 'state_dropdown_showing' constant mentioned in issue 330 (are these
> > applicable/supported in this instance?)
>
> > Presumably we might have something like this for a Spinner object
> > named 's':
>
> > //         s.setOnItemSelectedListener(new
> > Spinner.OnItemSelectedListener(){
> > //                public void onItemSelected(AdapterView parent, View
> > v,  int position, long id) {
> > //                    int[] state = v.getDrawableState();
> > //                     for(int i=0; i > //                        if(state[i]==R.attr.stat_dropdown_showing){
> > //                            // just bail because we want to ignore
> > this 'browsing' selection...
> > //                            return;
> > //                        }
> > //                    }
> > //                    // assuming that we're not showing a dropdown,
> > do callback on fired selection
> > //                    // (presumably this is a 'left-right/keyup-
> > keydown' selection)
> > //                    doCallback();
> > //                 }
> > //
> > //                 public void onNothingSelected(AdapterView arg0) {
> > //                     // do nothing
> > //                     }
> > //                 });
>
> > Has anybody tried this? I'd be curious to know if it might work...
> > I'm assuming that there's a risk here of losing the selection we're
> > actually trying to get while the dropdown is open since presumably the
> > OnItemSelected event fires while the View's state has the drop-down
> > showing, even for the final selection... but I think that's wouldn't
> > be too difficult to overcome if the rest of it will work...
>
> > Any Android wizards out there who care to comment on the idea? Am I
> > out in left field or does this have a chance of working?
> > Suggestions welcome...
>
> > Thanks
> > Todd- 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Can Spinner OnItemSelectedListener use View's drawable state to detect drop-down?

2008-04-02 Thread guzarva



On Apr 3, 3:57 am, "lee.t" <[EMAIL PROTECTED]> wrote:
> Seems there have been a lot of questions regarding the selection model
> for the spinner (ie - no OnItemClicked, only OnItemSelected listeners,
> making it difficult to use callbacks which respond to 'final' item
> selection and not every 'browsing' selection in between). Most
> proposed solutions to this involve catching key events etc... has
> anyone come up with anything better than this?
>
> As I sit here (without my eclipse IDE, so I can't try it myself :( )
> I'm wondering if it isn't possible to detect the state of the spinner
> (ie - expanded as drop-down, vs collapsed 'left-right/up-down'
> selection). I'm assuming we can do this by taking advantage of the
> 'state' methods available for the View class and the
> 'state_dropdown_showing' constant mentioned in issue 330 (are these
> applicable/supported in this instance?)
>
> Presumably we might have something like this for a Spinner object
> named 's':
>
> //         s.setOnItemSelectedListener(new
> Spinner.OnItemSelectedListener(){
> //                public void onItemSelected(AdapterView parent, View
> v,  int position, long id) {
> //                    int[] state = v.getDrawableState();
> //                     for(int i=0; i //                        if(state[i]==R.attr.stat_dropdown_showing){
> //                            // just bail because we want to ignore
> this 'browsing' selection...
> //                            return;
> //                        }
> //                    }
> //                    // assuming that we're not showing a dropdown,
> do callback on fired selection
> //                    // (presumably this is a 'left-right/keyup-
> keydown' selection)
> //                    doCallback();
> //                 }
> //
> //                 public void onNothingSelected(AdapterView arg0) {
> //                     // do nothing
> //                     }
> //                 });
>
> Has anybody tried this? I'd be curious to know if it might work...
> I'm assuming that there's a risk here of losing the selection we're
> actually trying to get while the dropdown is open since presumably the
> OnItemSelected event fires while the View's state has the drop-down
> showing, even for the final selection... but I think that's wouldn't
> be too difficult to overcome if the rest of it will work...
>
> Any Android wizards out there who care to comment on the idea? Am I
> out in left field or does this have a chance of working?
> Suggestions welcome...
>
> Thanks
> Todd
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SDK Bug - ViewAnimator Crash

2008-04-02 Thread guzarva



On Apr 3, 3:31 am, peter <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've noticed that the ViewAnimator class will often crash with the
> message:
>
> "Application Error:
> [application]
>
> An error has occured in [application]. width and height must be > 0."
>
> I am fairly confident this is a problem with the SDK.  It appears to
> me that the problem is easier to reproduce under load, which is
> similar to this person's 
> findings:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> Can anybody from Google confirm this is an bug in the SDK?  I have
> submitted a bug but have yet to hear a response and am a bit concerned
> because my submission crashes from use of this class.
>
> Thanks,
> Peter
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to make a View always display on Screen?

2008-04-02 Thread guzarva



On Apr 3, 3:28 am, Android-Berry <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I want to create a view stick with screen,
> what I means is like status bar, but is always at the bottom of
> screen,
>
> for example, Create a view and it will show at the bottom of the
> screen,
>
> maybe the screen holds tabview or linearlayout view that holds lots of
> view, which is needed to scroll up/down/right/left to browser all the
> view,
>
> No matter how to do, the Stick-view always is displayed on the bottom
> of the screen.
>
> 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Monitor live objects in android app !!!

2008-04-02 Thread guzarva



On Apr 3, 3:56 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> The message of application not responding is not related to the memory
> usage, but to the processor usage of you application. All processor
> intensive tasks should be done in a seperate thread.
>
> On Apr 2, 9:45 pm, Niket Anand <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
>
> > I have been facing one problem while running the android app for
> > sometime. After playing with app for sometime, I usually see
> > application not responding messages, eventhough I am taking care of
> > not creating large number of objects.
>
> > Can anyone suggest what is the exact problem which led to this "not
> > responding message" everytime? how to deal this? how to take care in
> > app?
>
> > Can anyone tell me how to monitor the total live object in memory as
> > right now I am seeing some info related to GC freeing number of
> > objects etc but not telling the current number of live objects, free
> > memory etc...
>
> > Thanks for your help.
> > Niket- 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Monitor live objects in android app !!!

2008-04-02 Thread guzarva



On Apr 3, 2:45 am, Niket Anand <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have been facing one problem while running the android app for
> sometime. After playing with app for sometime, I usually see
> application not responding messages, eventhough I am taking care of
> not creating large number of objects.
>
> Can anyone suggest what is the exact problem which led to this "not
> responding message" everytime? how to deal this? how to take care in
> app?
>
> Can anyone tell me how to monitor the total live object in memory as
> right now I am seeing some info related to GC freeing number of
> objects etc but not telling the current number of live objects, free
> memory etc...
>
> Thanks for your help.
> Niket
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Display Context menu

2008-04-02 Thread guzarva



On Apr 3, 2:38 am, Android-Berry <[EMAIL PROTECTED]> wrote:
> Hi There,
>
> If there is particular view with some specifical menu,
>
> When pushing menu, if focus is on that view, it will display
> specifical menu, if not, it will not show up.
>
> How to implement this function?
>
> 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapActivity onTouchEvent

2008-04-02 Thread guzarva



On Apr 3, 7:45 am, Alex B <[EMAIL PROTECTED]> wrote:
> Indeed, you are right.  Using dispathTouchEvent worked.  Thank you
> kindly!
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapActivity onTouchEvent

2008-04-02 Thread guzarva



On Apr 3, 2:37 am, Alex B <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Has anyone managed to override onTouchEvent within MapActivity?  I
> know that overriding onTouchEvent in MapView is possible, and I have
> done that, but I need to do it in MapActivity.  I see it in the API in
> the section "Methods inherited from class android.app.Activity".  I
> have written the code, and it complies, but the event is not
> honoured.  Please let advise me if you have succeeded in this.
>
> Thank you.
>
> @Override
> public boolean onTouchEvent(MotionEvent me)
> {
>     // do stuff
>     return true;
>
>
>
> }- 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapActivity onTouchEvent

2008-04-02 Thread guzarva



On Apr 3, 7:58 am, Alex B <[EMAIL PROTECTED]> wrote:
> Sorry, I meant dispatchTouchEvent. I'm correcting it in case anyone
> searches for that keyword.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapActivity onTouchEvent

2008-04-02 Thread guzarva



On Apr 3, 4:20 am, wonderoid <[EMAIL PROTECTED]> wrote:
> You could try overriding the dispathTouchEvent method, i think it's
> called before onTouchEvent
>
> On 2 Nisan, 22:37, Alex B <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > Has anyone managed to override onTouchEvent within MapActivity?  I
> > know that overriding onTouchEvent in MapView is possible, and I have
> > done that, but I need to do it in MapActivity.  I see it in the API in
> > the section "Methods inherited from class android.app.Activity".  I
> > have written the code, and it complies, but the event is not
> > honoured.  Please let advise me if you have succeeded in this.
>
> > Thank you.
>
> > @Override
> > public boolean onTouchEvent(MotionEvent me)
> > {
> >     // do stuff
> >     return true;
>
> > }- 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Line separator (between views/controls on activity page)

2008-04-02 Thread guzarva



On Apr 3, 5:59 am, Ram <[EMAIL PROTECTED]> wrote:
> Thanks Romain guy. I'll go with your suggestion
>
> Btw Harish, ListView.setDivider sets the divider between individual
> lines within the listview and wouldn't be applicable to a separator
> between a listview and other controls.
>
> On Apr 2, 12:52 pm, "Harsh Jain" <[EMAIL PROTECTED]> wrote:
>
>
>
> > You can do a ListView.setDivider(Drawable d). or ListView.setDividerHeight.
>
> > On Thu, Apr 3, 2008 at 1:00 AM, Romain Guy <[EMAIL PROTECTED]> wrote:
>
> > > It's actually pretty easy. Just use a View and give it a small height.
> > > For instance:
>
> > >  > >  android:layout_width="fill_parent"
> > >  android:layout_height="2dip"
> > >  android:background="#" />
>
> > > On Wed, Apr 2, 2008 at 12:28 PM, Ram <[EMAIL PROTECTED]> wrote:
>
> > > >  Hi, I have a somewhat simple UI question.
>
> > > >  I'd like to draw a clear separator (a single line or double-edged
> > > >  line) between a button and a listview.
>
> > > >  One way to draw the separator might be to place a custom view
> > > >  inbetween the two controls (and implement the custom view to draw a
> > > >  line).
> > > >  However, I'm guessing that the Android apis might offer a better way
> > > >  to draw a separator on the page.
>
> > > >  Does any have comments on alternatives to implementing a simple custom
> > > >  LineView to separate the controls.
>
> > > --
> > > Romain Guy
> > >www.curious-creature.org-Hide quoted text -
>
> > - Show quoted text -- 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Line separator (between views/controls on activity page)

2008-04-02 Thread guzarva



On Apr 3, 2:52 am, "Harsh Jain" <[EMAIL PROTECTED]> wrote:
> You can do a ListView.setDivider(Drawable d). or ListView.setDividerHeight.
>
>
>
> On Thu, Apr 3, 2008 at 1:00 AM, Romain Guy <[EMAIL PROTECTED]> wrote:
>
> > It's actually pretty easy. Just use a View and give it a small height.
> > For instance:
>
> >  >  android:layout_width="fill_parent"
> >  android:layout_height="2dip"
> >  android:background="#" />
>
> > On Wed, Apr 2, 2008 at 12:28 PM, Ram <[EMAIL PROTECTED]> wrote:
>
> > >  Hi, I have a somewhat simple UI question.
>
> > >  I'd like to draw a clear separator (a single line or double-edged
> > >  line) between a button and a listview.
>
> > >  One way to draw the separator might be to place a custom view
> > >  inbetween the two controls (and implement the custom view to draw a
> > >  line).
> > >  However, I'm guessing that the Android apis might offer a better way
> > >  to draw a separator on the page.
>
> > >  Does any have comments on alternatives to implementing a simple custom
> > >  LineView to separate the controls.
>
> > --
> > Romain Guy
> >www.curious-creature.org- 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Line separator (between views/controls on activity page)

2008-04-02 Thread guzarva



On Apr 3, 6:06 am, "Harsh Jain" <[EMAIL PROTECTED]> wrote:
> my bad i didnt read ur posting properly.
>
>
>
> On Thu, Apr 3, 2008 at 4:29 AM, Ram <[EMAIL PROTECTED]> wrote:
>
> > Thanks Romain guy. I'll go with your suggestion
>
> > Btw Harish, ListView.setDivider sets the divider between individual
> > lines within the listview and wouldn't be applicable to a separator
> > between a listview and other controls.
>
> > On Apr 2, 12:52 pm, "Harsh Jain" <[EMAIL PROTECTED]> wrote:
> > > You can do a ListView.setDivider(Drawable d). or
> > ListView.setDividerHeight.
>
> > > On Thu, Apr 3, 2008 at 1:00 AM, Romain Guy <[EMAIL PROTECTED]> wrote:
>
> > > > It's actually pretty easy. Just use a View and give it a small height.
> > > > For instance:
>
> > > >  > > >  android:layout_width="fill_parent"
> > > >  android:layout_height="2dip"
> > > >  android:background="#" />
>
> > > > On Wed, Apr 2, 2008 at 12:28 PM, Ram <[EMAIL PROTECTED]> wrote:
>
> > > > >  Hi, I have a somewhat simple UI question.
>
> > > > >  I'd like to draw a clear separator (a single line or double-edged
> > > > >  line) between a button and a listview.
>
> > > > >  One way to draw the separator might be to place a custom view
> > > > >  inbetween the two controls (and implement the custom view to draw a
> > > > >  line).
> > > > >  However, I'm guessing that the Android apis might offer a better
> > way
> > > > >  to draw a separator on the page.
>
> > > > >  Does any have comments on alternatives to implementing a simple
> > custom
> > > > >  LineView to separate the controls.
>
> > > > --
> > > > Romain Guy
> > > >www.curious-creature.org-Hide quoted text -
>
> > > - Show quoted text -- 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ListView - make no item focused on startup?

2008-04-02 Thread guzarva



On Apr 3, 1:40 am, Mark Wyszomierski <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In my ListView, the first list item always gets selected. Is there a
> way to just have NO item in the listview selected at startup?
> Something like setSelection(-1)?
>
> 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: efficiency question: ViewInflate used for rows of a listview

2008-04-02 Thread guzarva



On Apr 3, 1:35 am, Craig <[EMAIL PROTECTED]> wrote:
> Is there a more efficient way to create rows for a listview other than
> to use ViewInflate over and over?  Is there much of a performance gain
> by creating the views programmatically rather than in xml (although I
> do perfer the maintainability of the xml approach)?  Since I am
> inflating the same definision over and over again can I do the inflate
> once and somehow clone the result?  Or is this not practical since the
> xml definision is already optimized for inflation during compile
> time?  NOTE: I am already skipping the inflate if an old row's view is
> passed in to the getview method.
>
> I am looking into this because the screens that take long to bring up
> (with there lists filled) spend 95% of their time inflating the views
> for these rows (4.5 seconds for approx 20 rows according to the
> profiler)
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Ability to have chapters in video files

2008-04-02 Thread guzarva



On Apr 3, 12:10 am, Cheryl Sedota <[EMAIL PROTECTED]> wrote:
> iMovie/iTunes gives users the ability to mark chapters in their video
> files.  Will Android's media player or content provider expose an API
> for obtaining chapter info/metadata in the future?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: web service

2008-04-02 Thread guzarva



On Apr 2, 10:57 pm, nEgaTivo <[EMAIL PROTECTED]> wrote:
> Guys,
>
> How can I connect with a web service???
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: JPEG Byte Array in a WebView

2008-04-02 Thread guzarva



On Apr 2, 11:24 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> After hacking around a bit, I found out what the issue is.  My base64
> string being sent is correct; I test this by directly encoding the
> base64 string into html using  where the complete jpeg is embedded in base64.  I tested
> the Base64 string I'm sending to the webview in firefox and it worked.
>
> The WebView isn't loading base64 image/jpeg's properly, but if I embed
> the base64 string into the html, it will show up properly.
>
> Hacky, but it works for now.
>
> On Apr 2, 11:34 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>
>
> > I have a byte array storing a JPEG that I'm trying to display in a
> > WebView using WebView.loadData(String, mime, encoding), but I can't
> > seem to get it to work properly.  I've tried reading it in as a basic
> > string in ISO-8859-1, and in Base64 (using
> > org.apache.commons.codec.binary.Base64, since there doesn't seem to be
> > a Base64 encoder in android although they claim there's one in the
> > android.util package).  My code:
>
> > byte[] imagedata = new byte[jpeg_size];
> > System.arraycopy(binary_file, offset, imagedata, 0, jpeg_size);
> > try
> > {
> >   byte[] encodedData = Base64.encodeBase64(imagedata);
> >   String imageString = new String(encodedData);
> >   wv.loadData(imageString, "image/jpeg", "base64");}
>
> > catch (Exception e)
> > {
> >   Log.e("error", e.toString());
>
> > }
>
> > I've analyzed the byte array that imagedata contains, and it's
> > starting with the standard jpeg start (FF D8 FF E0 00 10), followed by
> > 'JFIF', so I'm pretty sure it's not an error in the binary_file or in
> > the imagedata.  However, my webview is only displaying a blue "X" (a
> > broken image).
>
> > Anyone have any ideas?- 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How can I determine if app is running on the emulator or a device.

2008-04-02 Thread guzarva



On Apr 2, 11:50 pm, Agus <[EMAIL PROTECTED]> wrote:
> correction:
> /lib/ddms.bat
>
>
>
> On Wed, Apr 2, 2008 at 12:49 PM, Agus <[EMAIL PROTECTED]> wrote:
> > from the dalvik debug monitor
> >  run ddms.exe in /lib/tools directory
>
> >  On Wed, Apr 2, 2008 at 11:27 AM, Brendan <[EMAIL PROTECTED]> wrote:
>
> >  >  Is there someway in code to tell if an application is running on the
> >  >  emulator, on the device. I can't see how it coul dbe checked. Maybe
> >  >  there is something in SystemProperties? If not, it would be a useful
> >  >  extra flag to have available in a future version of the SDK.- 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: commitUpdates with ContentProvider.update / ContentProvider.delete issue/misunderstanding?

2008-04-02 Thread guzarva



On Apr 2, 10:26 pm, "Carl H." <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am trying to write logs for ContentProvided data is created, updated
> and deleted. Thus I added Log.i(MYLOG, "update") in my ContentProvider
> class as follow:
>
>     @Override
>     public int update(Uri url, ContentValues values, String where,
>             String[] whereArgs)
>     {
>         Log.i("MyLog", "update");
> ...
>
> }
>
> The above does not seem to be called... Ever... I tryed to debug as
> well. Same result the update method seems to never be called
>
> Anybody else experiencing the same problem?
> I take it that Cursor.commitUpdates() should call
> ContentProvider.update()?
>
> Thanks,
> Carl
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to get pictures files?

2008-04-02 Thread guzarva



On Apr 3, 12:39 am, "Dan U." <[EMAIL PROTECTED]> wrote:
> I believe where/how they are stored is really up to the person writing
> the app that uses the camera. My guess is that apps will (hopefully)
> provide content providers to access them.
>
> On Apr 2, 6:38 am, "arthur" <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > I am developing the application in which I need access to the picture files
> > that were shot in camera device by user.
>
> > But as far as I know there is not camera device on Android yet.
>
> > I don't know if I will have read access to a folder where the pictures from
> > camera will be placed?
>
> > How can I get be notified about camera events and where the pictures will be
> > placed?
>
> > Best regards,
>
> > Arthur.- 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Unable to set the image on an ImageView in code

2008-04-02 Thread guzarva



On Apr 2, 9:04 pm, xingye <[EMAIL PROTECTED]> wrote:
> My code
>
> ImageView iv =
> (ImageView)convertView.findViewById(R.id.image);
> //  iv.setImageResource(R.drawable.badge);
> Uri uri = Uri.parse("http://www.yexing.org/
> image.axd?
> picture=browse.png");
>
> //  iv.setImageURI(uri);
> //  Drawable drawable =
> Drawable.createFromPath(uri.getPath());
> try {
> URL url = new 
> URL("http://www.yexing.org/image.axd?
> picture=browse.png");
> InputStream is = url.openStream();
> Drawable drawable =
> Drawable.createFromStream(is, "none");
> iv.setImageDrawable(drawable);
> } catch(Exception e) {
> Log.e(LOG_TAG, "load image error! \n"
> + e.toString());
> }
>
> On 4月2日, 上午9时19分, David Given <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm trying to programmatically set the image on an ImageView. (Part of a
> > SimpleCursorAdapter binding function.) I'm finding that the image never
> > appears to show up.
>
> > While this behaviour appears if I call setImageURI(), I also see it if I
> > break things down as follows:
>
> > ImageView iv = (ImageView) view;
> > String path = getApplication().getFilesDir().getAbsolutePath();
> > InputStream is = new FileInputStream(path + "/icon.png");
> > Drawable icon = new BitmapDrawable(is);
> > Log.i("Fnord", "width="+icon.getIntrinsicWidth()+
> >  " height="+icon.getIntrinsicHeight());
> > iv.setImageDrawable(icon);
>
> > I'm getting sensible tracing, indicating that the image has loaded
> > correctly, and iv.setImageDrawable() appears to succeed --- but nothing
> > happens. The ImageView doesn't even change size.
>
> > Any suggestions?
>
> > --
> > David Given
> > [EMAIL PROTECTED] 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: OpenGL ES Frame Buffers

2008-04-02 Thread guzarva



On Apr 3, 2:25 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Thank you for your prompt reply.
>
> The refine my question, I'm trying what I read about in may other
> posts: 2D image processing.  I've been using the code sample you
> mentioned to try to render to a SurfaceView but have had some
> difficulty.  The gl method I'm used to using is DrawPixels and
> ReadPixels, but I have not been able to located these in the API.
> Instead it appears that I should either 1) render to a texture and
> then apply the texture to a square object displayed orthogonally or 2)
> render to a frame object or render buffer.  I would think the latter
> would provide more flexibility so I have been trying to determine how
> to use the glBindBuffer and glBindRenderBuffer methods.  My question
> is, once I render to a buffer other than the front buffer, how do I
> transfer the color information to the front buffer to display?
>
> Thanks
>
> On Apr 2, 8:29 am, David Given <[EMAIL PROTECTED]> wrote:
>
>
>
> > [EMAIL PROTECTED] wrote:
>
> > [...]
>
> > > Also, after rendering to a buffer, how does one move its contents to
> > > the display buffer?
>
> > Call post() on your OpenGLContext object.
>
> > See this file:
>
> >http://code.google.com/android/samples/ApiDemos/src/com/google/androi...
>
> > Currently render-to-screen seems to be unsupported, so you have to
> > render into a SurfaceView which gets composited as part of your UI ---
> > but it still seems to work reasonably efficiently.
>
> > --
> > David Given
> > [EMAIL PROTECTED] 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to change menu background and "More" button image?

2008-04-02 Thread guzarva



On Apr 2, 6:20 pm, bloodcarter <[EMAIL PROTECTED]> wrote:
> How to work with IconMenuView?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Resources in the base system theme

2008-04-02 Thread guzarva



On Apr 2, 5:52 pm, David Given <[EMAIL PROTECTED]> wrote:
> I'm trying to make some custom user interface elements that mimic the
> look of the standard user interface elements with some additional
> features --- for example, I want to make a list that looks like the menu
> you get with 'API Demos' or 'Dev Tools'.
>
> The documentation suggests that I refer to resources in the base system
> theme, and there's a ?... syntax for looking up resources in the current
> theme, which extends this. But I can't find any documentation anywhere
> of what resources there are available that I can use.
>
> I'd very much like to be able to just say
> android:textSize="?launcherMenuTextSize" and have it all just work. This
> would mean that my UI would change if the user changed the theme, which
> is a Good Thing.
>
> Can I do this?
>
> --
> David Given
> [EMAIL PROTECTED]
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Cant created non-interactive ListView

2008-04-02 Thread guzarva



On Apr 3, 2:51 am, "Harsh Jain" <[EMAIL PROTECTED]> wrote:
> I use the list view to display a constantly changing list of items from an
> SQL table. Using ListView lets me use the cursor adapters which keep the
> view in sync automatically. But I guess I will go with your suggestion as
> using a simple view may be more efficient.
>
> regards,
> harsh
>
>
>
> On Wed, Apr 2, 2008 at 7:27 PM, xingye <[EMAIL PROTECTED]> wrote:
>
> > If you don't need a list, why not draw the items on a simple view?
>
> > On 4月2日, 下午6时33分, "Harsh Jain" <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >  I need to create a list view, which doesnt response to user
> > interactions,
> > > it should be non-clickable, and user should not be able to scroll
> > through
> > > it.
> > > I tried the following
> > > ListView lv = getListView();
> > > lv.setClickable(false);
> > > lv.setFocusable(false);
> > > lv.setDividerHeight(0);
> > > lv.setItemsCanFocus(false);
>
> > > But I am still able to navigate the list using key pad and am also able
> > to
> > > click through it. I even tried lv.setEnabled(false), which only makes it
> > > grey but i am still able to scroll through it. Please advice.
>
> > > Regards,
> > > harsh- 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Cant created non-interactive ListView

2008-04-02 Thread guzarva



On Apr 2, 5:33 pm, "Harsh Jain" <[EMAIL PROTECTED]> wrote:
> Hi,
>  I need to create a list view, which doesnt response to user interactions,
> it should be non-clickable, and user should not be able to scroll through
> it.
> I tried the following
>         ListView lv = getListView();
>         lv.setClickable(false);
>         lv.setFocusable(false);
>         lv.setDividerHeight(0);
>         lv.setItemsCanFocus(false);
>
> But I am still able to navigate the list using key pad and am also able to
> click through it. I even tried lv.setEnabled(false), which only makes it
> grey but i am still able to scroll through it. Please advice.
>
> Regards,
> harsh
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How can I play the remote media files in M5 sdk?if there is differences between audio and video ?

2008-04-02 Thread guzarva



On Apr 2, 4:14 pm, Vampire <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>      I have tried to play the local media files using the code below.
>                 mMediaplayer =
> (VideoView)findViewById(R.id.video_view);
>                // mMediaplayer.setVideoURI( Uri.parse( "http://
> daily3gp.com/vids/747.3gp" ) );
>                 mMediaplayer.setVideoURI(path );
>
>      But when I use the setVideoURI function to play the remote files,
> only can see the black screen and nothing happens. Anyone can tell me
> why the process is not successful.
>      Thanks a lot!
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: web browser and dialog theme

2008-04-02 Thread guzarva



On Apr 2, 3:58 pm, dr123 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have an acivity which opens another floating activity which opens a
> web browser intent.
> After the back button from the webbrowser there is the floating
> activity and beneath it there are the checkered squares and not the
> first activity.
>
> Any thoughts as why this is happening? can i do something not very
> complex?
>
> thanks,
> aris
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to connect to a server that runs on a localhost with the same eclipse program as the emulator?

2008-04-02 Thread guzarva



On Apr 2, 3:56 pm, "Dan U." <[EMAIL PROTECTED]> wrote:
> Right, the emulator thinks localhost is itself. You should be able to
> specify the actual ip address of your computer when you make a
> connection.
>
> On Apr 2, 1:43 am, "E.D.I" <[EMAIL PROTECTED]> wrote:
>
>
>
> > How to connect to a server that runs on a localhost with the same
> > eclipse program as the emulator?
>
> > i need the emulator to connect to a server
> > both of them are in the building process so they both
> > are running on the same eclipse for check
> > but the emulator for some reason cant connect to the localhost
> > so can someone plase tell me how can it be done:)
> > thnx in advance..- 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to connect to a server that runs on a localhost with the same eclipse program as the emulator?

2008-04-02 Thread guzarva



On Apr 2, 6:08 pm, Digit <[EMAIL PROTECTED]> wrote:
> within the emulator, address 10.0.2.2 is a special alias that connects
> directly to your development machine's localhost (i.e. you r own 127.0.0.1)
>
>
>
> On Wed, Apr 2, 2008 at 10:56 AM, Dan U. <[EMAIL PROTECTED]> wrote:
>
> > Right, the emulator thinks localhost is itself. You should be able to
> > specify the actual ip address of your computer when you make a
> > connection.
>
> > On Apr 2, 1:43 am, "E.D.I" <[EMAIL PROTECTED]> wrote:
> > > How to connect to a server that runs on a localhost with the same
> > > eclipse program as the emulator?
>
> > > i need the emulator to connect to a server
> > > both of them are in the building process so they both
> > > are running on the same eclipse for check
> > > but the emulator for some reason cant connect to the localhost
> > > so can someone plase tell me how can it be done:)
> > > thnx in advance..- 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to connect to a server that runs on a localhost with the same eclipse program as the emulator?

2008-04-02 Thread guzarva



On Apr 2, 3:43 pm, "E.D.I" <[EMAIL PROTECTED]> wrote:
> How to connect to a server that runs on a localhost with the same
> eclipse program as the emulator?
>
> i need the emulator to connect to a server
> both of them are in the building process so they both
> are running on the same eclipse for check
> but the emulator for some reason cant connect to the localhost
> so can someone plase tell me how can it be done:)
> thnx in advance..
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---