[android-developers] Re: How to create a thread that waits for an answer from a certain port ( from external server ) ?

2008-04-05 Thread Dan U.
I think you mentioned the solution yourself: create a thread. Are you worried about the overhead of creating a thread? On Apr 5, 11:07 pm, "E.D.I" <[EMAIL PROTECTED]> wrote: > How to create a thread that waits for an answer from a certain port > ( from external server ) ? > in fact i'm trying to

[android-developers] How to create a thread that waits for an answer from a certain port ( from external server ) ?

2008-04-05 Thread E.D.I
How to create a thread that waits for an answer from a certain port ( from external server ) ? in fact i'm trying to comunicate with a server on and of with sql queries... open connection send query... wait for answer in the background and continue working , and when geting the answer i want to up

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

2008-04-05 Thread vl
>From the description of ContentProvider class "A content provider is only required if you need to share data between multiple applications. For example, the contacts data is used by multiple applications and must be stored in a content provider. If you don't need to share data amongst multiple ap

[android-developers] Re: Getting e-mail of selected person in Contacts

2008-04-05 Thread Maxim Yudin
Thanks a lot :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL

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

2008-04-05 Thread Dan U.
Yeah, that's the problem. I tested both your version and a version with the correct intent (MY_LOCATION_CHANGED_ACTION) specified in onDestroy(). On Apr 5, 8:50 pm, "Dan U." <[EMAIL PROTECTED]> wrote: > I think it has something to do with different intents. You didn't post > the full code, so I d

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

2008-04-05 Thread Dan U.
It should be a lot faster than that, but knowing the emulator is a resource-hog, my first question is what kind of computer are you using for dev work? On Apr 5, 8:49 pm, Anil <[EMAIL PROTECTED]> wrote: > The same operation in Java Swing is almost instantaneous. > > On Apr 4, 6:57 pm, Anil <[EMAI

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

2008-04-05 Thread Dan U.
I think it has something to do with different intents. You didn't post the full code, so I don't know. Is MY_LOCATION_CHANGED_ACTION equal to "NotSpecialIntent"? On Apr 5, 8:09 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello everyone, > > Well, I have a MapActivity and I refresh my loc

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

2008-04-05 Thread Anil
The same operation in Java Swing is almost instantaneous. On Apr 4, 6:57 pm, Anil <[EMAIL PROTECTED]> wrote: > 35x35 pixels. this is just the audio 'speaker' icon on a button. > > On Apr 4, 11:28 am, hackbod <[EMAIL PROTECTED]> wrote: > > > On Apr 4, 5:44 am, Anil <[EMAIL PROTECTED]> wrote: > >

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

2008-04-05 Thread [EMAIL PROTECTED]
Hello everyone, Well, I have a MapActivity and I refresh my location with an intent receiver that receives intents from the location manager. This is my basic code: @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); update(); setupForGPSAutoRefreshing

[android-developers] Re: Main Menu (Very Easy)

2008-04-05 Thread [EMAIL PROTECTED]
Ok, thank you very much. On Apr 5, 6:29 pm, "Dan U." <[EMAIL PROTECTED]> wrote: > If it's what I think you are referring to, I think it serves a dual- > purpose. One is to have space for an image, the other is to make it > large enough for a touch screen. I would not try to change it for > reason

[android-developers] Re: Is it possible to load a view from an XML file, but only to store it to a variable?

2008-04-05 Thread Dan U.
I think you should look at the docs for ViewInflate. On Apr 5, 6:25 pm, NTR <[EMAIL PROTECTED]> wrote: > I see there's a Resources.getView-method, but it returns an > XmlPullParser, and I have no idea what to do with it. The Views take > an AttributeSet and a "Map inflateParams". What should I pa

[android-developers] Re: Main Menu (Very Easy)

2008-04-05 Thread Dan U.
If it's what I think you are referring to, I think it serves a dual- purpose. One is to have space for an image, the other is to make it large enough for a touch screen. I would not try to change it for reasons of touch screen usage. On Apr 5, 6:09 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrot

