supporting different screen sizes

Many many users are affected by android apps not showing in their Market, just because they have a screen with a different resolution that is not the most common one.
this is the case of HTC Tattoo, with its 2.7" QVGA screen.
But this can be easily fixed by app makers, by simpling including this litte code in their manifest.xml

<uses-sdk android:minSdkVersion="3" /> <uses-sdk android:targetSdkVersion="8" />
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:anyDensity="true" /> 

with minSdkVersion="3" you are still supporting Android 1.5, and with supports-screens android:smallScreens="true" you tell Market that it will work in small screens too :D

Everyone wins.

Currently supported resolutions and densities byt the SDK:

1.QVGA (240x320)
2.WQVGA (240x400)
3.FWQVGA (240x432)
4.HVGA (320x480)
5.WVGA (480x800)
6.FWVGA (480x854)

* A set of three generalized sizes: large, normal, and small, and
* A set of three generalized densities: high (hdpi), medium (mdpi), and low (ldpi) 

Filed under  //  devel   devices   SDK   smallscreens   tattoo  
Comments (0)

Android 1.6 NDK

 

Today Android 1.6 NDK, release 1 is available for download from the Android developer site.

To recap, the NDK is a companion to the SDK that provides tools to generate and embed native ARM machine code within your application packages. This native code has the same restrictions as the VM code, but can execute certain operations much more rapidly. This is useful if you're doing heavy computations, digital processing, or even porting existing code bases written in C or C++.

If you already use the Android 1.5 NDK, upgrading to this release is highly recommended. It provides the following improvements:

  • The ability to use OpenGL ES 1.1 headers and libraries If your application targets Android 1.6, your native code can now directly call OpenGL ES 1.1 functions to perform graphics rendering. This will help those programs that need to send large amounts of vertex data to the GPU. Note, however, that activity lifecycle and surface creation must still be performed from the VM. This NDK contains a new sample ("san-angeles") that shows exactly how to do that with a GLSurfaceView object.
  • The ability to target either Android 1.5 or 1.6 devices The NDK parses your project's properties to know which platform release it is targeting. It will then automatically use the proper headers and libraries to generate your native code. Any application that targets 1.5 will run on Android 1.5, Android 1.6 and any future official system release. Targeting 1.6 should, thus, only be done if your application requires new 1.6 features / APIs, like the ability to call OpenGL ES 1.x headers from native code.
  • The ability to put your native sources under your application's project tree You can now conveniently place all your sources (C, C++ and Java) under the same tree, for editing or version control purposes.
  • Many fixes to the NDK's build scripts The changes to the build scripts fix some annoying bugs and also increase host system compatibility.

If you have any questions, please join us in the Android NDK forum.

 

 

Filed under  //  NDK   News   noticias   SDK  
Comments (4)

SDK 1.6 e 64 bits

Para os possuidores de sistemas operativos e q tinham problemas com
com o SDK (nomeadamente com o ddms), o novo SDK1.6, apesar de ser
ainda i386, já vem preparado para lidar com sistemas operativos
64bits.
Podes fazer download aqui:
http://d.android.com/sdk/

Filed under  //  64bits   News   SDK  
Comments (0)

colocar files no sistema

ao meter a cyan 4.x isto vem sem sons kase nenhums,
sakei mais umas ROMs, ripei os sons de musica e kero por em /system/media/audio
 
mas nem como root tou a conseguir, pq diz q ta em Read Only.
 
alg sabe como posso fazer?

 

EDIT:

ja descobri.

adb root
adb remount
adb push . /system/media/audio/

 

EDIT 2:

kase la, mas sem sucesso.

