[android-developers] Re: View Activity Communicaton

2008-04-08 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] Communication between two emulators. UDP Chat app

2008-04-08 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

[android-developers] Re: TextView Question

2008-04-08 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

[android-developers] Re: View Activity Communicaton

2008-04-08 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 into

[android-developers] Re: View Activity Communicaton

2008-04-08 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 before.

[android-developers] Re: TextView Question

2008-04-08 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);

[android-developers] Re: getAuthToken method cannot find

2008-04-08 Thread szederl
Hi Use instead of m5 the older version (m3-rc37) On Mar 12, 1:04 pm, Andrew [EMAIL PROTECTED] wrote: Hi, I have a question, client.getAuthToken() method cannot find in android-sdk_m5-rc14_linux-x86 sdk. my code: public boolean isValid(String username, String password) { try {

[android-developers] Re: View Activity Communicaton

2008-04-08 Thread hackbod
On Apr 7, 10:54 pm, Rui Martins [EMAIL PROTECTED] wrote: Another Example: How do we call our activity finish method, from our activity view class ? You can either hand the activity to the view for it to make calls on to, or have a callback interface from the view that the activity implements

[android-developers] Re: View Activity Communicaton

2008-04-08 Thread Dan U.
True. To make it more generic, some class checking should be done. On Apr 8, 12:28 am, hackbod [EMAIL PROTECTED] wrote: On Apr 7, 11:52 pm, Dan U. [EMAIL PROTECTED] wrote: Inside a view, apparently we can't get a reference to the Activity that contains us (the view), and even if there is

[android-developers] Re: Database query NULL exception

2008-04-08 Thread Sawan007
I am afraid I don't how to use Log to print the values. Please advice. Thanks On Apr 8, 6:37 am, Dan U. [EMAIL PROTECTED] wrote: 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

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

2008-04-08 Thread David Given
Gibson wrote: [...] protected void onDraw(Canvas canvas) { Paint paint = new Paint(); paint.setARGB(255, 255, 255, 255); canvas.drawRect(0, 0, screenWidth, screenHeight, paint); canvas.drawBitmap(bitmap, 10, 10, null);

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

2008-04-08 Thread Jorge
Now I dont know if I could finish my project, but it is only for my problems. First because I discovered the Challenger very late, second I got a job that consumes almost my time and third I got 2 years old twin that consumes almost my sleep time :)). But same I want to thank to everybody here

[android-developers] Re: Database query NULL exception

2008-04-08 Thread Hielko
Use: log.e(TAG, Some error message); On Apr 8, 12:23 pm, Sawan007 [EMAIL PROTECTED] wrote: I am afraid I don't how to use Log to print the values. Please advice. Thanks On Apr 8, 6:37 am, Dan U. [EMAIL PROTECTED] wrote: Have you tried using Log to print out the values you are using in

[android-developers] Re: TextView Question

2008-04-08 Thread Vijayabaskar s
Hi Hielko, U try this . Correctly get message... U know SMSReceiver class .. i get message from SMSReceiver... How to call SMSActivity and then update that message to textview... Regards, Baskar --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Accessing bookmarks of the web browser

2008-04-08 Thread peterL
Hi all, How do I access bookmarks created in the web browser? I tried this: Cursor cur = getContentResolver().query(android.provider.Browser.BOOKMARKS_URI, null,null,null,null); But the returned cur is always null. Can anyone help please? Thanks~

[android-developers] Re: TextView Question

2008-04-08 Thread Hielko
Here, a working example (using an intentlistener that receives location updates: private void setupLocationManager() { lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); Criteria crit = new Criteria();

[android-developers] Re: Listview animation problem

2008-04-08 Thread wonderoid
Thanks Romain guy, setting setAlwaysDrawnWithCacheEnabled() worked, writing this in case someone may search for the same solution. On 7 Nisan, 18:11, Romain Guy [EMAIL PROTECTED] wrote: Hi, This is because ListView caches its children in Bitmaps during a scroll to get better performance. You

[android-developers] Security model in Android vs. Java

2008-04-08 Thread t_wheeler2002
Hi, We're trying to understand how the Android security model and Java's are similar/different. It looks at the moment as though Permissions are not supported in Android, nor is it possible to assign a ProtectionDomain to a CodeSource and use a custom classloader to load classes in this

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

2008-04-08 Thread Anil
ok, I thought all the source was there. I used jad to decompile android.jar in the SDK directory. But there's more code in there than one could read in a career. If you need a few individual files, I can email them to you. thanks, Anil On Apr 7, 11:00 pm, acopernicus [EMAIL PROTECTED] wrote:

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

2008-04-08 Thread Carl H.
This is normal behavior as usually phones have only numbers on the keypad (click 3 times '1' would be equivalent to 'c'). thus you need to briefly see the last letter in order to ensure the password is correct. On Apr 7, 9:11 pm, Romain Guy [EMAIL PROTECTED] wrote: When you type a letter in a

[android-developers] Re: View Activity Communicaton

2008-04-08 Thread Rui Martins
Thanks a lot dor the input. From all that was said, I believe that I may be feeding the View Constructor with something else than the activity, probably something like Application or similar, I know I copied one example from the SDK, if I'm not mistaken, I'll have to check when I get back

[android-developers] Re: View Activity Communicaton

2008-04-08 Thread ThursdayMorning
I had this exact question a while ago, when I was building some custom View components. What I wanted was a little more complicated though - it was basically this. Basic containing view, set in the Activity class itself Several classes stored inside the activity with views defined *inside those

[android-developers] Button im map

2008-04-08 Thread GUS
I want to show my contacts on the map showing their photos. But I want these images to be clickable. In other words I want to put a button on a Overlay and make link it to a webpages. Is that possible? Gustavo avila. androidforum.com.br --~--~-~--~~~---~--~~ You

[android-developers] Failed to open database file

2008-04-08 Thread [EMAIL PROTECTED]
When I run the MediaRecorder of http://android-developers.googlegroups.com/web/MediaRecorder.zip?gda=FXkzyEICK9_YAb0a1Nwh0gUZZf4AZGicXnJhUmy3pBE2rNh3q2G1qiJ7UbTIup-M2XPURDRx2u_6bIk_N_dzuceWXQ3dR3EF-MqJXdm-zvpgwRZgvQ ,i got the following errors. Would you like to give me your comments? Thank

[android-developers] Any advantage using android.net.uri instead of java.net.url or uri?

2008-04-08 Thread Anil
To keep code portable, I wanted to use java.net.url. However I was wondering if android.net.uri has any advantages. Apart from the encode and decode methods, is there an advantage? http://code.google.com/android/reference/android/net/Uri.html thanks, Anil

[android-developers] ListView divider and padding

2008-04-08 Thread Redhunt
Has anyone else experienced this? Is this a bug in Android or a bug in my brain? I made a custom divider for a ListView. I want the divider to show in the middle of the view. In other words with a left and right padding. So I added a android:paddingLeft and android:paddingRight attribute to the

[android-developers] Re: ListView divider and padding

2008-04-08 Thread Romain Guy
It's a bug we fixed recently. On Tue, Apr 8, 2008 at 9:41 AM, Redhunt [EMAIL PROTECTED] wrote: Has anyone else experienced this? Is this a bug in Android or a bug in my brain? I made a custom divider for a ListView. I want the divider to show in the middle of the view. In other words

[android-developers] onCreateOptionsMenu - 6 menu items max?

2008-04-08 Thread [EMAIL PROTECTED]
My activity adds more than 6 menu items but those doesn't appear on screen. Is there a limit on the number of menu items ? thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: How to blur a rectangular region of the screen

2008-04-08 Thread hackbod
Sorry, there is no way to indicate the amount of blur. On Apr 8, 9:25 am, Cheryl Sedota [EMAIL PROTECTED] wrote: Is this the correct way to get the window blur to occur? getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND, WindowManager.LayoutParams.FLAG_BLUR_BEHIND); ... or

[android-developers] SQLite db issue : no such column

2008-04-08 Thread olivier.k
Hi all, just to start I'm working on my application for the android challenge for 2 months. Tutorial has been done successfully and another thing I'm a C/C++ developper. I'm stuck with this issue for 1 week, I have done many thing but I can't find the error ! Maybe the error is so big that I

[android-developers] Re: View Activity Communicaton

2008-04-08 Thread hackbod
On Apr 8, 7:22 am, Rui Martins [EMAIL PROTECTED] wrote: But having to force a cast on the context given to a view, just to be able to call the methods from the activity on the same context, seems like a hack to me. Probably better than what I'm doing know (forcing the flag NEW_TASK_LAUNCH).

[android-developers] Re: Any advantage using android.net.uri instead of java.net.url or uri?

2008-04-08 Thread hackbod
Besides the fact that you must use it instead of the regular URI class with the Android frameworks, it has a number of significant differences, including: - It is much more efficient, the API has been designed so that it doesn't need to decode and re-encode the URI each time changes are made to

[android-developers] Re: Why don't System.err and System.out point to the console?

2008-04-08 Thread kobica
Speaking of logging, is there a problem using Log4J with Android. I've redirected STDOUT/STDERR and I'm getting tons of these messages when running logcat: W/dalvikvm( 739): read stdout: (17,512) failed (0): Unknown error: 0 W/dalvikvm( 739): read stdout: (17,512) failed (0): Unknown error: 0

[android-developers] Re: Any advantage using android.net.uri instead of java.net.url or uri?

2008-04-08 Thread Harsh Jain
IMO, you cant. For instance, ContentObservers/Resolvers works only with android.net.Uri. regards, harsh On Tue, Apr 8, 2008 at 10:03 PM, Anil [EMAIL PROTECTED] wrote: To keep code portable, I wanted to use java.net.url. However I was wondering if android.net.uri has any advantages. Apart

[android-developers] Re: Any advantage using android.net.uri instead of java.net.url or uri?

2008-04-08 Thread Anil
The problem is, I want my application to also work on the desktop. (see issue #531). So it would be good if the android.net.uri source could be released as a utility class so we can use it without a lot of rework changing our code to work with java.net.url. The same applies to other useful

[android-developers] Displaying already existing activities

2008-04-08 Thread Mihai Fonoage
Hello everyone, I am trying to display activities that were already created but are currently in the background. The problem is that I use startActivity or startSubActivity from the current activity to display them, which will create a new instance of the background activity. When calling finish

[android-developers] Re: SQLite db issue : no such column

2008-04-08 Thread Megha Joshi
Hi, Your code seems correct. Can you post the code in which you are invoking these methods , and mark the point at which you get the error? Thanks, Megha On Tue, Apr 8, 2008 at 10:01 AM, olivier.k [EMAIL PROTECTED] wrote: Hi all, just to start I'm working on my application for the android

[android-developers] Re: onCreateOptionsMenu - 6 menu items max?

2008-04-08 Thread Megha Joshi
Hi, This is standard menu behavior. If your menu has more than six menu items, the rest of the menu items are just hidden in the beginning , using expanded menu. This is to save your screen from becoming too cluttered up.You see a more icon , when the count of items is more then 6. Expanded menu

[android-developers] Re: Why don't System.err and System.out point to the console?

2008-04-08 Thread David Welton
I've redirected STDOUT/STDERR and I'm getting tons of these messages when running logcat: W/dalvikvm( 739): read stdout: (17,512) failed (0): Unknown error: 0 W/dalvikvm( 739): read stdout: (17,512) failed (0): Unknown error: 0 Are you guys having the same issue? I've seen that

[android-developers] About Already Developed Applications

2008-04-08 Thread pramod shinde
Hello, How can I know the recent applications available for Android? Which links should I refer to know about current applications,which are already developed? Regards, Pramod K.Shinde - You rock. That's why Blockbuster's offering you one month of

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

2008-04-08 Thread Anil
Is there another profiler we can use? On Apr 8, 9:11 am, Anil [EMAIL PROTECTED] wrote: Romain, hackbod, Apparently others have failed getting the profiler to workhttp://groups.google.com/group/android-developers/msg/b727e2275547aeec On Apr 7, 11:50 am, hackbod [EMAIL PROTECTED] wrote:

[android-developers] Re: Displaying already existing activities

2008-04-08 Thread David Welton
It would have been nice to be able to get a list of all existing (background) activities and close them manually, but I don't think it's possible. My guess is that you're going to have to go fishing in the undocumented stuff, which might all change tomorrow. This class looks interesting:

[android-developers] Re: Failed to open database file

2008-04-08 Thread Megha Joshi
Hi, These are errors are due to your development environment not being updated properly for using the m5 version of SDK . Please see the response from David below for the same issue: http://groups.google.com/group/android-developers/msg/2db1c1a3305f23b7 Thanks, Megha On Tue, Apr 8, 2008 at 8:26

[android-developers] PopupWindow not showing.. getting a nullpointer need explanation

2008-04-08 Thread Rahul
I am trying to get this popup window to pop up when it is called but it keeps on getting a nullpointerexception error. it shows up at the line whenever i try to use the setText method. When i debug it shows that the popup window is not showable ever. the seeqpodtrack part is working correctly for

[android-developers] Re: How to insert a menuitem?

2008-04-08 Thread Megha Joshi
Hi, You can order the items in your Menu by using the group argument of the Menu.add() methods. As stated in documentation: group Item ordering grouping control. The item will be added after all other items whose order is = this number, and before any that are larger than it. This can also be

[android-developers] Re: Bug in the PhoneStateIntentReceiver

2008-04-08 Thread Greg_G
I can confirm this also, using the AndroidManifest.xml Receiver- Intent Filter-android.intent.action.PHONE_STATE method of receiving the intent. When a call comes in, a PHONE_STATE intent with a STATE of RINGING is broadcast. If the caller stops calling before the user presses a button a STATE

[android-developers] Re: Displaying already existing activities

2008-04-08 Thread Mihai Fonoage
The solution you mentioned was also the one I found on this forum, and which requires the task id for the activity to be passed in the moveTaskToFront method call. Unfortunately, every activity I create has the same task id. This would not be the case if the activity would be created with

[android-developers] Storing Transient Data Across an Application

2008-04-08 Thread Soonil Nagarkar
I am wondering, what is the best way to store somewhat transient data in a manner so that it is easily reachable across an entire application? In this case, it is a type of buddy list that is valid across a session. I would like any Activity, Service, etc... in my application to be able to read

[android-developers] Storing Complex objects in arrays.xml?

2008-04-08 Thread ThursdayMorning
I have a static context menu which I want to populate with a list. Each item has a graphic and some text associated with it. I could insert them programatically, but that would be a huge pain, so I want to do it in xml. ListView has the android:entries property which says you can load an array

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

2008-04-08 Thread Diego Pino
Use ant install to build and install your application in one single step. On Apr 7, 10:46 pm, Mikko Varri [EMAIL PROTECTED] wrote: 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

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

2008-04-08 Thread Digit
let's say we have: - A is your development machine - B is your first emulator instance running on A - C is your second emulator instance running on A within both B and C, 127.0.0.1 refers to the emulated system's own loopback interface, but 10.0.2.2 refers to A's loopback interface (a.k.a.

[android-developers] Re: SQLite db issue : no such column

2008-04-08 Thread Diego Pino
When do you got this error? while doing an update/an insert? It is your table successfully created? If it is, I would open my db from the emulator with sqllite3 and see what I got (type .table), maybe there is not such column. Once you have checked this, go further. On Apr 8, 8:14 pm, Megha

[android-developers] Logcat stopped working

2008-04-08 Thread Anil
Clicking on the Logcat view doesn't show any of my Log.v messages. I used -wipe-data, restarted eclipse, rebooted computer. Doesn't show it any more. lost another 8 hours today. Any help appreciated. thanks, Anil console: [2008-04-08 14:15:59 - juwo android] --

[android-developers] deploy android application

2008-04-08 Thread Android-Berry
Hi there, I have finished my project. I want to deploy it to a real LINUX smart device. how to deploy it? Thanks My IDE is Eclipse~ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Storing Complex objects in arrays.xml?

2008-04-08 Thread ThursdayMorning
Ah, I think I see your point. I don't need a different view layout for each item in the list, but I would like to define what's going to be in the layout of each item. The problem is I need *two* pieces of information for each layout, not one - the item resource for the icon, and the string

[android-developers] Re: Storing Complex objects in arrays.xml?

2008-04-08 Thread Dan U.
Defining your layout is simple. Just create a layout for a single item. For instance, if you just wanted text, it would be a single TextView. Then, when you go to set up your adapter, specify that as the item layout to use. As for multi-dimensional arrays, I haven't seen an example of this so I

[android-developers] Re: onCreateOptionsMenu - 6 menu items max?

2008-04-08 Thread Megha Joshi
Could you post your menu code here to help debug this further? On Tue, Apr 8, 2008 at 11:47 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks Megha. I still can't see more than 6 items when clicking on the more icon and scrolling on the popup. I'm using non sequential and non ordered

[android-developers] ListView custom items and OnClick events

2008-04-08 Thread Redhunt
Hi, After some work I was able to get the custom items on a ListView working. Very cool stuff. I have a quesiton about click events. My custom list item view has 2 imageViews and a TextView. On the listView I capture onItemClick(AdapterView parent, View v, int position, long id) And

[android-developers] Date and time pickers in an XML layout file - how to get to work?

2008-04-08 Thread NTR
I've tried including date and time pickers in the XML file, like the following: DatePicker xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=wrap_content android:layout_height=wrap_content / TimePicker

[android-developers] cannot get attribute from XMLReader (SAX)

2008-04-08 Thread Anil
This works fine in j2se, but am stumped why it fails in android. Cannot get attribute base from XMLReader (SAX). It is always null. Any help appreciated. thanks, Anil schema: --- xs:complexType name=RelativeURI xs:simpleContent xs:extension base=xs:anyURI

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

2008-04-08 Thread [EMAIL PROTECTED]
I agree. I moved my unregister call to onDestroy, which pushed the exception back a little, but I too have it eventually throw the exception always. Devin Dow On Apr 7, 10:56 am, jim.renkel [EMAIL PROTECTED] wrote: I agree with Dan about the logical ordering of things and programmed my

[android-developers] Re: Accessing bookmarks of the web browser

2008-04-08 Thread Megha Joshi
The code below may help you to get started: private static final String[] mColumnStrings = { Browser.BookmarkColumns._ID, Browser.BookmarkColumns.TITLE, Browser.BookmarkColumns.URL, Browser.BookmarkColumns.BOOKMARK, Browser.BookmarkColumns.VISITS };

[android-developers] Layout Animation response to Touch event

2008-04-08 Thread Flik
How could I accomplish interpreting the touch event with an activity that I want to do one thing if one area is clicked and another thing if a different area is clicked? I have a ViewGroup (container) and two child views that are the same. One is visible: the other is not. I think I need the

[android-developers] Re: Single .apk from Multiple projects

2008-04-08 Thread Megha Joshi
Why would you want to do that? On Tue, Apr 8, 2008 at 3:23 AM, Harsh Jain [EMAIL PROTECTED] wrote: Is there an easy way to create a single .apk from multiple eclipse projects ? Regards, harsh --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: handwriting input methods?

2008-04-08 Thread Megha Joshi
On Tue, Apr 8, 2008 at 2:13 AM, Daniel kefale [EMAIL PROTECTED] wrote: Hi All, I am postgraduate student in Computer science at Addis Ababa University, Addis Ababa, Ethiopia. on my thesis project, I am designing and developing a multi-ligual(Ethiopic and Latin) based online handwriting

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

2008-04-08 Thread Dan U.
Well, it sounds to me like a bug then. I guess check the bug tracker to see. On Apr 8, 3:00 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I agree. I moved my unregister call to onDestroy, which pushed the exception back a little, but I too have it eventually throw the exception always.

[android-developers] Re: Storing Complex objects in arrays.xml?

2008-04-08 Thread hackbod
No, no support for multidimensional arrays. If you are starting to build complicated data structures, you might as well just express them in an XML resource and parse that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Playlists and genre

2008-04-08 Thread Megha Joshi
These contents or MediaStore provider are not yet documented, which suggests that they are not fully supported yet, and should not be used as they might change in the future releases. On Tue, Apr 8, 2008 at 4:08 AM, Mi [EMAIL PROTECTED] wrote: Hi, I'm wondering if the playlist implementation

[android-developers] Re: Single .apk from Multiple projects

2008-04-08 Thread Harsh Jain
i have a framework and some sample apps. i need to bundle them together. On Wed, Apr 9, 2008 at 4:08 AM, Megha Joshi [EMAIL PROTECTED] wrote: Why would you want to do that? On Tue, Apr 8, 2008 at 3:23 AM, Harsh Jain [EMAIL PROTECTED] wrote: Is there an easy way to create a single .apk

[android-developers] Re: cannot get attribute from XMLReader (SAX)

2008-04-08 Thread Dan U.
Well, I can't give you an explanation at this time, but if you do String base = atts.getValue(, xml:base);, it should work. On Apr 8, 2:33 pm, Anil [EMAIL PROTECTED] wrote: This works fine in j2se, but am stumped why it fails in android. Cannot get attribute base from XMLReader (SAX). It is

[android-developers] Re: Date and time pickers in an XML layout file - how to get to work?

2008-04-08 Thread Dan U.
I put those within a LinearLayout and it worked fine. Can you post more of your layout and/or code? On a side note, I notice DatePicker likes to throw null pointers during onKey. On Apr 8, 2:17 pm, NTR [EMAIL PROTECTED] wrote: I've tried including date and time pickers in the XML file, like

[android-developers] Re: cannot get attribute from XMLReader (SAX)

2008-04-08 Thread Anil
Hi Dan, I tried your solution. Unfortunately it didn't work. String base = atts.getValue(,xml:base); Dont know why it can get the href value, but not the base. thanks, Anil On Apr 8, 5:55 pm, Dan U. [EMAIL PROTECTED] wrote: Well, I can't give you an explanation at this time, but if you do

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

2008-04-08 Thread [EMAIL PROTECTED]
I don't understand..How can you figure out the edge lat/lon that I need for the zoomToSpan? I know the lat/lon of the center of the map, and I know the distance between the two points. What do I need to do now? Thanks, Noam. On Apr 7, 9:54 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

[android-developers] Re: Single .apk from Multiple projects

2008-04-08 Thread Xavier Ducrohet
Hi Harsh, As long as you have only one Android Project, you can reference other java project, and their code will get bundled into the Android project when it is built. Right click your project in the Package Explorer view, and choose Build Path Configure Build Path... Select the Projects tab

[android-developers] Please Help with Custom View

2008-04-08 Thread peter
Hi, I am having problems defining a custom view, any help would be appreciated. I would like to create a custom view that contains and manipulates several standard TextViews. I would like to be able to define this in XML as follows (so that I don't have to add each TextView by hand): view

[android-developers] Re: Please Help with Custom View

2008-04-08 Thread peter
oops, I typed out the TextView definitions by hand so there is an error with the last line, should be: android:text=text / but that is somewhat irrelevant. Please ignore similar parse errors if any. Thanks again for your help, Peter On Apr 8, 4:34 pm, peter [EMAIL PROTECTED] wrote: Hi, I

[android-developers] Re: cannot get attribute from XMLReader (SAX)

2008-04-08 Thread Dan U.
I think the problem is with your first example of getting the parser. Try the second one. On Apr 8, 4:20 pm, Anil [EMAIL PROTECTED] wrote: Hi Dan, I tried your solution. Unfortunately it didn't work. String base = atts.getValue(,xml:base); Dont know why it can get the href value, but not

[android-developers] Re: cannot get attribute from XMLReader (SAX)

2008-04-08 Thread Anil
wow, that worked. thanks much! On Apr 8, 6:46 pm, Dan U. [EMAIL PROTECTED] wrote: I think the problem is with your first example of getting the parser. Try the second one. On Apr 8, 4:20 pm, Anil [EMAIL PROTECTED] wrote: Hi Dan, I tried your solution. Unfortunately it didn't work.

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

2008-04-08 Thread monkey.jsun
It turns out there is simpler solution. Just copy any other build.xml and modify the project name in the second line of build.xml! I looked inside build.xml and discovered that there is nothing specific to a project except for the project name, which is used to generate the final .apk file.

[android-developers] Re: onCreateOptionsMenu - 6 menu items max?

2008-04-08 Thread [EMAIL PROTECTED]
public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); menu.add(0, 100, h1); menu.add(0, 104, h2); menu.add(0, 108, h3); menu.add(0, 112, h4); menu.add(0, 116, h5); menu.add(0, 120, h6); menu.add(0,

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

2008-04-08 Thread xingye
As we all know, there is a function named Calculate.getPointXY() which can calculate the screen point by map point. If there are many map points, we can easily find our the great distance in lat and lon, and got the center of all these points. When they converted to screen point and we also have

[android-developers] Re: Failed to open database file

2008-04-08 Thread Hongliang Tong
Hi Megha Thanks for your response. I had searched internet for the issue before i post it in developer groups and find the solution as ' http://groups.google.com/group/android-developers/msg/2db1c1a3305f23b7' said . I reinstalled my windows and eclipse. The eclipse plugin is the latest one

[android-developers] Re: Accessing bookmarks of the web browser

2008-04-08 Thread peterL
Thanks Megha, that worked perfectly. However, the documentation for ContentResolver.query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) reads: Passing null for [projection] will return all columns, [which is discouraged to prevent reading data from

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

2008-04-08 Thread Nitin Khanna
Hi Digit! Thanks for writing back. While I do understand that an application needs to handle only the intents which are defined in the intent filter part. I am asking about a situation where in, the application was written in the past, the intent was not defined or was defined by a third party.

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

2008-04-08 Thread Gibson
Thanks David for you reply. You can see that in my onCreat() function i create the bit map using thisbitmap = Bitmap.createBitmap(100, 100, true); From the decompiled source code we can see this: public static Bitmap createBitmap(int width, int height, boolean hasAlpha)

[android-developers] Re: onCreateOptionsMenu - 6 menu items max?

2008-04-08 Thread [EMAIL PROTECTED]
I found the problem. My activity uses android:theme=@android:style/Theme.Dialog and the popup is clipped in the region within that dialog. On 8 abr, 21:09, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu);

[android-developers] Re: ListView custom items and OnClick events

2008-04-08 Thread xingye
Perhaps grid is better for this job. On 4月9日, 上午5时07分, Redhunt [EMAIL PROTECTED] wrote: Hi, After some work I was able to get the custom items on a ListView working. Very cool stuff. I have a quesiton about click events. My custom list item view has 2 imageViews and a TextView. On the

[android-developers] How to make menu menu items opaque (not transparent) ?

2008-04-08 Thread Ram
Hi, does anyone know how to menu items opaque. By default, the menu options are transparent and so the views (buttons etc) below the menu options are still visible. One option to fix the transparency issue is to make the underlying button invisible. However, is there a better way to make the

[android-developers] Re: Please Help with Custom View

2008-04-08 Thread Ram
Peter, can you try adding an id for the TextView (e.g. android:id=@ +id/txt1) in xml After that in your Java code, you should be able to get the textview by calling findViewById(R.id.txt1) On Apr 8, 4:37 pm, peter [EMAIL PROTECTED] wrote: oops, I typed out the TextView definitions by hand so

[android-developers] Re: DatabaseContentProvider got RuntimeException while getContentResolver() try to insert Email to contacts in SDK M5

2008-04-08 Thread David HK
没有人回答这个问题吗? On 3月24日, 下午8时12分, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I got following codes to debug and RuntimeException is reported. ThusEmailfailed to insert to contacts in SDK M5. I don't know if it is a bug in this version. Would you like to give me you commets? Thanks in advance.

[android-developers] WebView designMode doesn't work?

2008-04-08 Thread Jason von Nieda
I am attempting to use the designMode property of a document in WebView but it doesn't seem to work. Is this something that is just not implemented yet, or will not be implemented? For background, setting designMode = on on a document should make that document editable in the browser. This is

[android-developers] Re: Error recieving broadcast null in LocationIntentReciever

2008-04-08 Thread jim.renkel
Dan Devin, I see this same behavior, but only on my slow development system, never on my fast development system. I concluded that this was a timing bug in the SDK / emulator and gave up trying to do anything about it. The ADC judges will have to be aware of this anomaly, and many more, and

[android-developers] TextView as button in m3

2008-04-08 Thread wamoc
is there a way to use a TextView as a button in m3 rc37? In a program I am writing a TextView will look the best, but it needs to be clickable like a button. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Storing Transient Data Across an Application

2008-04-08 Thread Ted Hopp
If the data will only be accessed strictly within your application, then extending Application is the easiest way to go. Otherwise the Android way is to create a content provider. Storing transient data in static variables is not reliable. On Apr 8, 3:15 pm, Soonil Nagarkar [EMAIL PROTECTED]

[android-developers] Re: Single .apk from Multiple projects

2008-04-08 Thread Harsh Jain
Hi, I am aware of this. However My framework is an android project, The messy way is to move all code, manually merge manifest and other xml files. I was looking for some nice easy way. regards, harsh On Wed, Apr 9, 2008 at 5:02 AM, Xavier Ducrohet [EMAIL PROTECTED] wrote: Hi Harsh, As

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

2008-04-08 Thread Gibson
Hi Steve, Thanks for you advice. But i think there is no need to synchronize the bitmap. Because onCreate() method and onDraw() method won't strive for bitmap(I don't know whether you understand what i mean. English is not my mother language.) So I think there won't be two thread to deal with