[android-developers] Is it possible to load a view from an XML file, but only to store it to a variable?

2008-04-05 Thread NTR
I see there's a Resources.getView-method, but it returns an XmlPullParser, and I have no idea what to do with it. The Views take an AttributeSet and a "Map inflateParams". What should I pass for them? Thanks! --~--~-~--~~~---~--~~ You received this message because

[android-developers] Main Menu (Very Easy)

2008-04-05 Thread [EMAIL PROTECTED]
Hello everyone, In the main menu, for each item there is a space for a picture. However, I do not want to put a picture. Is there any way of eliminating this white space like the previous SDK? Thanks, Noam. --~--~-~--~~~---~--~~ You received this message because yo

[android-developers] Re: Getting e-mail of selected person in Contacts

2008-04-05 Thread tu
I also meet the similar problem with Contacts.ContactMethods.CONTENT_EMAIL_URI, but it works fine with Contacts.ContactMethods.CONTENT_URI. My code is: Uri uri = Contacts.ContactMethods.CONTENT_URI; String selection = Contacts.ContactMethods.KIND + "=" + Contacts.ContactMethods.EMAIL_KIND Cursor c

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

2008-04-05 Thread Dan U.
That's what it sounds like, and hopefully that's how it's intended. It's still a bit open to interpretation... "...AND to advertise, display, demonstrate, or otherwise promote the Android platform." If a company were to take your app and distribute it without your consent, wouldn't it still like

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

2008-04-05 Thread Digit
you will probably not like what I'm going to say, but: ranting on the forum is going to have very little results here. even if there are Android developers who read them (and a fewer that even answer certain questions) they are all very busy at the moment. what this means is that the best way to r

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

2008-04-05 Thread Dan U.
Sounds like you are thinking backwards in terms of when things happen. Lets say I unregistered the receiver, but have not made the removeUpdates call. The location manager does not know this, and still sends out an update. Being that there are no more registered receivers for that update, it can'

[android-developers] Re: How to use ANSWER_ACTION

2008-04-05 Thread Megha Joshi
Hi, The feature of letting your application answer the incoming call is not supported at this time, only the inbuilt Phone application is invoked on an incoming call. So you cannot use ANSWER_ACTION. Thanks, Megha On Sat, Apr 5, 2008 at 10:34 AM, Abhinav Parashar <[EMAIL PROTECTED]> wrote: > > H

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

2008-04-05 Thread Jakob Bjerre Jensen
Hello Dan, Thanks for your answer, which seems to solve the problem. However to me the logical order is first to call unregisterReceiver(ir) (saying this specific ir instance is no more interested in notifications), then calling removeUpdates() (saying skip all notifications to me). Is that the

[android-developers] GTalk Service IM Documentation + Sample Apps

2008-04-05 Thread Banter.Yak
Hi. I have been browsing the android SDK documentation in search of documentation + Sample Apps for the gtalkservice. Yes, there is documentation + samples for the apis aspect of things, and that is great, BUT it seems the IM apis are sparsely documented, which would mean learning them by trial! T

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

2008-04-05 Thread Incognito
@Dan U. "There always seems to be a stack trace in LogCat, although sometimes something odd happens and the LogCat output doesn't show up in Eclipse. " I've also seem this problem, LogCat sometis stops being updated. I think this is a bug. I'm too lazy to report it though. On Apr 5, 3:46 pm, "

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

2008-04-05 Thread Esteem
i think it means using the application for advertising, for example, in a tv commercial. not simply giving it away to the public. On Apr 5, 1:26 pm, javqui <[EMAIL PROTECTED]> wrote: > It's not clear for me the paragraph #10 in "ANDROID DEVELOPER > CHALLENGE TERMS & CONDITIONS". I'm confused and

[android-developers] GTalk Data Message

