[android-developers] Re: input method

2009-12-16 Thread kabir
Or if I have some InputMethodService, is it possible to show it
without any need for an edit text, as Android will do?

On Dec 14, 10:55 am, kabir kab...@gmail.com wrote:
 Hi there,

 I want to implement a custom input method for certain EditTexts within
 my app. I understand I need to extend the InputMethodService class,
 but how do I then add this to certain views? I've tried just using the
 class name in the android:inputMethod XML property, but this seems not
 to work.

 Using the SoftKeyboard example in the 1.5 SDK, my manifest is as
 follows:

 --
 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
       package=Softkeyboard.example
       android:versionCode=1
       android:versionName=1.0
     application android:icon=@drawable/icon android:label=@string/
 app_name
         service android:name=SoftKeyboard

 android:permission=android.permission.BIND_INPUT_METHOD
             intent-filter
                 action android:name=android.view.InputMethod /
             /intent-filter
             meta-data android:name=android.view.im
 android:resource=@xml/method /
         /service
         activity android:name=.SoftkeyboardEx
                   android:label=@string/app_name
             intent-filter
                 action android:name=android.intent.action.MAIN /
                 category
 android:name=android.intent.category.LAUNCHER /
             /intent-filter
         /activity

     /application
     uses-sdk android:minSdkVersion=3 /

 /manifest
 --

 and the xml code:

 --
 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
     android:orientation=vertical
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     
 TextView
     android:layout_width=fill_parent
     android:layout_height=wrap_content
     android:text=@string/hello
     /
 EditText
         android:id=@+id/EditText01
         android:layout_height=wrap_content
         android:layout_width=fill_parent
         android:inputMethod=SoftKeyboard
 /EditText
 /LinearLayout
 --

 The app fails with a ClassNotFoundException. However removing
 'android:inputMethod=SoftKeyboard' fixes it, and I can select
 SoftKeyboard as an input method for the EditText when it is running.

 What am I doing wrong? Have I declared something wrongly in the
 manifest?

 Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] input method

2009-12-14 Thread kabir
Hi there,

I want to implement a custom input method for certain EditTexts within
my app. I understand I need to extend the InputMethodService class,
but how do I then add this to certain views? I've tried just using the
class name in the android:inputMethod XML property, but this seems not
to work.

Using the SoftKeyboard example in the 1.5 SDK, my manifest is as
follows:


--
?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=Softkeyboard.example
  android:versionCode=1
  android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name
service android:name=SoftKeyboard
 
android:permission=android.permission.BIND_INPUT_METHOD
intent-filter
action android:name=android.view.InputMethod /
/intent-filter
meta-data android:name=android.view.im
android:resource=@xml/method /
/service
activity android:name=.SoftkeyboardEx
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

/application
uses-sdk android:minSdkVersion=3 /

/manifest
--

and the xml code:


--
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/hello
/
EditText
android:id=@+id/EditText01
android:layout_height=wrap_content
android:layout_width=fill_parent
android:inputMethod=SoftKeyboard
/EditText
/LinearLayout
--


The app fails with a ClassNotFoundException. However removing
'android:inputMethod=SoftKeyboard' fixes it, and I can select
SoftKeyboard as an input method for the EditText when it is running.

What am I doing wrong? Have I declared something wrongly in the
manifest?

Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] files and updating

2009-12-03 Thread kabir
Hi,

Quick question: what happens to files stored locally when you update
your app through the market?
e.g. files that have been created using for example
'this.openFileOutput(page.txt, MODE_WORLD_READABLE);'?

Are they maintained or deleted by default? if deleted, how can i make
the system keep those files in place?

I hope this does not seem silly, but it would be a big problem to have
data lost.

Cheers
Kabir

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: files and updating

2009-12-03 Thread kabir
thanks!

On Dec 3, 12:08 pm, Mark Murphy mmur...@commonsware.com wrote:
  Quick question: what happens to files stored locally when you update
  your app through the market?
  e.g. files that have been created using for example
  'this.openFileOutput(page.txt, MODE_WORLD_READABLE);'?

  Are they maintained or deleted by default?

 Maintained. They will be deleted if the user uninstalls the app.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer Books:http://commonsware.com/books.html

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ADC2 Results?

