Connect Android Dev Phone G1 to Ad Hoc Wifi Network

by Android Development » Fri, 20 Feb 2009 13:22:22 GMT


Sponsored Links
 Does anyone know how to connect an Android G1 to an Ad Hoc Wifi
network running on a computer because the ad hoc network doesn't seem
to appear in the list of Wifi networks to connect to on the G1?

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. TrackBall

I know that emulation of trackball to DPAD do not work so good, then i
decide use trackball.

I override onTrackBallEvent but I have problem .It has good reaction
for action move ... when I track left, it goes left, when I track
right, it goes right, but I can't stop it .When I unpress ..
(action_up) the track ball .. it does nothing... still continue to
move. It does stop moving only when I track up or down....
I have no action_up or action_cancel,down reactions ... only
action_move react.

thread.sprite.moveleft or right ... is moving my sprite untlil a call
sprite.stayStil...

Logically it should be at ACTION_UP .... but it do nothing

Does have somebody experience with trackball reactions? (action up)

@Override
    public boolean onTrackballEvent(MotionEvent event) {
        switch (event.getAction()) {
        case MotionEvent.ACTION_DOWN:
                thread.sprite.stayStill();
               // trackball selected... ignore
               break;
        case MotionEvent.ACTION_UP:
                thread.sprite.stayStill();
                return true;
        case MotionEvent.ACTION_CANCEL:
               // trackball selected... ignore
                thread.sprite.stayStill();
                return true;
        case MotionEvent.ACTION_MOVE:
            if (mContext != null) {
               float x = event.getX() * event.getXPrecision();
               float y = event.getY() * event.getYPrecision();
               thread.xx=(int)x;//for debug, show on screen
               if(x<(int)0)thread.sprite.moveLeft();
               if(x>(int)0)thread.spritemoveRight();
               if(x==(int)0)thread.sprite.stayStill();
               x=0;
                return true;
            }
        }
        return super.onTrackballEvent(event);
    }

Thx for answers.

J

--~--~---------~--~----~------------~-------~--~----~

2. Back key behaviour between Activity Groups.

Hello All,
My app is kind of a music app and I have a playback bar that I need to
be visible across all the views.

I had three activities, A/B/C. Instead of adding the playback bar
explicitly to all  A,B,C. I added the Playback Bar to A and made A,B,C
as ActivityGroups.

Since, A has the playback bar, now I when I start B from A, I call
setContentView from A to show B.

The problem is, once I call setContentView to show B, and then if the
user presses back key in B, then it goes to home screen, instead of
coming to A.

I have seen some snippets on web, which maintain the view stack and
when user presses the back key they pop up the previous view.

I couldnt implement that.

Questions :
1) Is there any better way to having a activity like Playback bar/
Status bars across all the views/activities ?

2) If the above way is the only way to do it,then how can I handle the
back key?

With Regards
MS.

-- 

3. Datepicker Displaying Dotted Lines

4. viewflipper, Cursors and ListViews

5. Emulator won't shutdown

6. What's the best way to have your app 'sleep' for N milliseconds?

7. Best approach for LocationPolling service