2008-04-05 Thread [EMAIL PROTECTED]
I want to use the smack library from a java client to send a data message to my GTalk enabled application on the emulator. I can send between two emulators just fine. I am new to the smack client. I was wondering if someone could point me in the right direction? --~--~-~--~~

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

2008-04-05 Thread javqui
It's not clear for me the paragraph #10 in "ANDROID DEVELOPER CHALLENGE TERMS & CONDITIONS". I'm confused and I need understand what the real meaning on this topic. Google has a serious reputation, but this paragraph shows something different for Android alliance. The Android challenge FAQ shows a

[android-developers] Re: Mail API

2008-04-05 Thread Dan U.
I found http://groups.google.com/group/android-developers/browse_thread/thread/7f69da8f8501c3f5/94969d7def3d4287?lnk=gst&q=mail#94969d7def3d4287 but it looks like there are some problems. On Apr 5, 12:14 pm, "Dexter's Brain" <[EMAIL PROTECTED]> wrote: > Hello All, > > How do i send a mail with an

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

2008-04-05 Thread Dan U.
If I have some time, I'll look into it more, but for now, have you tried to reverse the order of these calls: activity.unregisterReceiver(ir); locationManager.removeUpdates(new Intent("test")); On Apr 5, 3:20 am, Jakob Bjerre Jensen <[EMAIL PROTECTED]> wrote: > Hello, > > I have an IntentReceive

[android-developers] Re: importing java 6 libs

2008-04-05 Thread Dan U.
Look in the docs for the dx tool On Apr 4, 11:11 pm, Lahiru <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks a lot for the reply,,, > > I'll try with sources.. :) > > Thanks again.! > > On Apr 5, 12:34 am, David Given <[EMAIL PROTECTED]> wrote: > > > Lahiru wrote: > > > [...] > > > >> I need to import

[android-developers] sqlite and junit

2008-04-05 Thread AhtiK
Is it just me or it's pretty much impossible to write junit tests for code that is using android sqlite. Has anyone succeeded? Without building a facade and for tests using original sqlite and its jdbc wrapper.. Any junit test involving Context looks quite a big hack. regs, Ahti --~--~-

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

2008-04-05 Thread Dan U.
I also would have preferred for the normal use of System.out and System.err, but the Android way does force developers to use a more proper logging api which is not necessarily a bad thing. On Apr 5, 8:20 am, Anil <[EMAIL PROTECTED]> wrote: > I don't think you understood my suggestion. Even if it

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

2008-04-05 Thread Dan U.
Interesting. I don't have the apk with m5-RC14, but api demos were on the emulator the first time I started it up. No need to install. There was a post about RC15 not having them, but I don't recall if that was the real issue. Back on topic... > I can handle instability but operating in the dark

[android-developers] Re: Semi-transparency / alpha blending looks awful on Android?

2008-04-05 Thread Romain Guy
Hi, You can also try by disabling the dithering on your 565 Canvas. Also remember that physical devices use screen with a 16 bits (565) precision or less. The "bad" blending you see on your computer screen is not, or almost not, visible on an actual device. On Sat, Apr 5, 2008 at 11:41 AM, hanni

[android-developers] Getting e-mail of selected person in Contacts

2008-04-05 Thread Maxim Yudin
I write new article abotu using Content Provider. I get info about person's name and person's phones in contact list. But I can not get e- mail of person. Help. I have found URI - Contacts.ContactMethods.CONTENT_EMAIL_URI, but it not help My code: Java: package maximyudin.contentproviderexampl

[android-developers] Mail API

2008-04-05 Thread Dexter's Brain
Hello All, How do i send a mail with an attachment to a mail id ??? Is this possible...?? Dexter. --~--~-~--~~~---~--~~ 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: How to setup a server for streaming audio files

