Recepty, články, nápady, programování. Dříve dum-zahrada, finance, internet a know-how.okhelp.cz Pro lepší výsledky hledání používejte i diakritiku.

Android 4.4 Lenovo A6000 black screen


Try reboot device.
Start device with start button on side of phone.
Screen will go to light black color.
Long press Start button for menu:
Power off
Airplane mode

Reboot item is in same level like Start button.
Click on the screen - (Hear a click)
Now find OK button , it is under Reboot item on right side of screen.
Press OK (Hear a click)
Wait a moment.
If device to do nothing , try short press Start button (sreen will black)
and again to press Start button. If screen go to light black color,
try again find Reboot item as written above.

397LW NO topic_id


Další témata ....(Topics)


How to install mount SD card for Eclipse Android Emulator | how-install-sd-card-on-android-eclipse-emulator

If you want download some *.apk file from internet and try on your emulator you get error than you have to install SD card. You have to closing Android emulator.
Mount Android emulator SD card instruction

  1. In Eclipse go in menu Window - Android SDK and Avg Manager

  2. Select Virtual devices

  3. Select AVD Name where you need install SD card

  4. Click on Edit button

  5. In open dialog go to SD card - Size: and write 500

  6. Press button Edit AVD

  7. Run AVD emulator

Image how install SD card on Android emulator in Eclipse.


View getId is null Android | view-getid-is-null-android

If you create a button or view programmatically with OnClickListener you can set a tag key before button in parent layout is added.
And get correct button by this tag getTag() instead getId() in OnClickListener etc.

Button button = new Button(getApplicationContext());
int idOfButton = button.getId(); // return -1

String sTag = (String) button.getTag(); // return "my_button"


Convert Drawable to Bitmap to Drawable | converts-drawable-to-bitmap

Context context = getApplicationContext();
Drawable drawable = context.getResources().getDrawable(R.drawable.my_image);
// convert drawable to bitmap
Bitmap bitmap = ((BitmapDrawable)drawable).getBitmap();
// convert bitmap to drawable
Drawable d = new BitmapDrawable(bitmap);

Android example source code.

Change icon set Android developers example | change-icon-set-android-developers

How to quickly change all icon set in .apk project with Eclipse:

Right click on project in folder tree
Select New - Ohter


In open wizard dialog select Android Icon Set

Set Icon set name:

Open some large icon for your project for example 512x512 px and wizard will make all set of icons from one largest icon:

Wizard will create all set of icons from this one largest icon.
Click on finish button:

Android Google Maps Night Mode | android-google-maps-night-mode

If you want save battery, select "Satelite map" from map menu and reduce the brightness of the display.


Editace: 2017-05-06 10:25:57
Počet článků v kategorii: 397

11 Share