2009-12-01 Thread kabir
congrats to all the winners! unfortunately my app, mobilematics
(http://www.mobilematics.co.uk) did not make it.

does anyone know - the order in which apps are listed on the category
pages, is that ranked best first after the top 3?

cheers

On Dec 1, 2:29 pm, Nicholas Albion nalb...@gmail.com wrote:
  I would definitely focus on simplicity and polish if there's another ADC.

 Yes, so perhaps it should be renamed from a Challenge to a Gimmick
 Fest?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ADC2 entries so far...

2009-09-18 Thread kabir

Education/Reference
---

mobilematics - http://www.mobilematics.co.uk

On Sep 13, 6:12 pm, Mobidev android.mobi...@gmail.com wrote:
 Its mid September and ADC team will soon launch the ADC 2 judging
 application. So far its been a great job by the ADC team with sticking
 to the submission deadline and swift uploads(leaving aside package
 name confusion among the participants).

 Meanwhile, below are about 105 ADC2 entries posted on forum. In case
 of new additions or corrections please reply to this discussion with
 category app name links. ADC1 saw about 1788 apps and my guess
 is ADC2 will see a tleast 2500 apps considering the tight deadline
 (could have been much higher(4K+) otherwise).

 From the trend it seems that the Miscellaneous category has far less
 entries than Prod/Tools and Games(both) categories. Possibly, 21st
 ranking entry under Prod/Tools could be much better than 3rd ranking
 entry under Misc category. Unlike ADC1, this time Category will be a
 key factor in winning; along with Originality, Effective Platform Use,
 Polish and Indispensability.

 -
 Education/Reference
         Librarium IIhttp://steveoliverc.squarespace.com/
         Math Jungle
         Mystic Maggiehttp://www.phdgaming.com/general_media/mm/
         Vivify picture: mathhttp://vivifypicture.com/

 Entertainment
         Daisy Gardenhttp://www.tomgibara.com/android/daisy/garden/
         Taps Of Firehttp://code.google.com/p/tapsoffire

 Games: Arcade/Action
         CowPotato 3Dhttp://www.froogloid.com/cowpotato
         FRGhttp://www.woogames.com/
         Galactic Guardian: Zap 
 GPShttp://sites.google.com/site/mysticlakesoftware/
         Graviturnhttp://www.cyrket.com/package/com.fheft.graviturn
         Head To Head Racinghttp://headtoheadracing.appspot.com/
         Light Racer 3D Trial
         ProjectINFhttp://www.chickenbrickstudios.com/
         UrbanGolf
         X-Dischttp://www.youtube.com/watch?v=3EkH-b15fPY
         Zepto Wars - RTS

 Games: Casual/Puzzle
         Furdiburbhttp://www.sheado.net/
         Goobers Vs. Boogershttp://goobersvsboogers.blogspot.com/
         ongPayhttp://www.yakloingames.com/
         Relativiahttp://www.polyclefsoftware.com/relativia.html
         Splat!: Bugs IIhttp://dkdroid.com
         What the Doodle!?
 Lifestyle
         Beer Cloudhttp://greatbrewers.com/story/beercloud-mobile-app
         Bottle Buzz
         DoIthttp://curvefish.com/apps/doit.htm
         FoxyRing  http://www.levelupstudio.fr/foxyring
         Gigboxhttp://www.mygigbox.com/
         NetDroid
         NotiMe!http://www.youtube.com/watch?v=wFjoZmrj40k
         ReaderScopehttp://www.altcanvas.com/android/readerscope
         Rhythmatics Alphahttp://www.twitter.com/brownbaggames
         SpecTrek

 Media
         Gallery Map
         geoPastehttp://www.geopaste.com/
         Mediafly Mobile Audio Podcast Client
         MicroJam
         MicroJam
         MyPODhttp://www.my-pod.org/
         PackRathttp://packrat.unwesen.de/
         Time-Lapsehttp://www.sheado.net/
         Uloopshttp://www.uloops.net/

 Misc
         Local Agentshttp://local-agents.appspot.com/
         picjiggles litehttp://www.yakloingames.com/

 Productivity/Tools
         Alarmoidhttp://www.youtube.com/watch?v=yNcVkP_vK08
         aListhttp://androidalist.blogspot.com
         AppManagerhttp://curvefish.com/apps/appmanager.htm
         GeoAlerthttp://sites.google.com/site/appyoursmobile/geoalert
         Hoccerhttp://www.hoccer.com/
         MobileWrite
         Mobisle Noteshttp://www.facebook.com/pages/MobisleApps/127994296229
         MyPageshttp://www.youtube.com/watch?v=75lR4zLy_LQ
         OpenLoopzhttp://sites.iode.co.uk/openloopz/
         Personalyticshttp://personalytics.net/
         Skiba PDF Readerhttp://www.anddev.org/skiba_pdf_reader-t6122.html
         Smart Lockhttp://www.youtube.com/watch?v=ipue9Yhi5VA
         Talking Calendarhttp://www.pwnwithyourphone.com/
         Taskerhttp://tasker.dinglisch.net/
         Thinking Spacehttp://homepages.nildram.co.uk/~bakachu/screenshot.png
         Tracklethttp://tracklet.appspot.com
         txeethttp://txeet.com
         Voice Caller IDhttp://www.pwnwithyourphone.com/
         WebReaderhttp://webreader.vamsee.in/
         What Zip?http://www.usnaviguide.com/zip.htm
         Xeeku Search

 Social Networking
         A-GLOBAL-MINDhttp://a-global-mind.blogspot.com/
         Cartoon Ganghttp://www.cartoongang.net/
         ClapCard
         SocialMusehttp://www.mixzing.com/
         Swift Twitter Apphttp://www.swift-app.com/
         TweetsAloudhttp://www.pwnwithyourphone.com/

 Travel
         AugSatNavhttp://www.phyora.com/
         BabelSnaphttp://babelsnap.com/
         Location Scouthttp://getlocationscout.com/
         Radar 
 Now!http://maps.huge.info/blog/2009/09/new_android_app_radar_now.html
         Transport 

[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-10 Thread kabir

A bit late I know, but here's the website for my app, mobilematics:

http://mobilematics.co.uk/

On Sep 9, 6:59 am, broc.seib broc.s...@gmail.com wrote:
 For ADC2 I created BabelSnap! for the Travel category. You use the
 device's camera to snap a bit of text, whether from a public sign, a
 menu, or newspaper, etc.  The image is fed through an OCR, and the
 resulting plain text can be translated to any language.

  http://babelsnap.com/  (Yes, the demo video has the world's
 cheesiest and generic music. :-)  Maybe I should have left it with no
 audio! )

 I attended GoogleIO at the end of May where I first learned about
 ADC2, and received one of the Google Ion devices. Substantial prize
 money plus free device -- I could not ignore the opportunity to
 participate. That prize money could afford me some more help, and
 maybe some better OCR that recognizes non-latin characters, and maybe
 help pay some bills too! :-)

 I built BabelSnap in about 5 weeks. I had all the basic stuff
 functioning in about half that time. The other half I spent learning
 the idiosyncrasies of an android app -- like what happens when someone
 presses the back button or home button while your background thread
 (not your UI thread) is still doing processing...  And having to do
 manual garbage collection when manipulating/copying large images from
 the camera And the camera API itself -- could use some
 improvements in documentation, and in the API itself. (That is another
 topic.)

 The version of BabelSnap I submitted to ADC works well if you can
 acquire a good image for the OCR. But this takes a bit of practice,
 holding the camera steady while focusing, framing the text properly,
 and hitting the shutter button all at once. I want it to work a little
 more casually, and not require so much practice. The revision I am
 currently working on will permit the user to assist in picking out the
 relevant bits of the snapped pic that contain the text they want to
 translate, by simply touching/dragging across that part of the image.

 In all, I have a very positive experience in creating an Android app.
 I am impressed with what I could assemble in such a short period of
 time.

 As for the deadline and submitting updates.  Google *had* the draw
 the line somewhere. I could have gone on indefinitely fixing things
 up. I was glad to have a hard deadline, and sad to give up some
 functions that I wish could have been present for the judging. I do
 like the approach of continuing to make revisions available in the
 Market independent of the ADC submission.

 I also think Google has the right approach in trying to cultivate new
 mobile app ideas -- everyone loves a little competition. And Google
 seems serious; they've put forth a great deal of cash and hardware.

 Good luck to all. I look forward to trying out your new apps.

 -broc

 On Sep 2, 12:41 am, Lout lout.r...@googlemail.com wrote:

  While you developers relax... would you mind sharing what apps to
  expect through this challenge.. and anything else you wish to share
  about ADC2 submissions... well anything including the fact: 'thank
  God, no more sleep less nights'!

  Am collecting information about the challenge (ADC2) for a news
  article as am with cnet (and AP). Pitch your app if you have already
  published or would soon publish on the market too.

  Your app name and description, web link if any, experience with
  ADC2, ... anything would be useful for our article(s).

  And do you feel that there would have been more submissions than in
  ADC1?
  Is the competition going to be tougher or less profound as you were
  allowed to put up apps not published before 1st Aug only?

  Do you think that all apps that didn't try for ADC1 should have had a
  chance?

  Congratulations on your submissions while you wait for the next
  phase.
  Thanks,
  Lout Reilly
  ps: Moderators we request you to let this through so that you too get
  some feedback.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-02 Thread kabir

