[android-developers] Re: Launching an activity using Linkify

2010-07-23 Thread angushir...@googlemail.com
      // Adapted from Linkify.addLinkMovementMethod(), to make links > clickable >                 // >                 MovementMethod m = view.getMovementMethod(); >                 if ((m == null) || !(m instanceof LinkMovementMethod)) >                 { >                

[android-developers] Launching an activity using Linkify

2010-07-22 Thread angushir...@googlemail.com
Dear all, I'm not sure if this can be done, but is it possible to launch an activity from text that has been Linkified? I'm basically providing an illustrated glossary, and when the user clicks on a highlighted term, I want the activity that handles display of the image and associated t

[android-developers] Embedding appwidget in activity

2010-06-16 Thread angushir...@googlemail.com
Hi all, I need to implement a reusable view for use in several Android applications. Would it be possible to develop an appWidget that can be embedded in an activity, or am I best off providing a customised component? Thanks in advance Angus -- You received this message because you are s

[android-developers] Dictionary application.

2010-05-22 Thread angushir...@googlemail.com
I am currently developing a small dictionary application of 1000 - 2000 terms and their definitions. What would be the best way of inserting this data in SQLite? In the code or read in from XML and then inserted? Angus -- You received this message because you are subscribed to the Google Groups

[android-developers] One clicklistener for many buttons.

2010-04-30 Thread angushir...@googlemail.com
Dear all, I'm implementing an app that has 12 buttons placed in a grid. When one is pressed, the number that the button displays (through button.getText()) has to be retrieved and passed to a common method. I've gone down the route of implementing OnClickListener e.g. public class WordR

[android-developers] ViewFlipper problem

2010-04-28 Thread angushir...@googlemail.com
Dear all, I'm using a viewflipper in an application. At start up I load 50 views into the viewflipper but the viewflipper child count stays at 3. This is obviously not what I want. Any suggestions as to how I get the viewflipper to hold more than 3 views? Regards Angus -- You receiv

[android-developers] View not refreshing

2010-04-26 Thread angushir...@googlemail.com
Hi all, I've extended the View class to create a custom View that draws a shape in the onDraw method. The dimensions of the shape are derived from calling getMeasuredWidth() and getMeasuredHeight(). This works fine when I create one and add it to an alert dialog using builder.setView(). However, if

[android-developers] How many Android phones have touchscreens?

2010-04-21 Thread angushir...@googlemail.com
Hi all, a simple question from a beginner - how many of Android phones support touchscreen applications? Angus -- 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

[android-developers] Hotspot in ImageView

2010-04-20 Thread angushir...@googlemail.com
Dear all, how can I implement an imageview that has touch-sensitive hotspots so that when the user touches one, a dialog or something similar appears. Thanks in advance Angus -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] Dialog display duration

2010-04-19 Thread angushir...@googlemail.com
Dear all, I need to display an alert message for no more than a half a second. As I understand it, Toast only has 2 available durations, with no way to alter them. Correct me if I'm wrong. Which leads me to sing the AlertDialog. What would be the best way of displaying a dialog for 500

[android-developers] Is ViewFlipper startFlipping() random?

2010-04-14 Thread angushir...@googlemail.com
Dear all, I'm developing an application that can take an arraylist of images of varying length and display them in the order in which they are added to the arraylist. I use viewFlipper.addView() to add each image. When I call startFlipping() the images are displayed, but not in any p

[android-developers] Re: Developing a dictionary

2010-03-23 Thread angushir...@googlemail.com
OK, thanks for the swift reply. I'll give it a go. Regards Angus On Mar 23, 10:01 am, timo prill wrote: > hi, > > best way is to use a database to store your data. > have a look at > this:http://developer.android.com/intl/fr/guide/topics/providers/content-p... >

[android-developers] Developing a dictionary

2010-03-23 Thread angushir...@googlemail.com
Dear all, I am currently learning to develop Android applications, and to do this I have decided to develop a dictionary application. The UI, and search facilities are no problem to implement, but my question is, what is the best way to store the entries and definitions for the dictionar

[android-developers] AlertDialog in Android 1.5 and 2.0 / 2.0.1

2010-02-02 Thread angushir...@googlemail.com
Dear all, I am using AlertDialogs in an Android application, and find that when I run them in an emulator that's configured for Android 2.0 or 2.0.1 SDK they appear fine and function as I intended. However, running them in emulators configured for the Android 1.6 SDK or lower, then noth

[android-developers] ERROR/AndroidRuntime(703): java.lang.VerifyError

2010-01-11 Thread angushir...@googlemail.com
Dear all, I'm using the Android Development Toolkit (ADT) in Eclipse Galileo. I've created a project in which to develop some util classes, which I intend to use in several upcoming Android projects. However, when I come to use these util classes (deployed as a jar and included in the A