Month: July 2013

[QA] How to get launch / main activity class in android

String packageName = context.getPackageName(); 
Intent launchIntent = context.getPackageManager().getLaunchIntentForPackage(packageName); 
String className = launchIntent.getComponent().getClassName();
Tags : , ,

[QA] How use input text dialog in Android

Sorry, this entry is only available in 中文.

Tags : ,

[QA] How to use WifiConfiguration for WPA/WPA2 wifi in android

Sorry, this entry is only available in 中文.

Tags : ,

[QA] checking host reachability availability in android

Sorry, this entry is only available in 中文.

Tags : , ,

[QA] How to generate json from NSDictionary or NSArray

Sorry, this entry is only available in 中文.

Tags : , , ,

[QA] case expressions must be constant expression in Android

Root cause:
R class no longer use static final String now,
conditions in switch case must be declared as final

Solution:

  1. highlight on switch keyword
  2. press 「cmd」 + 1
  3. replace with 「if else」
Tags :

[Android] ffmpeg ‘UINT64_C’ was not declared in this scope

Android.mk

LOCAL_CFLAGS += -D__STDC_CONSTANT_MACROS=1
Tags : ,

[QA] iOS Device Spec

Resolution and Memory

 

Resolution Memory
iPad 1024-by-768 resolution
at 132 pixels per inch (ppi)
256 MB
iPad mini 1024-by-768 resolution
at 163 pixels per inch (ppi)
512 MB
iPad 2 1024-by-768 resolution
at 132 pixels per inch (ppi)
512 MB
iPad (3rd) 2048-by-1536 resolution
at 264 pixels per inch (ppi)
512 MB
iPad with retina (4th) 2048-by-1536 resolution
at 264 pixels per inch (ppi)
1024 MB
iPhone 480 × 320 px (HVGA)
at 163 ppi
128 MB
iPhone 3G 480 × 320 px (HVGA)
at 163 ppi
128 MB
iPhone 3GS 480 × 320 px (HVGA)
at 163 ppi
512 MB
iPhone 4 960-by-640-pixel resolution
at 326 ppi
512 MB
iPhone 4S 960-by-640-pixel resolution
at 326 ppi
512 MB
iPhone 5 1136-by-640-pixel resolution
at 326 ppi
1024 MB

CPU and GPU power

CPU GPU
iPad Apple A4
(1 GHz ARM Cortex-A8)
PowerVR SGX535
iPad mini Apple A5
(1 GHz dual-core ARM Cortex-A9)
PowerVR SGX543MP2
iPad 2 Apple A5
(1 GHz dual-core ARM Cortex-A9)
PowerVR SGX543MP2
iPad (3rd) Apple A5X
(1 GHz dual-core ARM Cortex-A9)
PowerVR SGX543MP4 (250MHz)
iPad with retina (4th) Apple A6X
(1.4 GHz dual-core Apple Swift)
PowerVR SGX554MP4 (300MHz)
iPhone 620 MHz ARM 1176JZ(F)-S PowerVR MBX Lite 3D (103 MHz)
iPhone 3G 620 MHz ARM 1176JZ(F)-S PowerVR MBX Lite 3D (103 MHz)
iPhone 3GS 883 MHZ ARM Cortex-A8 PowerVR SGX535 (150 MHz)
iPhone 4 Apple A4
(1 GHz ARM Cortex-A8)
PowerVR SGX535

(200 MHz)

iPhone 4S Apple A5
(1 GHz dual-core ARM Cortex-A9)
PowerVR SGX543MP2
iPhone 5 Apple A6
( 1.3GHz Dual-core Apple Swift)
PowerVR SGX543MP3 (333MHz)
Tags :