Honeycomb Android emulator is dog slow – will it get manageable before the official release? [closed]

The short answer is “yes”. The Honeycomb emulator performance will be improved in future release of the development tools. For right now, you should start by increasing the amount of device RAM used by the emulator. The default is 256Mb but 1Gb is probably more reasonable. [Update (April 9 2012) — The latest developer tools … Read more

Converting input stream into bitmap

Thank you @Amir for point out the log. Discovered a line: decoder->decode returned false This seems to be a common problem. Doing a search I found a solution. My previous code: URLConnection conn = url.openConnection(); conn.connect(); inputStream = conn.getInputStream(); bufferedInputStream = new BufferedInputStream(inputStream); bmp = BitmapFactory.decodeStream(bufferedInputStream); Code which is working: HttpGet httpRequest = null; try … Read more

WebView “flashing” with white background if hardware acceleration is enabled (Android 3.0+)

I found the most effective fix for this, first mentioned here, was to set a transparent background color after the layout has been inflated: webView.setBackgroundColor(Color.argb(1, 0, 0, 0)); Yes, it’s a total hack, but it’s the only solution I’ve found to work well without disabling hardware acceleration. Note that this does not work through setting … Read more

ViewPager: Recursive entry to executePendingTransactions

New version of Support Library v4 (or Android 4.2, ofcourse) resolve this problem much simply. For do this, simply do constructor of your custom FragmentPagerAdapter like this: public CustomFragmentPagerAdapter(android.support.v4.app.Fragment fragment) { super(fragment.getChildFragmentManager()); // write your code here } This work because new Android version approve using nested Fragments

Retain the Fragment object while rotating

By default Android will retain the fragment objects. In your code you are setting the homeFragment in your onCreate function. That is why it is allways some homeFragment or fl what ever that you set in onCreate. Because whenever you rotate, the onCreate will execute and set your fragment object to the first one So … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)