Monday, October 18, 2010

The $1 Phone Dock

I was at the flea-market this weekend just looking for some deals on junk. I was skimming across a table and spotted this little gem.

2010-10-18 07.33.04 2010-10-18 07.33.13

This is a business card stand. my Samsung Galaxy S (Vibrant) fits perfectly both horizontally and vertically. The angle it sits is perfect for viewing video on the device.

There was only one on the table, I wanted at least 2 of them, so I could have one for work and at home. The best part, it was $1.

Friday, October 8, 2010

Stuck at Vibrant Screen after Update

I was stuck at the Vibrant screen after applying the official OTA update from T-Mobile the other day on my Samsung Vibrant. Most people were saying it was because of not running the Stock firmware, but I did not have any real “mods” to the OS, except for a GPS fix. I have also heard people that are running full, non-rooted, Stock firmware phones and still having the same issue.

I wanted to post the steps I took to fix my problem. Your results may vary, and I am in no way, shape or form, responsible for any problems that you may have because you read this and did what worked for me. I am just posting it because it worked for me, and others.

  1. Download ODIN3 1.0
  2. Download 512 PIT
  3. Download JFD tar
    • Note that all 3 of those are from the same thread. It also wouldn't hurt for your to read that post too.
  4. Open Odin, plug in your phone, then put it into download mode.
    • To expand on this because a lot of people were asking "how to put in download mode". The easiest way I found to actually do it, if you can can connect via ADB is to do the following:

      # reboot download

      If you can't get that to work, try how i mention below (phone off, battery out, hold vol+ & vol-), or try searching these forums for "vibrant download mode" you will find other things that "work" for people
  5. load the PIT file in appropriate area.
  6. load the .tar file in the PDA area.
  7. DO NOT check 're-partition'.
  8. Click start, let it finish.
    • At this point ODIN failed on me. and I got the "mobile-!-pc" image.
  9. Now, pull your battery and unplug USB
  10. I also took out the SIM and sdcard at this point.
  11. bring the phone to download mode again
    1. plug the USB back in (the phone should be off)
    2. Hold down vol+ & vol-
    3. Put battery back in
    4. press power
  12. re-run ODIN as mentioned above

Once ODIN completed successfully, it rebooted in to the Stock build. i let it do all that. then I shut it off, put the sdcard and SIM back in and booted in to recovery and restored from my Nandroid and I was back to the way it was right before I applied the update.

Friday, September 17, 2010

Resident Evil Inspired Windows 7 theme

This is a dynamic theme that uses my Picasa gallery for the images. The wallpaper is something I threw together while I was bored the other day. It is the eye of Milla Jovovich from the the first movie.

Here are some samples of the wallpaper. There are 11 total, some with and some without the Umbrella logo in the eye.

residentevil-hazel[1] residentevil-hazel-logo[1] residentevil-blue[1] residentevil-red[1]

Download the Windows 7 Theme

Thursday, September 2, 2010

Please vote for Droid Explorer

voteVoting has begun for the Community Coding Contest 2010. Please go support Droid Explorer and cast your vote for it today. There is approximately $20,719 USD worth of prizes that can be won. So please vote and have your friends vote and their friends too.

The voting “booth” is on the main page, on the right hand side of the page. Check the checkbox for Droid Explorer and then click the “Vote” button.

The other entry is just a short code snippet that is about 15 lines of code, counting whitespace. Droid Explorer is over 170,000 lines and used by thousands of people. Droid Explorer should have no problem winning this contest, and with your support it can.

Friday, August 27, 2010

Closing an activity by touching outside

I have been working on an application that I want to close an Activity when the user touches outside the activity. Like how you can set the setCanceledOnTouchOutside(boolean cancel) in the android.app.Dialog. The activity I want to close is themed like a dialog so there is an area around the activity that is not “active”.

I was able to achieve the desired effect by overriding the activity’s onTouchEvent(MotionEvent event). This method is called when a screen touch event is not handled by any views.

@Override
public boolean onTouchEvent ( MotionEvent event ) {
// I only care if the event is an UP action
if ( event.getAction () == MotionEvent.ACTION_UP ) {
// create a rect for storing the window rect
Rect r = new Rect ( 0, 0, 0, 0 );
// retrieve the windows rect
this.getWindow ().getDecorView ().getHitRect ( r );
// check if the event position is inside the window rect
boolean intersects = r.contains ( (int) event.getX (), (int) event.getY () );
// if the event is not inside then we can close the activity
if ( !intersects ) {
// close the activity
this.finish ();
// notify that we consumed this event
return true;
}
}
// let the system handle the event
return super.onTouchEvent ( event );
}

