WT-shaSeido Innocell Batt - N1

by eko » Wed, 21 Apr 2010 14:17:19 GMT


Sponsored Links
 Sip bos, di tunggu reviewnya.

*pengenbelijuga*




Wow, tebalnya minta ampun, tp moga2 hh nya bisa di pakai seharian.

Bete neh ttg batt N1 yg cepet habis (salah sendiri, sering untk main game,
browsing dll). Kadang gak sampe setengah hari uda low batt.

Minggu lalu beli dari ebay, baru aja sampai product nya sesuai attachment.

Ntar, di sharing lg deh, batt nya tahan berapa lama.


Sent from my BlackBerry smartphone from Sinyal Bagus XL, Nyambung
Teruuusss...!

--
"

-- 
"



Other Threads

1. BitmapFactory.decodeByteArray gives pixelated bitmap

Hi,

I am working on an app that displays photos which are downloaded from
Flickr. I obtain a Bitmap object from a byte array, which in turn is
read from the relevant Flickr URL, as follows:

Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length);

The problem is that the resulting bitmap is pixelated and I can't
figure out why. To demonstrate, here is an example of a picture
created via BitmapFactory.decodeByteArray versus the original picture
obtained directly from the relevant Flickr URL:

http://homepages.inf.ed.ac.uk/s0677975/bad.jpg
http://homepages.inf.ed.ac.uk/s0677975/good.jpg

Look e.g. at the clouds in the top-left corner to see the difference.

Can anybody give me a hint as to why this is happening?

Below are some additional details. The byte array is obtained as
follows; this is based on code from the Photostream app by Romain Guy:

InputStream in = new BufferedInputStream(url.openStream(),
IO_BUFFER_SIZE);
final ByteArrayOutputStream dataStream = new ByteArrayOutputStream();
out = new BufferedOutputStream(dataStream, IO_BUFFER_SIZE);
copy(in, out);
out.flush();
final byte[] data = dataStream.toByteArray();

Note that the more direct approach using e.g.
BitmapFactory.decodeStream() does not work; see e.g. the following
discussion for details:

http://markmail.org/message/m2m3cpkh6ggrvj43#query:BitmapFactory.decodeStream%20vs%20BitmapFactory.decodeByteArray+page:1+mid:ebetxxb3tkngpe7s+state:results

Here is the code I used for writing the bitmap to the JPG file linked
to above, with no compression:

String filename = "test" ;
ContentValues values = new ContentValues();
values.put(Images.Media.TITLE, filename);
values.put(Images.Media.DATE_ADDED, System.currentTimeMillis());
values.put(Images.Media.MIME_TYPE, "image/jpeg");

Uri uri = mCtx.getContentResolver().insert
(Images.Media.EXTERNAL_CONTENT_URI, values);
try {
  OutputStream outStream = mCtx.getContentResolver().openOutputStream
(uri);
  bitmap.compress(Bitmap.CompressFormat.JPEG, 100, outStream);
  outStream.flush();
  outStream.close();
} catch (FileNotFoundException e) {}
  catch (IOException e) {}


Any help on this matter would be greatly appreciated.
Thanks and best regards,
Michael.

-- 

2. TableLayout set column width by using layout_weight

I believe I found a solution to your problem. The weight attribute of
linearlayouts (http://d.android.com/reference/android/widget/
LinearLayout.LayoutParams.html) unfortunately only extends views, and
therefore the your attempt does not work, because the textviews are to
wide to begin with. I found that it worked to simply set
android:width="0px", and then let the weight-attribute do its work.

<?xml version="1.0" encoding="utf-8"?>
<TableLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content" >
  <TableRow>
    <TextView
      android:text="ab ab abc abcabc ab"
      android:background="#FFFF0000"
      android:width="0px"
      android:gravity="center"
      android:layout_weight="0.5"/>
    <TextView
      android:text="ab ab abc abcabc in aaaaa aaaa aaaaaa aaaaa
aaaaaa"
      android:width="0px"
      android:background="#FF00FFFF"
      android:layout_weight="0.5"
      android:gravity="center"/>
  </TableRow>
</TableLayout>




-- 

3. RelativeLayout algorithm.

4. Using bitmap data to copy pixels to a new bitmap

5. Dynamic compound drawables in TextView are invisible

6. listing /data/data device's contents

7. Complete Guide Root, Update, ADB Recovery and JIT on Milestone