Okhelp.cz

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.

Motorola Droid Razr - Smartphone































Brand Motorola
Model (codename) Droid Razr
Price (cena, včetně DPH v KCZ) 10800 / 06.2012
Display size in Inch (v palcích) 4.3
Display-resolution 540x960
Dotek-typ capacitive
CPU typ TI 4430
CPU MHz 1.2 GB
CPU core 2
L2 cache
RAM 1024
ROM 15600
GPU SGX540
NenaMark2 Benchmark
GPU-GLBenchmark 3299
Baterie mAh 1780
Foto MPx 8
Autofocus AF
Video HD video 30 frames/s
Official Android ICS Google Android 2.3.5 (Gingerbread)
CyanogenMod support
Dotek-prstů-max 10
Display-ppi 256
Display-retina 79%
Networks
Connectivity GSM: 850/900/1800/1900 MHz, EDGE, GPRS 3G: 900/2100 MHz, HSDPA, HSUPA, HSPA+ Bluetooth: 4.0 (EDR, A2DP, FTP, PBAP, AVRCP) Wi-Fi: 802.11b/g/n PC: microUSB, USB 2.0, microHDMI Senzors: proximity, gyroskop, akcelerometr GPS: yes, A-GPS, digital compas
Note Super AMOLED Display


Motorola Droid Razr image
motorola-droid-razr


397LW NO topic_id



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


81

Shuffle List ArrayList Collections Java example | shuffle-list-arraylist-collections-java-example


Add and shuffle elements in LinkedList or ArrayList Java basic example.


import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

public class MainClass {
	public static void main(String[] arg) {
		String[] arrayOfString = {"nothing", "Hello", "people"
				, "bye-bye", "hello", "world!", "End" };
		   List<String> arrayList = new LinkedList<String>();
            for(String s: arrayOfString)
		     arrayList.add(s);

		    Collections.shuffle(arrayList);

		    System.out.println(arrayList);
		    
		  }
}
/*
[hello, world!, bye-bye, nothing, people, End, Hello]
*/


156

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.
25

Copy sqlite database from apk package to device folder Android example | copy-sqlite-database-from-apk-to-device-folder-android-example


Put your sglite database to Android Eclipse project folder named Assets.
On device will copy database file to application folder as this example:



 public void createDatabase(Context myContext) throws IOException {
    String sPackName = myContext.getPackageName();
    InputStream assetsDB = myContext.getAssets().open("myDatabase");
    OutputStream dbOut = new FileOutputStream("/data/data/"+sPackName+"/database");
 
    byte[] buffer = new byte[1024];
    int length;
    while ((length = assetsDB.read(buffer))>0){
      dbOut.write(buffer, 0, length);
    }
 
    dbOut.flush();
    dbOut.close();
    assetsDB.close();
}


109

Conversion to Dalvik format failed with error 1 | conversion-to-dalvik-format-failed-with-error-1


UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lcz/okhelp/MyMathClass;

First try this solution!!!!!
Select your project in project tree and go to the Eclipse menu Project » Clean » Clean projects selected below » select your project and click OK.

If you create *.apk package with proguard sometimes you must back up the project, delete project, and create new project if you are unable to create *.apk file.

Check your AndroidManifest.xml if all Activity is correctly inserted. If you add a library project to Main project you have to insert Activity from library to Main project AndroidManifest.xml


Problem with the library.
I deleted library project from project tree and again put the _library project into the main project. This problem was resolved.
1.)Go to Project » Properties » Java Build Path » Libraries and remove (your projects) click OK.
2.)Go to Project » Clean » Clean projects selected below » select your project and click OK.
3.)Add again your LIBRARY project to your MAIN project Project » Properties » Java Build Path » Libraries.
See image below.

Problem with a *.apk file
If you create signed *.apk, you have to delete previous *.apk from your PC folder.

jar-library-create-with-eclipse

361

Not visible layout changes on testing device | not-visible-layout-changes-on-testing-device


Delete - unistal app from testing device - emulator and try again RUN - DEBUGG your app.


Editace Jana Žákovská : 2012-06-11 10:02:23
Počet článků v kategorii: 397
Url:motorola-droid-razr-smartphone
Share
Share
Tweet