2008-04-05 Thread acopernicus
Thanks very much for the link to your .mp4 file. I was able to use it to get the MediaPlayer example working. I still need to convert my .mp3 files into .mp4 compatible files though. Any idea how to do this? I was using Easy CD/DA Extractor but that doesn't produce files in the correct format.

[android-developers] Re: MediaPlayer example: Has anyone been able to stream an .mp4 file yet?

2008-04-05 Thread acopernicus
Got a solution here...I was able to successfully stream a .mp4 file. Turns out my .mp4 file was not contain "progressive streamable content". I'm still trying to determine how to convert all my .mp3 files so they contain "progressive streamable content". Even anyone has a software conversion re

[android-developers] Re: Semi-transparency / alpha blending looks awful on Android?

2008-04-05 Thread hanni
Wow, a breakthrough! I read in another post that Android's framebuffer uses the RGB_565 color mode. So I tried creating a ARGB_ Bitmap and did all of my rendering to that Bitmap. After I was done I copied the Bitmap to the Canvas that I get from the onDraw()-method. This resulted in all semi-

[android-developers] Re: Indeterminate progress bar performance

2008-04-05 Thread qvark
Well, I hope so. In the mean time I have discarded the use of a dialog with an indeterminate progress bar and I'm using a determinate progress bar within my layout (I cannot use the progress bar in the window title because it still consumes a lot of CPU due to the animation). I update the progre

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

2008-04-05 Thread acopernicus
Hi ank, Good question. My m5-RC14 version of the SDK doesn't include an APIDemos.apk file so you may need to create it using Eclipse and then push it using the info outlined here. On the other hand, I did accidentally delete my APIDemos from the Emulator and simply deleted my Android folder and

[android-developers] How to use ANSWER_ACTION

2008-04-05 Thread Abhinav Parashar
Hello, Can somebody help me in using ANSWER_ACTION . How can i use it when phone is ringing ?? I tried- Intent i = new Intent(); i.setAction(Intent.MAIN_ACTION); i.addCategory(Intent.HOME_

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

2008-04-05 Thread acopernicus
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. We won't have to worry about poor error messaging if we can go directly into the Android source code to track down the root of the problem. The best way for us to learn

[android-developers] Re: Force a view to show its contextMenu?

2008-04-05 Thread Agus
Use: MotionEvent ev = new MotionEvent( . . .); dispatchEvent(ev); it works for me. On Wed, Feb 20, 2008 at 6:29 PM, conlan <[EMAIL PROTECTED]> wrote: > > Is there a way, something like: View.triggerContextMenu() > > Thanks! > > > --~--~-~--~~~---~--~~ You re

[android-developers] Re: Semi-transparency / alpha blending looks awful on Android?

2008-04-05 Thread hanni
Oh, I just noticed that if I try to do it the other way, that is, extract the pixels form the image and applying my own blending algorithm, another problem arises. There seems to be a bug in the Bitmap.getPixels() implementation, that causes any pixel that has a non 0xFF alpha, to automatically lo

[android-developers] Re: Indeterminate progress bar performance

2008-04-05 Thread [EMAIL PROTECTED]
I assume this won't be an issue on a real phone. Those will have hardware acceleration to draw the images on the screen and do stuff like alpha blending. On Apr 5, 6:26 pm, qvark <[EMAIL PROTECTED]> wrote: > Hello all, I'm doing some heavy image processing in the background and > I wanted to show

[android-developers] Indeterminate progress bar performance

2008-04-05 Thread qvark
Hello all, I'm doing some heavy image processing in the background and I wanted to show a progress bar to the user (indeterminate since I don't know how to report the exact process status). My surprise is that when I add an indeterminate progress bar to my UI, the background process needs more th

[android-developers] Semi-transparency / alpha blending looks awful on Android?

2008-04-05 Thread hanni
Hi, my application makes heavy use of semi-transparent .png's for interesting graphics. I'm used to this, developing J2ME applications. The alpha blending algorithm in Android, however, seems to be less than adequate. Everything that is semi-transparent is restricted to very few shades of color, a

