11 July, 2011 - 2:23 pm
Tags: 3g, Android, LG Optimus V
Posted in english | 1 comment
When I came back from my last travel my 3G connection stopped working and seems that a lot of people already had the same problem. It was after I reactivated my plan when I came back to the US. Apparently they forgot to activate my data plan I’m paying for. How to solve I tried [...]
Context ctx = getContext(); Display display = ((WindowManager)ctx.getSystemService(ctx.WINDOW_SERVICE)).getDefaultDisplay(); int width = display.getWidth(); int height = display.getHeight(); Yes, there are easier ways to retrieve the screen width on Android but there are cases that this long code is the only solution. You may already have the Context. WindowManager or the Display and so it would be [...]
Essa quinta-feira, dia 6 de Maio de 2010, conversaremos sobre Android na palestra “Android: Visão Geral” a partir das 18:30 na Faculdade Evolução (R. Pedro I, 1276, no Centro). A ideia é falar por cima sobre o mercado mobile, o desenvolvimento Android, as possibilidades e os conceitos principais sobre suas aplicações. Maiores detalhes sobre inscrição [...]
29 April, 2010 - 5:13 pm
Tags: Android, bug, content, flaw, security
Posted in english | No comments
How to reproduce: 1. An application with a bunch of EditText. 2. Go to setup and change the locale of Android. 3. Back to the application. Expected behavior Locale changed and input values are the same. Observed behavior Input values from the last EditText is copied to all others. Even if it’s a password sensitive [...]
23 April, 2010 - 3:12 pm
Tags: Android, CC-BY-SA, i18n, resource
Posted in english | No comments
a new android I just drew. source-code: android_look.svg. CC-BY-SA as usual. You can acess internal Android resources such strings, drawables, layouts and others. For example, if you need to create a button with the text “Cancel” you can do: <Button android:id="@+id/CancelButton" android:text="@android:string/cancel" /> Using this you are using the internal resource for “Cancel” in that [...]
18 March, 2010 - 12:00 am
Tags: Android, branch, cmd, git, programming
Posted in english | 1 comment
Getting the Android’s AlarmClock application source from official repositories: git clone git://android.git.kernel.org/platform/packages/apps/AlarmClock.git To get the head version for an old platform like the 1.4 (codename donut), choose the correspondent branch using -o or –origin: git clone git://android.git.kernel.org/platform/packages/apps/AlarmClock.git –origin donut
This is a simple program I wrote called Who Am I that shows informations about the device which it is running. Which can be useful for developers and maybe advanced users. Download: WhoAmI.tar.bz2 – Eclipse project. It’s configured for Android platform 4 (1.6) but should work without problems in newer Android platform versions. WhoAmI.apk – [...]
Quando desenvolvendo aplicações móveis para o Android as vezes precisamos obter imagens do dispositivo para comparar com um alguma referencia no computador. Como tirar screenshots no Android? Usar uma aplicação para isso e então passar as imagens para o computador? Não, há um jeito mais fácil. Juntamente com o Android SDK há uma ferramenta na [...]
3 December, 2008 - 8:32 pm
Tags: Android, café com tapioca, CCT, CEJUG, duke, JavaME, JBoss, Red Hat, Seam, SVG
Posted in português | 1 comment
Download: duke_natal.svg Sábado tem Café com Tapioca do CEJUG, especial de Natal, manhã e tarde de eventos. Pela manhã um mini-curso de JavaME e Android com o Vando Batista do C.E.S.A.R. Pela tarde duas palestras, sobre o JBoss e JBoss Seam com o João Paulo Viragine da Red Hat. Maiores informações e inscrições para o [...]
31 July, 2008 - 12:42 am
Tags: Blur, effect, Ellipse, Gaussian Blur, Gradient, JavaFX, Radial Gradient, RIA, Shadow, sphere, tutorial
Posted in english | 9 comments
This is a short tutorial about some JavaFX elements like ellipses, circles, effects and gradients. In the first code we are creating a frame with a ellipse with center in (120,140), 60 pixels of horizontal radius, 20 pixels of vertical radius and color black. We have also a circle with center in (100,100), 50 pixels [...]