[android-developers] Re: TextView Question

2008-04-07 Thread Dan U.
Might be helpful if you posted your code. Here's some example code that should give you an idea how to do it... public class MyActivity extends Activity { TextView textView; public void onCreate(Bundle bundle) { super(icicle); setContentView(R.layout.main); textVi

[android-developers] Re: View Activity Communicaton

2008-04-07 Thread Dan U.
> I'm not setting these view components through > androidManifest.xml. I don't think I understand. How does a view have anything to do with the androidmanifest? On Apr 7, 11:08 pm, Rui Martins <[EMAIL PROTECTED]> wrote: > Possibly an important piece of information that I haven't mentioned > befo

[android-developers] Re: View Activity Communicaton

2008-04-07 Thread Dan U.
> Inside a view, apparently we can't get a reference to the Activity > that contains us (the view), and even if there is a way to get the > reference, we can't probably call it directly, due to UI threading > issues. You do have access to the Activity. It's actually the Context that gets passed i

[android-developers] Re: View Activity Communicaton

2008-04-07 Thread Dan U.
Wow, a lot of stuff to cover. I'll try to keep it short. > Now if, you look at the View object, it's the only one to have user > input handlers, like: > onMotionEvent( MotionEvent event ) ( or onTouchEvent for M5), and > onKeyDown( int keyCode, KeyEvent event ) ! > An Activity doesn't have those

[android-developers] Re: TextView Question

2008-04-07 Thread Megha Joshi
So, are you not making the IntentReceiver an inner class of your Activity? On Mon, Apr 7, 2008 at 10:55 PM, Vijayabaskar s < [EMAIL PROTECTED]> wrote: > > sorry not work... > my main class used Textview. IntentReceiver used to another class. > i call some string in IntentReceiver to main class f

[android-developers] Communication between two emulators. UDP Chat app

2008-04-07 Thread Amit
Hi all, I am trying to develop small chat application using UDP in android. The problem I am facing here is, I want to run the client on one emulator and server on the other. I am able to run two apps on different emulators, but I am not getting the expected output. Whenever I try to send a pac

[android-developers] Re: View Activity Communicaton

2008-04-07 Thread Rui Martins
Possibly an important piece of information that I haven't mentioned before. I'm NOT using the available Android widjets, like buttons and similar, to avoid GUI problems between SDKs, specially since the application is a game, and is NOT common to use the phone OS GUI inside a game. Games usualy

[android-developers] Re: TextView Question

2008-04-07 Thread Vijayabaskar s
sorry not work... my main class used Textview. IntentReceiver used to another class. i call some string in IntentReceiver to main class function with string .. Logcat print that string. But not update textview only display nullpointer exception.. Regards, Baskar --~--~-~--~~-

[android-developers] Re: View Activity Communicaton

2008-04-07 Thread Rui Martins
Another Example: How do we call our activity finish method, from our activity view class ? Inside an Activity context, we can just call finish(); Inside a view, apparently we can't get a reference to the Activity that contains us (the view), and even if there is a way to get the reference, we c

[android-developers] Re: bitmap image changed. but why?

