[android-developers] Re: Error Receiving Broadcast Null in [IntentReceiver] (Very Easy)

2008-04-08 Thread [EMAIL PROTECTED]
Hello Dan, I still see this error, but much rarely. Why is this happening? Thanks, Noam. On Apr 6, 3:05 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Awesome! > I don't see the error anymore! > > Thanks, > Noam. --~--~-~--~~~---~--~~ You received this messa

[android-developers] webview not showing data

2008-04-08 Thread vinnu
hi, im writing a bare bones application on android...and my webview doesnt seem to work. i mean its not showing any data on the emulator screen. the textview and editview all work fine..but the webview doesnt show any data on screen. am i missing something? below is the part of the code that i

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

2008-04-08 Thread [EMAIL PROTECTED]
Nevermind, got it guys! Thank you very much, Noam. On Apr 8, 10:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanks guys! > Now, I have one more question. > How could I get theamountofzoomthat the mapview is currently at? > > Thanks! > Noam. > > On Apr 8, 5:20 pm, xingye <[EMAIL PROTE

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

2008-04-08 Thread [EMAIL PROTECTED]
Thanks guys! Now, I have one more question. How could I get the amount of zoom that the mapview is currently at? Thanks! Noam. On Apr 8, 5:20 pm, xingye <[EMAIL PROTECTED]> wrote: > As we all know, there is a function named Calculate.getPointXY() which > can calculate the screen point by map poi

[android-developers] Re: check internet connection

2008-04-08 Thread Ted Hopp
Well, I'm not too familiar with the apache packages. I've been using the java.net classes instead. Typical code looks like this: URL url; // ... HttpURLConnection urlc = (HttpURLConnection) url.openConnection(); urlc.setRequestProperty("User-Agent", "My Android Dem

[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

[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, > > A

[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]> w

[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 Dev

[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 ho

[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 h

[android-developers] Re: FPS troubles and texture problems

2008-04-08 Thread ceder
I have to second Eri's conclusion. I have 3d data that renders above 10 frames per second on many mobile phone devices, but renders at over 30 seconds *per frame* in the Android Emulator. At best, I can see the the scene data is mostly rendering correctly, but it is almost impossible to do any

[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 > ad

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

2008-04-08 Thread Steve Oldmeadow
> So i create the Bitmap with the Config.ARGB_. But the result the > same. Pixel changed. It is quite strange. > When strange things happen I always look at threading issues. Your onDraw code is not re-entrant. You could try making your onDraw re- entrant or synchronising access to the bitm

[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

[android-developers] How to get notified when the MediaScanner service has finished?

2008-04-08 Thread Cheryl Sedota
I am developing an application that relies on the MediaScanner service having finished discovering new media files - is there some intent filter i could register a receiver for? I didn't see any API I could call on the IMediaScannerService interface. Thanks, Cheryl --~--~-~--~~--

[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 me

[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. > >

[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(

[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 this"bitmap = 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: 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: 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 s

[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 upda

[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 t

[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"); men

[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. Enjo

[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

[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

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

2008-04-08 Thread Dan U.
Well, in order to use two points for this, you need one point in the center of the map and the other in what you want to be one of the corners of the map. As long as you have the lat/long of the center, the distance, and the angle formed between the horizontal line and the line from center to corn

[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,

[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"): http:

[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" ta

[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: > N

[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

[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 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).

[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 singl

[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 implement

[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 Gr

[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 > alway

[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 handwriti

[android-developers] Re: View Activity Communicaton

2008-04-08 Thread hackbod
On Apr 8, 3:21 pm, Rui Martins <[EMAIL PROTECTED]> wrote: > I checked my code, and I was giving the Application to the View > Constructor, as the context, which I believe is correct, although we > can also pass the activity (this) No, it is not correct to give the Application. The views you are

[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 beca

[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 touch

[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 }; @Override

[android-developers] Re: View Activity Communicaton

2008-04-08 Thread Rui Martins
I checked my code, and I was giving the Application to the View Constructor, as the context, which I believe is correct, although we can also pass the activity (this) My code was: setContentView( new GameMenuView( getApplication() ) ); > Well, you have a range of choices: > > - U

[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] 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: ---

[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: http://schemas.android.com/apk/res/android"; android:layout_width="wrap_content" android:layout_height="wrap_content" /> But I get: ERROR/AndroidRuntime(2930): Caused by: java.lang.RuntimeE

[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 everything

[android-developers] Re: Listview non-clickable row - possible bug?

2008-04-08 Thread Megha Joshi
Hi, This seems like a bug, you may want to log it in the issue tracker. Thanks, Megha On Tue, Apr 8, 2008 at 7:14 AM, CaptainFanatic <[EMAIL PROTECTED]> wrote: > > I want to set the header of a listview as a static non-clickable > element to be used as a column heading row at the top of the lis

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

2008-04-08 Thread [EMAIL PROTECTED]
Thanks for the reply. I'm pretty sure the unregister/removeUpdate are getting called successfully, because if they weren't I would get an exception next time they are registered/requested (I found out because I commented out the calls and got this when they were registered/requested again in onRe

[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

[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 d

[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. File explorer also stopped. rc15 Any help appreciated. thanks, Anil console: [2008-04-08 14:15:59 - yo android] -- [20

[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 resour

[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 po

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

2008-04-08 Thread Dan U.
Well, I think you are mixing up what entries means. That refers to the data that you want to show, whereas you are trying to set the UI for displaying that data. If you need different layouts for each list item in the listview, it might be possible, but probably requires some coding. On Apr 8, 12

[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] -- [2008

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

2008-04-08 Thread David Given
Soonil Nagarkar wrote: [...] > I have found some information about the Application class, which > offers some of what I am looking for, but I am not sure if this is the > best method, or the proper -Android way- to accomplish this. Any > thoughts or advice? The Android Way is probably to declare 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. A:127.

[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 ~/sr

[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 res

[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 th

[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 singleIn

[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 STA

[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 Jo

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

2008-04-08 Thread [EMAIL PROTECTED]
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 id numbers when adding the menu items. Perhaps it's related to the problem. Any ideas? On 8 abr, 15:29, "Megha Joshi" <[EMAIL PROTECTED]> wrot

[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] 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: 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] 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: 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]> wro

[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 Blockbu

[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 th

[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: 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 androi

[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: ListView divider and padding

2008-04-08 Thread Redhunt
Awesome !!! Thanks Romain. So I am not loosing brain cells yet. Although if the 14th doesn't come soon enough I think I might loose a few ... working hard. Any chance we might get a new release before the 14th? On Apr 8, 11:43 am, "Romain Guy" <[EMAIL PROTECTED]> wrote: > It's a bug we fixed re

[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 classes

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

2008-04-08 Thread trickybit
I don't believe that log4j is supported. I wrote a simple, nifty wrapper for android Log, and it works really well with their filitering features: http://groups.google.com/group/android-developers/browse_frm/thread/fd7cb81eb02af048/ I evangelize it. Jim On Apr 8, 10:21 am, kobica <[EMAIL PROTE

[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 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 i

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

2008-04-08 Thread Cheryl Sedota
OK then is there something wrong with the call I am making, because it's actually darkening the screen behind the window. On Apr 8, 12:01 pm, hackbod <[EMAIL PROTECTED]> wrote: > Sorry, there is no way to indicate the amount of blur. > > On Apr 8, 9:25 am, Cheryl Sedota <[EMAIL PROTECTED]> wrote:

[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_LAU

[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 can't

[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); > > .

[android-developers] OpenGLES 1.1

2008-04-08 Thread David Given
Currently Android supports OpenGLES version 1.0 and a bit; that is, there are some 1.1 constructs, but not others. We have an application that requires full 1.1 support. Is there a known timeframe for 1.1 support? That is, something along the lines of (next release | some time later | only on

[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 t

[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

[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 l

[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. > A

[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] Re: How to blur a rectangular region of the screen

2008-04-08 Thread Cheryl Sedota
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 is there some way to indicate a blur factor (extremely blury for example). Thanks, Cheryl On Mar 31, 6:20 pm, hackbod

[android-developers] Re: Database query NULL exception

2008-04-08 Thread Sawan007
Thanks everyone. The problem was in the create table query. End braces were missing. Regards, Sawan On Apr 8, 4:52 pm, Hielko <[EMAIL PROTECTED]> wrote: > 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 L

[android-developers] Re: Strange behavior Spinner in nested LinearLayouts. Bug or Feature?

2008-04-08 Thread Karl Ward
Incidentally, I also need to load and scale images within an Adapter. I think I ended up implementing a separate thread to do this. This allowed loading messages to be queued, consisting of a filename to load and an ImageView reference which the loaded Bitmap is attached to (that final bit occurin

[android-developers] Re: Strange behavior Spinner in nested LinearLayouts. Bug or Feature?

2008-04-08 Thread Karl Ward
SimpleCursorAdapter defines a method bindView(). I thought the idea was to create and return a new View from getView(), and create/bind data in bindView(). Perhaps you could try loading and scaling the images in an override of bindView() - perhaps bindView() is called less often than getView(). O

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

2008-04-08 Thread Dan U.
We had a discussion about this sort of thing here: http://groups.google.com/group/android-developers/browse_thread/thread/d03f0db6004345a1 but your code looks fine to me. In fact, I can't seem to reproduce. You say it takes a few runs? I ran it a few times and didn't see the problem. By any chance

[android-developers] Strange behavior Spinner in nested LinearLayouts. Bug or Feature?

2008-04-08 Thread Valentin
Hello android enthusiasts, I noticed a pretty strange behavior today. It seems as if the number of executions of an overriden getView() methode (of SimpleCursorAdapter) is correlated to the number of LinearLayouts (the Spinner widget that uses this adapter) it is nested in. The following code il

[android-developers] Taking care of proxy Internet access for Dev Challenge?

2008-04-08 Thread joos
Hello, I am building a client/server application for the Developer Challenge where my Android Client accesses some Server to retrieve information. Does anyone know if I have to take care handling Internet access through a firewall/proxy within my application? (I would have to read the proxy valu

  1   2   >