Now with that code in place, if the user touches anywhere outside of the dialog style activity, it will close.


The $1 Phone Dock

I was at the flea-market this weekend just looking for some deals on junk. I was skimming across a table and spotted this little gem.

2010-10-18 07.33.04 2010-10-18 07.33.13

This is a business card stand. my Samsung Galaxy S (Vibrant) fits perfectly both horizontally and vertically. The angle it sits is perfect for viewing video on the device.

There was only one on the table, I wanted at least 2 of them, so I could have one for work and at home. The best part, it was $1.

Stuck at Vibrant Screen after Update

I was stuck at the Vibrant screen after applying the official OTA update from T-Mobile the other day on my Samsung Vibrant. Most people were saying it was because of not running the Stock firmware, but I did not have any real “mods” to the OS, except for a GPS fix. I have also heard people that are running full, non-rooted, Stock firmware phones and still having the same issue.

I wanted to post the steps I took to fix my problem. Your results may vary, and I am in no way, shape or form, responsible for any problems that you may have because you read this and did what worked for me. I am just posting it because it worked for me, and others.

  1. Download ODIN3 1.0
  2. Download 512 PIT
  3. Download JFD tar
    • Note that all 3 of those are from the same thread. It also wouldn't hurt for your to read that post too.
  4. Open Odin, plug in your phone, then put it into download mode.
    • To expand on this because a lot of people were asking "how to put in download mode". The easiest way I found to actually do it, if you can can connect via ADB is to do the following:

      # reboot download

      If you can't get that to work, try how i mention below (phone off, battery out, hold vol+ & vol-), or try searching these forums for "vibrant download mode" you will find other things that "work" for people
  5. load the PIT file in appropriate area.
  6. load the .tar file in the PDA area.
  7. DO NOT check 're-partition'.
  8. Click start, let it finish.
    • At this point ODIN failed on me. and I got the "mobile-!-pc" image.
  9. Now, pull your battery and unplug USB
  10. I also took out the SIM and sdcard at this point.
  11. bring the phone to download mode again
    1. plug the USB back in (the phone should be off)
    2. Hold down vol+ & vol-
    3. Put battery back in
    4. press power
  12. re-run ODIN as mentioned above

Once ODIN completed successfully, it rebooted in to the Stock build. i let it do all that. then I shut it off, put the sdcard and SIM back in and booted in to recovery and restored from my Nandroid and I was back to the way it was right before I applied the update.

Resident Evil Inspired Windows 7 theme

This is a dynamic theme that uses my Picasa gallery for the images. The wallpaper is something I threw together while I was bored the other day. It is the eye of Milla Jovovich from the the first movie.

Here are some samples of the wallpaper. There are 11 total, some with and some without the Umbrella logo in the eye.

residentevil-hazel[1] residentevil-hazel-logo[1] residentevil-blue[1] residentevil-red[1]

Download the Windows 7 Theme

Please vote for Droid Explorer

voteVoting has begun for the Community Coding Contest 2010. Please go support Droid Explorer and cast your vote for it today. There is approximately $20,719 USD worth of prizes that can be won. So please vote and have your friends vote and their friends too.

The voting “booth” is on the main page, on the right hand side of the page. Check the checkbox for Droid Explorer and then click the “Vote” button.

The other entry is just a short code snippet that is about 15 lines of code, counting whitespace. Droid Explorer is over 170,000 lines and used by thousands of people. Droid Explorer should have no problem winning this contest, and with your support it can.

Closing an activity by touching outside

I have been working on an application that I want to close an Activity when the user touches outside the activity. Like how you can set the setCanceledOnTouchOutside(boolean cancel) in the android.app.Dialog. The activity I want to close is themed like a dialog so there is an area around the activity that is not “active”.

I was able to achieve the desired effect by overriding the activity’s onTouchEvent(MotionEvent event). This method is called when a screen touch event is not handled by any views.

@Override
public boolean onTouchEvent ( MotionEvent event ) {
// I only care if the event is an UP action
if ( event.getAction () == MotionEvent.ACTION_UP ) {
// create a rect for storing the window rect
Rect r = new Rect ( 0, 0, 0, 0 );
// retrieve the windows rect
this.getWindow ().getDecorView ().getHitRect ( r );
// check if the event position is inside the window rect
boolean intersects = r.contains ( (int) event.getX (), (int) event.getY () );
// if the event is not inside then we can close the activity
if ( !intersects ) {
// close the activity
this.finish ();
// notify that we consumed this event
return true;
}
}
// let the system handle the event
return super.onTouchEvent ( event );
}

Now with that code in place, if the user touches anywhere outside of the dialog style activity, it will close.