I wrote something I myself would find useful - a maths app,
'mobilematics.' (I am a university student of this subject.)

Basically my intention was to replace the need for a graphical
calculator (those can be £50+!), with some nice features such as a
'Teacher' mode, matrices, statistics and interpolation, etc.
Submitted to education/reference, though I'm a bit annoyed because
I've just noticed a small (superficial) mistake!

Good luck to everyone
Kabir


On Sep 2, 1:36 pm, Pieter pie...@gamesquare.nl wrote:
 A small correction: we thought long and hard in which category to
 submit SpecTrek. We finally decided on Lifestyle because our app
 starts off as a game but soon turns into a fitness tool, especially
 when you play it intensely.

 On Sep 2, 12:50 pm, Lout lout.r...@googlemail.com wrote:
 ... *Here is the interpretation so far:*
 ...
   Game arcade/action: SpecTrek
   Description: Augmented reality ghost hunting fitness game
   By: Pieter
   Feedback: Faced specific android hardware bugs (on Samsung Galaxy)
  and had tough time testing.

 ...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] textbox error

2009-08-29 Thread kabir

Hi,

I am experiencing a bug with some EditTexts. when you click on them
and they take focus, all is fine, but when you navigate away using the
track ball to another similar edittext they crash, throwing an error
from the onDraw function.