2008-04-07 Thread Rui Martins
You are doing something really strange! First you setup a bitmao as your canvas bitmap = Bitmap.createBitmap(100, 100, true); Canvas canvas = new Canvas(bitmap); But later, you use your canvas ( which uses your bitmap as it's buffer) and you draw on it, using itse

[android-developers] Any generic logic for intent identification to be used by existing applications

2008-04-07 Thread Nitin Khanna
Hi! Is there a way in android to extend the intent identification logic for existing applications. Say for example i type in the rss feed url or an http url in the phone application or something similar. So can I extend the identification logic such that the application executes a parser defined

[android-developers] Extracting interface address of android emulator

2008-04-07 Thread Nitin Khanna
Hi! How do I extract all the interface address attached to the emulator. The address which is being retrieved for now is the loopback address. My application logic requires the IP address to be retrieved, as it based on P2P communication. Any suggestions. Regards Nitin --~--~-~--~~--

[android-developers] View Activity Communicaton

2008-04-07 Thread Rui Martins
I have been programming for android since January, and I must say, that I still don't get how the communication between Views and Activities is accomplished successfully. The whole design on this communication is "fuzzy" at least for me. NOTE: using M3 currenlty. Examples: Activities can have

[android-developers] Re: TextView Question

2008-04-07 Thread Vijayabaskar s
Thanks for u r replay. I try this... Regards, Baskar --~--~-~--~~~---~--~~ 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

[android-developers] Change ListView Item height?

2008-04-07 Thread Redhunt
Hi, Can anyone show me how I would go about changing the height of the items in a ListView? Also is there a way to pad the actual text list? I want to put a background and make the text (and more importantly the divider ) not as wide as the background. --~--~-~--~~~--

[android-developers] Re: Listview and List Selector(Urgent)

2008-04-07 Thread Greg
thanks Dan i have done it like this mText.setTextColor(new ColorStateList( new int[][] { new int[] { android.R.attr.state_selected}, new int[1], }, new int[] { Color.rgb(255, 255, 255),

[android-developers] Re: TextView Question

2008-04-07 Thread Megha Joshi
One of the ways you can do this by defining the IntentReceiver as an inner class of the Activity which has the TextView, as you can always access the variables of the outer class from an inner one. On Mon, Apr 7, 2008 at 9:00 PM, baskar <[EMAIL PROTECTED]> wrote: > > > Hi All, > > I get informati

[android-developers] Re: Performance profiler?

2008-04-07 Thread thrusty
I've had similar problems running traceview: - On Windows XP SP2 running JRE1.6.0_05, traceview fails exactly as you've stated. Have you already filed a bug in the issue tracker for this? - On Mac OS X 10.5.2, traceview simply fails silently. I've already filed a bug in the issue tracker for t

[android-developers] TextView Question

2008-04-07 Thread baskar
Hi All, I get information from IntentReceiver. How to display that information to textview.. please help me.. Regards, Baskar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

[android-developers] Re: Call out to the community about the poor quality of Android's error messaging

2008-04-07 Thread acopernicus
Thanks Anil. I was hoping to get the Java source code for classes like the MediaPlayer, LinearLayout, & such. Much appreciate the pointer to the Emulator code though. Anthony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Call out to the community about the poor quality of Android's error messaging

2008-04-07 Thread Anil
On Apr 5, 12:23 pm, acopernicus <[EMAIL PROTECTED]> wrote: > Sadly the source isn't located at that page, but if someone has access > to the source code, then please send me the link to it. > ... but until then, we need to > discover it ourselves by reading through the code. > > Anthony Here it

[android-developers] bitmap image changed. but why?

2008-04-07 Thread Gibson
hi all, I wrote following code. class MyView extends View { Bitmap bitmap; public MyView(Context context) { super(context); Drawable drawable = context.getResources().getDrawable(R.drawable.icon); bitmap = Bitmap.createBitmap(100,

[android-developers] Re: Are you satisfied or disappointed with the level of support from Google, for Android?

2008-04-07 Thread jtaylor
"That's important for the Android team and for the Open Handset Alliance and its members, that's important for Google. That's also important for the developer community and for the end users." Hello Jean-Baptiste, I suggest that the aim be for the phones to come out in 2009. If everyone is patie

[android-developers] Re: Database query NULL exception

2008-04-07 Thread Dan U.
Have you tried using Log to print out the values you are using in your SQL queries? I bet something there is null. Do you have the stack trace to tell you what line in the code is causing the problem? On Apr 7, 6:24 pm, Sawan007 <[EMAIL PROTECTED]> wrote: > Could you please advise what is wrong w

[android-developers] Database query NULL exception

2008-04-07 Thread Sawan007
Could you please advise what is wrong with this piece of code. After clikcing on button "Change Password" (confirmButton). I get the Application error An error has occurred in ... near "null":syntax error. Please help. public class password extends Activity { private SQLiteDatabase db;

[android-developers] Re: Retrieving the location provider "gps" causes a NullPointerException in LocationManager.createProvider

2008-04-07 Thread Dan U.
Well, your code does work for me, although I'm not sure what you are trying to do here... > The application is retrieved by using getApplication() of a sub- > activity. That might be the problem. On Apr 7, 4:22 pm, NTR <[EMAIL PROTECTED]> wrote: > The permissions are: > > > android:na

[android-developers] Re: dynmatically create menuitem

2008-04-07 Thread xingye
Here is a full example for your question: http://code.google.com/p/sharepath see buddy.java plz On 4月8日, 上午4时51分, hackbod <[EMAIL PROTECTED]> wrote: > To change the menus each time they are displayed, implement > Activity.onPrepareOptionsMenu(). > > On Apr 7, 12:45 pm, Android-Berry <[EMAIL PRO

[android-developers] More than one searchable per activity

2008-04-07 Thread Kenny
Hi, Does any one know if there is a way to define more than one searchable for a single activity? An example (although probably not very useful in this case) would be allowing search for both Name and Type for the Contact activity. I have tried putting two meta-data tag in the manifest, but onl

[android-developers] Re: Radio buttons' and checkboxes' text goes behind the buttons themselves?

2008-04-07 Thread NTR
Really? Sounds odd. What about the other issues? Romain Guy wrote: > > And, if I have a horizontal LinearLayout and put an element in the > > middle of it, with horizontal FILL_PARENT, the elements on the right > > of it won't be shown. For workaround, I've set the horizontal span to > > WRAP

[android-developers] Re: Retrieving the location provider "gps" causes a NullPointerException in LocationManager.createProvider

2008-04-07 Thread NTR
The permissions are: Anything missing? Dan U. wrote: > have you set proper uses-permission settings in androidmanifest.xml? > > On Apr 6, 5:36 pm, NTR <[EMAIL PROTECTED]> wrote: > > I even tried running "emulator -wipe-data" again, but it didn't > > help... > > > > NTR wrote:

[android-developers] Is there a way to set the minimum size of a window?

2008-04-07 Thread NTR
So many questions lately... I've got a WebView inside of a Window (using the dialog theme). It works fine as long as the website is loaded quickly. In that case, the WebView resizes the window just correcly. But it seems that if it takes a while to load the page, the WebView "forgets" to resize t

[android-developers] Re: startSearch

2008-04-07 Thread Kenny
Just for clarity... this page may help. http://code.google.com/android/reference/android/app/SearchManager.html Kenny On Mar 30, 2:51 pm, ScottG <[EMAIL PROTECTED]> wrote: > To answer my own question, put the following in the AndroidManifest > description of the main activity: > >

[android-developers] Re: Confusing Problem about MediaPlayer

2008-04-07 Thread Megha Joshi
Hi, This is because the surface is not yet ready for the mediaplayer, please call the mediaPlayer initialization code in or after OnSurfaceCreate() callback.. Thanks, Megha On Mon, Apr 7, 2008 at 9:45 AM, fubin <[EMAIL PROTECTED]> wrote: > > In Sample given by google There is a button to invoke

[android-developers] Re: intent-filter match on android:path ?

2008-04-07 Thread Megha Joshi
Hi David, This is because the android.intent.action.VIEW is not a broadcast action, please check the response from Dianne below on a similar issue: http://groups.google.com/group/android-developers/msg/b0c05aa238160047 Thanks, Megha On Mon, Apr 7, 2008 at 11:20 AM, David Welton <[EMAIL PROTECTED

[android-developers] Re: Escaping values in SQL Queries

2008-04-07 Thread Megha Joshi
Hi Andy, If you use whereArgs or selectionArgs the values don't need to be escaped because they bypass the SQL parsing phase entirely. That's the preferred way to do things. If you don't want to do that, or can't for various reasons, you can use DatabaseUtils.appendEscapedSQLString, or DatabaseUt

[android-developers] How many meters can fit the screen example

2008-04-07 Thread Carl H.
Well, I am wondering if this is the most accurate way. I have a meter to zoom level function. Basically what is the zoom level needed to fit X meters. So if I want to have 1000 meters visible on the map, which is the best zoom level? I have this: Math.round(Math.log(EQUATOR_CIRCUMFERENCE / METE

[android-developers] Linkify Text -- Focus disappears while navigating between more than one?

2008-04-07 Thread conlan
I have two TextViews that are linkified and I went I navigate with the directional arrows between them (up and down) the focus seems to disappear at the first key press and then reappear on the next key press. so for example: --- http://test <== Has focus http

[android-developers] Re: New activity move in and out animation

2008-04-07 Thread hackbod
Sorry, custom application animations for windows are not currently supported. You can however run whatever animations you want on any views inside of a window. On Apr 7, 11:39 am, Jackkk <[EMAIL PROTECTED]> wrote: > Hi! > > How do you set in the styles that on activity load the new window > move

[android-developers] Re: dynmatically create menuitem

2008-04-07 Thread hackbod
To change the menus each time they are displayed, implement Activity.onPrepareOptionsMenu(). On Apr 7, 12:45 pm, Android-Berry <[EMAIL PROTECTED]> wrote: > Hi There, > > As you know, we create a menuitem at onCreateOptionsMenu method, > > However, when the view content has been changed, for examp

[android-developers] Re: how to build the sample code from command line?

2008-04-07 Thread Mikko Varri
Hi Jun, Assuming you've got all the prerequisites installed (Ant and SDK tools in your PATH) and that you're using Linux, here's how I did it. cd ~/src cp -a /opt/android-sdk/samples/NotePad NotePad activityCreator.py --out NotePad com.google.android.notepad.NotesList cd NotePad ant adb install

[android-developers] Re: how to build the sample code from command line?

2008-04-07 Thread Megha Joshi
Hi, You can use the activityCreator.py scriptfor building existing projects. The existing java/resource files will not be overrwritten. For example, to build ApiDemos follow the steps below: $ cd android_sdk/samples/ApiDemos $ ../.

[android-developers] Re: how to build the sample code from command line?

2008-04-07 Thread Shane Isbell
JVending here: http://code.google.com/p/jvending On Mon, Apr 7, 2008 at 1:42 PM, Shane Isbell <[EMAIL PROTECTED]> wrote: > I've built some Maven plugins to build with Android. > http://code.google.com/p/masa/ I don't use Eclipse either. Just type 'mvn > install' and it will build the app and ins

[android-developers] Re: how to build the sample code from command line?

2008-04-07 Thread Shane Isbell
I've built some Maven plugins to build with Android. http://code.google.com/p/masa/ I don't use Eclipse either. Just type 'mvn install' and it will build the app and install into the emulator. In the trunk version, there is also an option for deploying directly to a JVending server http://code.go

[android-developers] Unable to start receiver - Please help - I am stuck here .......

2008-04-07 Thread Jorge
Hi, I am having a weird problem with an Intentreceiver. I got "Unable to start receiver" error. Can somebody help me, the deadline is really really near and this is the last thing to finish my project :)) Thanks !!! This is my code: ***

[android-developers] Re: android:password first letter problem

2008-04-07 Thread Dan U.
There is no solution. It's expected functionality when using a password edittext. On Apr 7, 12:35 pm, Android-Berry <[EMAIL PROTECTED]> wrote: > I have the issue that you mentioned ~~ > > Did you get any solution? > > Thanks~ > > On Apr 7, 1:10 pm, David Given <[EMAIL PROTECTED]> wrote: > > > > >

[android-developers] Re: android:password first letter problem

2008-04-07 Thread Romain Guy
When you type a letter in a password field, the letter is briefly shown in clean but should be replaced by a dot after a very short amount of time. -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ You received this message because you are subscribed t

[android-developers] how to build the sample code from command line?

2008-04-07 Thread monkey.jsun
All the tutorials have been talking about building sample code from Eclipse. I wonder if there is an easy way to build them from command line. It is not obvious how to achieve this with activityCreator.py script. Cheers. Jun --~--~-~--~~~---~--~~ You received thi

[android-developers] dynmatically create menuitem

2008-04-07 Thread Android-Berry
Hi There, As you know, we create a menuitem at onCreateOptionsMenu method, However, when the view content has been changed, for example, first the Screen is blank, no view is added,and we display only one menuitem called "Add a Button", After fullfill this function, I want to add a menuitem "De

[android-developers] Re: android:password first letter problem

2008-04-07 Thread Android-Berry
I have the issue that you mentioned ~~ Did you get any solution? Thanks~ On Apr 7, 1:10 pm, David Given <[EMAIL PROTECTED]> wrote: > goro wrote: > > Hi all, > > I have the following problem: > > I have an EditText with android:password="true". When I type in, the > > first letter allways appear

[android-developers] Escaping values in SQL Queries

2008-04-07 Thread Andy
Hi all When using the SQLite functions in the Android API is there a way to escape special character in a string before using it in a query? I am a little worried about forming queries using code such as "... FIELD=\"" + value + "\" ... " in case the value contains special characters. Not escapi

[android-developers] New activity move in and out animation

2008-04-07 Thread Jackkk
Hi! How do you set in the styles that on activity load the new window moves in from right and when you finish the activity it fades out or moves right? My style has defined this way: @drawable/back_loader [android-developers] intent-filter match on android:path ?
Any idea why this: . Isn't matching on messages like this: Intent { action=android.intent.action.VIEW data=content://im/messagesBy/1/1/serverwitness%40gmail.com launchFlags=4 extras=Bundle[{accountId=1, [EMAIL PROTECTED]/D2530546, providerId=

[android-developers] Re: Is it safe to share a View among several layouts?

On Apr 7, 11:50 am, hackbod <[EMAIL PROTECTED]> wrote: > On Apr 7, 7:50 am, Anil <[EMAIL PROTECTED]> wrote: > > That is, the only native x86 code that is being run is an ARM > CPU emulator and the UI shell of the emulator. The ARM emulator is, > in turn, running a complete ARM-based system, fr

[android-developers] Re: gtalkservice.IGTalkSession.logout() causes GTalk Service to crash

Yes, I've seen this problem, and worse. If you remove the account with the dev tool, all seems well: ya can add and remove accounts ad nauseum with few problems, IF ... The IF is that you machine better be blitzing fast otherwise the SSL certificate validation will time out randomly, and then eve

[android-developers] Re: How to correctly unregister GPS notifications?

I agree with Dan about the logical ordering of things and programmed my service accordingly. Unfortunately, I get the errors that Jakob reports. I've tried the other order, same result. It was there with the M3 SDK, and is still there with both versions of the M5 SDK. And it happens every time I

[android-developers] Re: "Hello, Android!" doesn't get built.

Most likely you are running a Fedora system which already has Java installed. Do a "which javac" to see if it comes from /usr/bin. If so, that explains. To fix this problem, add /usr/java//bin in the front of your PATH. For exmple, export PATH=~jsun/work/android/android-sdk_m5-rc15_linux-x86/t

[android-developers] Re: android:password first letter problem

goro wrote: > Hi all, > I have the following problem: > I have an EditText with android:password="true". When I type in, the > first letter allways appears instead of a dot. I have in the xml > file: IIRC, when in password mode, an EditText will always show you the last character in clear (presu

[android-developers] Re: Amount of Zoom from Distance in Maps (Very Easy)

Nevermind, I got that with the midpoint formula: http://www.purplemath.com/modules/midpoint.htm Thanks, Noam. On Apr 7, 9:09 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > And how could I figure out the coordinates of the center of two > locations? > > Thanks, > Noam. > > On Apr 6, 11:07 p

[android-developers] Re: Is it safe to share a View among several layouts?

On Apr 7, 7:50 am, Anil <[EMAIL PROTECTED]> wrote: > The same list loaded almost instantaneously - too fast to measure by > hand, but less than half a second - using a Java Swing application. > The parsing and loading code was identical - except that in Android > one has to use the SAXParserFactor

[android-developers] Re: Annotations and reflection

Hi, thanks for response. In the meantime, I found some "old" issue about this here: http://code.google.com/p/android/issues/detail?id=29 And there is also some workaround, with usage of Retrotranslator: http://retrotranslator.sourceforge.net/#android .. unfortunatelly, I didn't convince it

[android-developers] Confusing Problem about MediaPlayer

In Sample given by google There is a button to invoke a file. private void playVideo(Integer Media) { try { // If the path has not changed, just start the media player path = "/data/room.mp4"; // Create a new media player and set the listeners

[android-developers] Confusing Problem about VideoView

The VideoView example works fine when play just a sigle mp4 file, But I wander if I can pause the current playing file and setpath to another file ? I tried but it failed. how should I do if I want to switch between different mp4 files while the previous one is not finished? I use the following

[android-developers] Re: Amount of Zoom from Distance in Maps (Very Easy)

And how could I figure out the coordinates of the center of two locations? Thanks, Noam. On Apr 6, 11:07 pm, "Dan U." <[EMAIL PROTECTED]> wrote: > You should use zoomToSpan instead of zoomTo, but you still need to > calculate the latitude/longitude (which you'd likely need to do anyway > with zo

[android-developers] Re: About Terms & conditions to submit an application

Thank you for your comments. I have a better view. I will submit the interface for my application. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

[android-developers] Re: Annotations and reflection

Hi, I don't know about M5 but I can confirm you that annotations and isAnnotationPresent work great in the next SDK. I recently used this method successfully. On Mon, Apr 7, 2008 at 4:15 AM, srakyi <[EMAIL PROTECTED]> wrote: > > Are reflection methods like > java.lang.reflect.AccessibleObject.

[android-developers] Re: Listview & animation problem

Hi, This is because ListView caches its children in Bitmaps during a scroll to get better performance. You can try turning off the caching (see the documentation for XML attributes in ViewGroup and AbsListView). On Mon, Apr 7, 2008 at 7:05 AM, wonderoid <[EMAIL PROTECTED]> wrote: > > I have som

[android-developers] Re: Is it safe to share a View among several layouts?

There is definitely something wrong going on in your application and we'd be happy to assist. Just know that we test Android on actual devices every day and we never encountered such an impressive slowdown. On Mon, Apr 7, 2008 at 7:50 AM, Anil <[EMAIL PROTECTED]> wrote: > > Thanks hackbod, for r

[android-developers] Re: Is it safe to share a View among several layouts?

Thanks hackbod, for replying. As a well wisher, I must say the slowness of the Android UI really bothers me. It took 17 seconds to parse an XML file and load the UI widgets - a list of compound items. The same list loaded almost instantaneously - too fast to measure by hand, but less than half a s

[android-developers] Sending SMS

Hello, can you confirm that at the moment there's no ready-made activity for handling SMS-sending? I would like to support SMS sending... Can you provide some references?? Thanks a lot Regards, Stefano --~--~-~--~~~---~--~~ You received this messag

[android-developers] android:password first letter problem

Hi all, I have the following problem: I have an EditText with android:password="true". When I type in, the first letter allways appears instead of a dot. I have in the xml file: What am I doing wrong? Thanx, George --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: How to use a (virtual) COM (Serial) Port with Android?

this is not supported in the emulator right now. as to whether this will be supported in the future ? I really don't know On Mon, Apr 7, 2008 at 4:18 PM, sfeige <[EMAIL PROTECTED]> wrote: > > Hi there everyone, > > I'm just gettin' warm with Android and after years without writing a > single line

[android-developers] How to use a (virtual) COM (Serial) Port with Android?

Hi there everyone, I'm just gettin' warm with Android and after years without writing a single line in Java I had a hard time today when I tried to figure out how one could establish communication via a serial port with Android. I didn't find a solution so far and that's why I'm here: Is there a

[android-developers] Listview & animation problem

I have some custom animated icons in a listview. These items are animated by calling invalidate() on their onDraw() method (Just assume a simple animation, like setting a different background color on every draw). Now when i scroll the listview using keys all is fine; however when i scroll it with

[android-developers] Re: Can I read files from apk or res\drawable dir

Thank you very much. Hope this will do the job. On Apr 7, 12:51 pm, "Dan U." <[EMAIL PROTECTED]> wrote: > I noticed the title of your post mentioned res\drawable. If you simply > wanted to load a file from there, you could do this: > > getResources().getDrawable(R.drawable.filename); > > If you w

[android-developers] Re: Content Provider and notifying changes

Hmm it seems i have missed some stuff, there is: public final void registerContentObserver(Uri uri, boolean notifyForDescendents, ContentObserver observer) where notifyForDescendants specifies if this observer receives notifications for its descendant uris. I guess this is false for cursorAdapte

[android-developers] Content Provider and notifying changes

Let's say i update a certain note in a database and it has a uri like the following: ".../notes/2". Now when i notify a change in this uri using ContentResolver.notifyChange(uri); is it only cursors having a single item " ../notes/2" that will be notified? If i have another cursor that holds

[android-developers] Re: Thank you all

Good Luck! On 4月7日, 下午6时20分, Shamim <[EMAIL PROTECTED]> wrote: > My whole hearted thanks to the active member of this group for their > contribution and question regarding android which helped me to solve > problem, think differently and finally let me learned so many things. > I have submitted m

[android-developers] Re: Plz Help!!

yes,it's ugly, it's just for test:) On Apr 7, 3:16 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Woaw, this must be one of the worst pieces of code i have recently > seen. > > On Apr 6, 4:21 pm,areslp<[EMAIL PROTECTED]> wrote: > > > Boolean t = flags.get(position);

[android-developers] Re: Plz Help!!

Thanks On Apr 7, 2:13 am, "Dan U." <[EMAIL PROTECTED]> wrote: > I guess you might not know this, but you don't need to be using a > Boolean. You should change it to "lowercase" boolean and get rid of > all the messy t.booleanValue() calls. > > But, the reason you don't see logging output is the w

[android-developers] Annotations and reflection

Are reflection methods like java.lang.reflect.AccessibleObject.isAnnotationPresent() implemented? Here is my example: -- i have this simple annotation: import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.an

[android-developers] Re: Styling Button dynamically

Thank you Dan U. , Now I finally now how to use android.R.attr dynamilcally. On 6 Apr., 21:11, "Dan U." <[EMAIL PROTECTED]> wrote: > Will this work: > > Button b = new Button(this, null, null, > android.R.attr.buttonStyleSmall); > > On Apr 6, 6:04 am, goro <[EMAIL PROTECTED]> wrote: > > > Hi All,

[android-developers] Thank you all

My whole hearted thanks to the active member of this group for their contribution and question regarding android which helped me to solve problem, think differently and finally let me learned so many things. I have submitted my project to the Google and let's wait for the result.wish you all the b

[android-developers] Re: Is it possible to use multiple selection list?

Here is an example. http://code.google.com/p/sharepath Semeria Stefano 写道: > Hi all, > > > > I need a list view that can handle the selection of multiple items at > the same time. > > Is that possible? > > > > > > Thanks a lot. > > > > > > Regards, > > > > Stefano --~--~-~--~~---

[android-developers] Re: How notification for inserts and deletes works without ContentProvider

You could solve this by sending a bundle with the id of the newly created item to your listactivity and focus the list on this item when it recieves the bundle from the subactivity. The delete thing could also be solved in a similair way, but I agree that it would be better if this worked automati

[android-developers] Invalidate() on child view does not work.

This is my problem. I have a main view, a TableLayout view, this view has other views as its children added to it. One of the child views is a custom view, MyView, that I created to draw graphics on it and to receive click events. The other children are all buttons. When I click on the MyView the

[android-developers] Re: Can I read files from apk or res\drawable dir

I noticed the title of your post mentioned res\drawable. If you simply wanted to load a file from there, you could do this: getResources().getDrawable(R.drawable.filename); If you wanted some other kinds of files. You could put them in res\raw and use this to get an InputStream: getResources().

[android-developers] Re: Queries in IntentReceivers

Just call getContentResolver().query(). As the documentation for managedQuery() says, it is just a wrapper around the underlying query call that connects the returned cursor with the activity's lifecycle. Since you are not doing this from an activity, there is nothing useful about managedQuery().

[android-developers] Re: Is it possible to use multiple selection list?

It will be possible in a future SDK. In the meantime, you can use checkboxes. On Mon, Apr 7, 2008 at 1:09 AM, Semeria Stefano <[EMAIL PROTECTED]> wrote: > > > > > Hi all, > > > > I need a list view that can handle the selection of multiple items at the > same time. > > Is that possible? > > > > >

[android-developers] Can I read files from apk or res\drawable dir

Hello, My application needs to read some data from a file, every time it runs on android. I really don't know how to "see" the file from my sources, i mean new FileReader("... what ..."). I actually did manage to solve the problem by copying the file with ./ adb push, into /data/misc. At this mome

[android-developers] Is it possible to use multiple selection list?

Hi all, I need a list view that can handle the selection of multiple items at the same time. Is that possible? Thanks a lot. Regards, Stefano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "And

[android-developers] Re: First mouse click in the emulator not taken in account

The bug was reopened, we'll look into it. On Mon, Apr 7, 2008 at 12:50 AM, babyblue <[EMAIL PROTECTED]> wrote: > > And the issue list is here: > > http://code.google.com/p/android/issues/detail?id=502&can=1&q=touch&colspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary > > I reporte

[android-developers] Re: First mouse click in the emulator not taken in account

And the issue list is here: http://code.google.com/p/android/issues/detail?id=502&can=1&q=touch&colspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary I reported this here: http://groups.google.com/group/android-developers/browse_thread/thread/bc6c209bb1b58416/1d1faf525e9b87eb?lnk=gst&

[android-developers] Re: First mouse click in the emulator not taken in account

I reported this several weeks ago. But they said this "two touch validation" issue can't be reproduced. On 4月7日, 上午8时12分, "Dan U." <[EMAIL PROTECTED]> wrote: > Yeah, it happens to me too. I think this is due to the emulator > switching to touch mode. > > On Apr 6, 4:57 pm, NTR <[EMAIL PROTECTED]>

[android-developers] Re: Length of text drawn in pixel?

You can use Paint.getTextWidths to get it On 4月7日, 下午1时57分, Joa <[EMAIL PROTECTED]> wrote: > Is there a way to find out the length of text drawn to a Canvas (using > drawText()) in pixel? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Queries in IntentReceivers

I have an IntentReceiver. Inside of onReceiveIntent(), I need to query a content provider. Normall, in an Activity, I'd just use managedQuery(...) which returns a Cursor. However, that is a member of Activity only. How can I make the same query inside of the IntentReceiver? Thanks! --~--~---