Articales For Me

Mix Know






How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters?

Unicode requires 16 bits and ASCII require 7 bits Although the ASCII character set uses only 7 bits, it is usually represented as 8 bits.
UTF-8 represents characters using 8, 16, and 18 bit patterns.
UTF-16 uses 16-bit and larger bit patterns.























S8

Perm Space vs Heap Space









Copied From : http://stackoverflow.com/questions/4848669/perm-space-vs-heap-space

The heap stores all of the objects created by your Java program. The heap's contents is monitored by the garbage collector, which frees memory from the heap when you stop using an object (i.e. when there are no more references to the object.

This is in contrast with the stack, which stores primitive types like ints and chars, and are typically local variables and function return values. These are not garbage collected.



http://stackoverflow.com/questions/1279449/what-is-perm-space



For Better Coding ........







Java Coding Rules

http://www.appperfect.com/support/java-coding-rules/java-coding-rules.html


Java Optimization Rules

http://www.appperfect.com/support/java-coding-rules/optimization.html


Twelve rules for developing more secure Java code
http://www.javaworld.com/article/2076837/mobile-java/twelve-rules-for-developing-more-secure-java-code.html



Google Java Style


https://google-styleguide.googlecode.com/svn/trunk/javaguide.html











Android Saved Location Error


Error

Installing com.inicio.tariff
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.inicio.tariff"
pkg: /data/local/tmp/com.inicio.tariff
Failure [INSTALL_FAILED_MEDIA_UNAVAILABLE]




In  your Manifest.xml file you can use ,

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.inicio.tariff"
          android:installLocation="auto"
........................................
>