[android-developers] Re: Aver the air download and install application

2008-04-05 Thread Shane Isbell
I've build SAM, an android client that handles OMA OTA download and install of android applications. I'm releasing this Monday under Apache License 2.0. In the mean time, you can take a look at the provisioning server, also open-source. It handles stocking and OTA delivery. Released here: http://co

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

2008-04-05 Thread Anil
I think perhaps the source is available at http:/code/google.com/p/ android click on the source tab. But I don't think Source Code is the answer at this stage. On Apr 5, 1:44 am, acopernicus <[EMAIL PROTECTED]> wrote: > Thanks for the reply Andrex...but happily Android's poor error > messaging is

[android-developers] Re: Any workaround for the touch mode vs key mode dilemma?

2008-04-05 Thread hanni
Yeah, I found the issue I'm adressing in the bug database, and it seems it has been fixed, but I guess there won't be a release with the fix included before the Android Challenge deadline. http://code.google.com/p/android/issues/detail?id=319 I also noticed the same bug in the actual web browser

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

2008-04-05 Thread Anil
I don't think you understood my suggestion. Even if it is Dalvik, it can behave in a standard manner that a generation of Java programmers expects. After all, we are using Java 1.5. There is a further benefit in production as listed above. On Apr 4, 11:56 pm, Andrex <[EMAIL PROTECTED]> wrote: > I

[android-developers] Re: How to setup a server for streaming audio files

2008-04-05 Thread Kosmaj
> Has anyone got the MediaPlayer examples to stream .mp4 files Yes! We can stream mp4 over http! (Admittedly, after many attempts...) Try this (from the MediaPlayerTest): http://kosmaj.sakura.ne.jp/vids/cm/copy_cm.mp4 mp4 files have to satisfy conditions given here: http://groups.google.com/

[android-developers] Re: JavaDoc

2008-04-05 Thread goorov
Hello, luke (1) I tried to add custom javadoc for android project in Eclipse and result was unstable. The result when I added only stubs with javadoc as source attachment for android.jar is here http://www.androidjavadoc.com/toast-example.PNG (2) Yes, you are right, currently there are no javado

[android-developers] Re: Aver the air download and install application

2008-04-05 Thread james
I was thinking of doing OTA updates for the competition as well, but then reasoned it's probably more work than it's worth at the moment. Probably only worth the hassle for running on real phones, and that probably won't be until 3rd or 4th Q 2008 (if we're lucky). I note that OTA does not work i

[android-developers] Re: How to scroll to element

2008-04-05 Thread Martin Vyšný
On Sat, 2008-04-05 at 05:21 -0700, Tofik wrote: > I have List View of elements. How can I scroll to specific view? I > tried next: > > private ListView listMessages; > ... > View specificElement; > ... > listMessages.scrollTo(specificElement.getScrollX(), > specificElement.getScrollY()); > > but

[android-developers] How to scroll to element

2008-04-05 Thread Tofik
I have List View of elements. How can I scroll to specific view? I tried next: private ListView listMessages; ... View specificElement; ... listMessages.scrollTo(specificElement.getScrollX(), specificElement.getScrollY()); but it doesn't work. I also tried specificElement.requestFocus(), tried t

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

2008-04-05 Thread Jakob Bjerre Jensen
Hello, I have an IntentReceiver IR, which I register as follows: locationManager.requestUpdates(..., new Intent("test")); IntentFilter filter = new IntentFilter(); filter.addAction("test"); IR ir = new IR(...); activity.registerReceiver(ir, filter); This works excellent. However doing my unregi

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

2008-04-05 Thread Ank
Hi frd, I tried new Android Release but when i started emulator then there is no Folder for API Demo so ccan u suggest me tht where the problem lies. I am not able to find exact probGuide Me. Thanks in advance.. On Apr 5, 11:44 am, acopernicus <[EMAIL PROTECTED]> wrote: > Thanks for the rep