Why "Dev Phone 1" support 16G SD while "G1" only support 8G?

by Hastala » Sat, 20 Dec 2008 11:31:09 GMT


Sponsored Links
 Why "Dev Phone 1" support 16G SD while "G1" only support 8G?

Is there any hardware difference?

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



Why "Dev Phone 1" support 16G SD while "G1" only support 8G?

by JS » Sat, 20 Dec 2008 13:32:44 GMT


 I believe both phones support 16GB.  It's the same phone.




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


Sponsored Links


Why "Dev Phone 1" support 16G SD while "G1" only support 8G?

by roli » Mon, 22 Dec 2008 10:12:34 GMT


 as JS already said they are the same. the reason G1 only says 8G is
because there weren't any 16G to test while those numbers were put up.
(so i've heard)




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



Other Threads

1. Debugging a separate thread.

I am getting familiar with debugging from eclipse.
I have a thread that runs in the background, and set
a breakpoint in that file.  When I debug my program,
I never see it stop there or display the file that
the break is in.  Do I need to do something special
in order to select which thread I'm debugging?

Also, as I step through my program, I eventually
get to parts of the Android system, where I'm in
the dark.  I get a message about the source file
not being available which makes sense.  I just
keep hitting F7, and eventually get back to my
code.  Is this a normal routine that people go
through, and can I get and install the source
somewhere so that I could actually step through
the Android code?

Thanks!

Tobiah

--

2. Click event on Edit-Text's Right Drawable.

Hello Developers,

I have one Edit Text with right drawable.
The xml code is

<TextView android:id="@+id/trip_txt_to"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="@string/addname" android:layout_alignParentLeft="true"
android:textStyle="bold" android:textColor="@color/black"
android:typeface="normal" android:padding="10dp"
android:layout_below="@+id/lineview1" />

<test.ui.CustomEditTextActivity
android:id="@+id/nameofpersonr" android:layout_height="wrap_content"
android:hint="@string/hint"
android:layout_toRightOf="@+id/name" android:textColor="@color/black"
android:typeface="normal"
android:layout_below="@+id/lineview1"
android:drawableRight="@drawable/icon"
                                android:layout_width="180dp">
</test.ui.CustomEditTextActivity

<ImageView android:id="@+id/clearnameimage"
android:layout_alignParentRight="true" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:scaleType="fitXY"
android:layout_below="@+id/lineview1"
android:src="@drawable/deleteicon" android:padding="5dp"/>


and CustomEditTextActivity.java

public class CustomEditTextActivity extends EditText {
private Drawable rightSideDrawable;
private Rect rectangleBounds;

public CustomEditTextActivity(Context context, AttributeSet attributeSet,
int defStyle) {

super(context, attributeSet, defStyle);
}

public CustomEditTextActivity(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}

public CustomEditTextActivity(Context context) {
super(context);
}

@Override
public void setCompoundDrawables(Drawable left, Drawable top,
Drawable right, Drawable bottom) {
if (right != null) {
rightSideDrawable = right;
 }
super.setCompoundDrawables(left, top, right, bottom);
}

@Override
protected void finalize() throws Throwable {
rightSideDrawable = null;
rectangleBounds = null;
super.finalize();
}

public Rect getRectBound() {
return rectangleBounds;
}

public Drawable getRightDrawable() {
return rightSideDrawable;
}
          // on touch event code i got from some site..
@Override
    public boolean onTouchEvent(MotionEvent event)
    {

        if(event.getAction() == MotionEvent.ACTION_UP &&
rightSideDrawable!=null)
        {
         rectangleBounds = rightSideDrawable.getBounds();
            final int x = (int)event.getX();
            final int y = (int)event.getY();

            if(x>=(this.getRight()-rectangleBounds.width()) &&
x<=(this.getRight()-this.getPaddingRight())
                    && y>=this.getPaddingTop() &&
y<=(this.getHeight()-this.getPaddingBottom()))
            {
                this.setText("");
                event.setAction(MotionEvent.ACTION_CANCEL);//use this to
prevent the keyboard from coming up
            }
        }
        return super.onTouchEvent(event);
    }

}

Now problem is,

when i open the activity, it shows me keyboard and i can right in edit text,
but as soon as i touch to edit text it launches another activity, i called
it "InfoActivity.java". But InfoActivity.java is supposed to be launched if
I click on drawable not on edit text.
Can you please help me to get click event or touch event on right hand side
drawable, instead of edit text? or is there any other alternative way?
Also, because of this i can not use this line for keyboard..

this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);


Can anyone help me in that? I have made lots of changes in ontouch event
written above but fail.

So please help me in that. I really appreciate it. Thank you in advance.

-- 

3. Layout related

4. Syntax to reference a drawable from a library project

5. monkeyrunner with different android versions

6. DalvikVm issue

7. ASK : signal motorola xt720 sering hilang