the textboxes are referenced minimally by other code, and they live in
a linearlayout, in a linearlayout in a relative layout.

has anyone experienced something like this before, or know of a
possible solution?

Cheers, any help appreciated
Kabir
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: textbox error

2009-08-29 Thread kabir
): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.View.draw(View.java:5841)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.View.draw(View.java:5841)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.widget.FrameLayout.draw(FrameLayout.java:352)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at
android.view.View.draw(View.java:5841)
08-29 14:15:15.797: ERROR/AndroidRuntime(742): at andro


On Aug 29, 3:02 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t-
mobile.com wrote:
 What's the error - please paste the logcat output.

 Thanks,
 Balwinder Kaur
 Open Source Development Center
 ·T· · ·Mobile· stick together

 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Aug 29, 6:56 am, kabir kab...@gmail.com wrote:

  Hi,

  I am experiencing a bug with some EditTexts. when you click on them
  and they take focus, all is fine, but when you navigate away using the
  track ball to another similar edittext they crash, throwing an error
  from the onDraw function.

  the textboxes are referenced minimally by other code, and they live in
  a linearlayout, in a linearlayout in a relative layout.

  has anyone experienced something like this before, or know of a
  possible solution?

  Cheers, any help appreciated
  Kabir


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Screen rotation

2009-08-23 Thread kabir

Thanks

On Aug 22, 11:27 pm, kabir kab...@gmail.com wrote:
 Hi,

 I have an activity which I have defined to keep in portrait position.

 However I would still like to change things (slightly) when the screen
 is rotated, what is the best way of doing this?
 I notice onConfigurationChanged is still called, but this still
 reports portrait mode.

 I want to keep the notification bar etc in the same position if
 possible.

 Cheers
 Kabir
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Screen rotation

2009-08-22 Thread kabir

Hi,

I have an activity which I have defined to keep in portrait position.

However I would still like to change things (slightly) when the screen
is rotated, what is the best way of doing this?
I notice onConfigurationChanged is still called, but this still
reports portrait mode.

I want to keep the notification bar etc in the same position if
possible.

Cheers
Kabir
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: dip and setting values in code

2009-07-08 Thread kabir

thanks, appreciate that!

On Jul 8, 2:13 am, Romain Guy romain...@google.com wrote:
 int dip = (int) (20 *
 aContext.getResources().getDisplayMetrics().density + 0.5f);



 On Tue, Jul 7, 2009 at 1:57 PM, kabirkab...@gmail.com wrote:

  Hi

  I have read about using a 'dip' scale rather than just px, this is
  straightforward to implement in XML.
  But how do I adjust values accordingly in the java code? For example:

  tv.setTextSize(20)

  will result in text of size 20 px right? What's the quickest way of
  making this 20 dip, other than adding a resource?

  Thanks

  Kabir

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] dip and setting values in code

2009-07-07 Thread kabir

Hi

I have read about using a 'dip' scale rather than just px, this is
straightforward to implement in XML.
But how do I adjust values accordingly in the java code? For example:

tv.setTextSize(20)

will result in text of size 20 px right? What's the quickest way of
making this 20 dip, other than adding a resource?

Thanks

Kabir

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---