os ficheiros tao la. mas n sao vistos :(

sugestoes?

Filed under  //  adb   filesystem   media   multimedia   musica   Questoes   rooting   SDK   sons  
Comments (7)

Como utilizar o SDK para tirar screenshots

Para aceder a estas funções precisas de colocar o Android em modo debug:
Antes de ligares o USB, no telefone vai a menu>settings>applications>development>usb debugging e activa

depois precisas do SDK
http://developer.android.com/sdk/
 
Faz download da versao para o teu Sistema Operativo;
Extrai o ficheiro para uma pasta;
 
agora abre a pasta, e lá dentro encontras uma chamada Tools
Liga o teu android ao PC com o cabo usb, espera q fique ligado. Não
precisas de Montar o SD.
 
Aqui vais ver uma aplicaçao chamada ddms

Qd clicas nela, abres o Dalvik Debug Monitor
Clicas sobre o equipamento, do lado esquerdo, aonde mostra o Serial Number do telefone.
Agora vais a Device->Screen capture
 
agora ja podes guardar essas imagens.

Para alem disto, pode efectuar muito mais operaçoes.
Basta abrir uma consola, navegar até à localização da pasta tools, e escrever:
$ ./adb
 
irá listar uma serie dos comandos disponiveis.
entre eles o adb devices, lista os equipamentos ligados
 
$ adb bugreport > ~/bugreport.txt gera um ficheiro com TODA a lista
de relatorios do teu equipamento, nos quais podes ver autonomia, rede,
etc.
Experimenta, é fácil, seguro, e nao altera nada no teu Android ou PC.
 
 
 
Problemas:
No Ubuntu há um bug com o UDEV. segue isto e reboota o PC (pelo menos
eu só consegui após reboot):
https://help.ubuntu.com/community/AndroidScreenshots

Em 64 bits precisei de modificar o ddms: (fonte)

-- Installed the ia32-java-6-sun package, which is a 32-bit JRE that runs under 64-bit Linux
-- Copied tools/ddms to tools/ddms64
-- Modified line 72 of tools/ddms64 to read:
java_cmd="/usr/lib/jvm/ia32-java-6-sun/bin/java"

 

Se tiveres problemas em fazer com q o equipamento seja reconhecido em Windows, pode-se tratar de problemas com o drive de USB.
para isso instala o driver disponivel dentro da pasta <SDK>\usb_driver

 

Filed under  //  howto   screenshots   SDK  
Comments (4)

$ ./adb shell ls /sdcard/appmanager > ~/Desktop/androidapps.txt

AppManager 0.3.8.apk
ASTRO 1.3.13.apk
AutoRotate OnOff 1.0.0.apk
Barcode Scanner 2.9.apk
Battery Status - Free 1.2.apk
Better Keyboard 2.1.apk
Bluetooth OnOff 1.0.0.apk
Brightness Level 1.0.0.apk
Compass 1.0.12.apk
ConnectBot 1.5.4.apk
DailyHoroscope 1.4.apk
dg QuickCut 1.0.9.apk
Flashlight 2.apk
G-MoN 1.0.0.apk
Google Voice 0.1.415.74.apk
GPS OnOff 1.0.2.apk
Here I Am 1.1.2.apk
Locale 0.65 beta.apk
NewsRob 2.7.0.apk
PingPong Lite 3.3.456.apk
pTerminal 1.0.1.apk
Punch-O-Meter 1.2.apk
Ice 2.0.apk
RemoteDroid 1.1.2.apk
Retro Clock 1.1.1.apk
RockOut 1.0.0.apk
SambaExplorer 1.4.apk
Shazam 1.1.apk
Sky Map 1.0.1-beta.apk
3G Watchdog 0.6.0.apk
Stopwatch 1.3.apk
TasKiller 1.7.2 Free.apk
Toggle Settings 2.1.2.apk
TTS Service 1.4.apk
Twidroid 2.2.0.apk
Twitli 1.91.apk
UltraSound 1.3.apk
Useful Switchers 1.2.2.apk
Velox 1.1.6.apk
Whistle 1.3.apk
WiFi OnOff 1.2.0.apk
NetMeter 0.98.apk
SnapPhotoPro 1.4.0.apk
2G-3G OnOff 1.0.0.apk
DroidCollector 0.8.4.apk
AppManager Pro 1.0.0.apk
GPS Speedo 2.1.apk
Xtremelabs Speedtest 1.1.1.apk
OI File Manager 1.0.0.apk
Weather Widget Forecast Addon 1.2.apk
Beautiful Widgets 1.46.apk
Weather Widgets 2.2.1.apk
CellFinder 1.3.apk
Voice Text 2.2.apk
Better Terminal Emulator Pro 1.41.apk
TasKiller 1.6.6 Full.apk
Better Keyboard 2.3.apk
Remote 1.8.0.apk
MyBackup Pro 1.2.9.apk
NetScan beta0.7b.apk
GphoneManager 1.5.1.apk
Bluex 1.1.2.apk
WifiScanner 1.1.0.apk
Bubble 1.7.apk
Metal Detector 1.2-RELEAS.apk
Simple Black 1.0.apk
QuicKey 2.0.apk
Glass Orb Keyboard 1.1.apk
Oil Slick 2.0.apk
Avatar-Clear 1.0.apk
GreyKeys 1.0.apk
AndroidKeyboard 1.0.apk
WhiteKeyboard 1.1.apk
Glossy Minimal Keyboard 1.0.apk
Google Maps 3.1.2.apk
NewsRob 2.7.7.apk
NetSentry 1.1.2.apk
NetCounter 0.10.apk
Wifi Status 1.0.0.apk
WiFi Buddy 0.9.1-beta.apk
ContactSync 1.0.2.apk
AppManager 0.4.0.apk

Filed under  //  adb   apps   lists   SDK  
Comments (0)

SDK 64bits , aonde?

Alguem me sabe dizer aonde encontro o SDK para 64bits?
No site (http://developer.android.com/sdk/1.5_r3/index.html) só tem i386

Filed under  //  64bits   download   SDK  
Comments (8)