[android-developers] Re: Gallery elasticity at the ends

2010-06-14 Thread droidful
Hi Nik, thanks for posting the sample code. I used a lot of that when working on my own project. If your interested I have posted up some sample code that does a similar thing in a different way (gets round some problems I had with Gallery) at

[android-developers] Re: Slow Eclipse on OS X

2010-06-14 Thread Al Sutton
Of Eclipse?, yup, I'm using the 64 bit Coca build. I don't know if there is a 64 bit ADT, I just use what I'm offered in the Eclipse Install Software dialog. As a side note; my Macbook Pro runs everything it can in 64 bit mode (inc. the kernel), which isn't a common configuration and so might be

Re: [android-developers] Re: Market problems again

2010-06-14 Thread Tomáš Hubálek
The same for me. Number of people ratings dropped by two since Friday. I guess that this number cannot decrease... Number of ratings for my two other my apps didn't decrease but they get a lot of ratings everyday so small drop wouldn't be visible. Tom On Jun 14, 2010 7:35 AM, Zsolt Vasvari

[android-developers] Re: Bug in Android framework connecting to url?

2010-06-14 Thread Ajay
This crash can be reproduced when you type more than 80 characters in URL (no spaces and no commas). This doesnt happen in emulator. When you load http://aac.jetcitylounge.groovera.com/; on ur desktop browser you can see it fetches a page with URL more than 80 characters. So i guess its not a

[android-developers] Re: Location distanceBetween()

2010-06-14 Thread Bob Kerns
I don't know if I would term anything to do with spherical trig as easy, exactly, even with my background in math. On the other hand, it's simple to program, once you know the right theorems. This is well covered in any serious textbook on nautical navigation. On Jun 13, 10:00 pm, Frank Weiss

[android-developers] Re: Slow Eclipse on OS X

2010-06-14 Thread spachner
Hi, I encountered the same problems and finally solved them by installing the Carbon version of Eclipse (eclipse-SDK-3.5.2-macosx- carbon.tar.gz). regards spachner On Jun 14, 8:07 am, Al Sutton a...@funkyandroid.com wrote: Of Eclipse?, yup, I'm using the 64 bit Coca build. I don't know if

[android-developers] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

2010-06-14 Thread Rahul Garg
Hi All, I am trying the MapDemo application, but I am unable to launch the activity, it is showing following error message : [2010-06-14 12:11:49 - TryMaps] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY [2010-06-14 12:11:49 - TryMaps] Please check logcat output for more

[android-developers] Process.setProcessGroup() Unknown error?

2010-06-14 Thread Mariano Kamp
Hi, did anybody encounter the RuntimeException with the message Unknown error? Cheers, Mariano java.lang.RuntimeException: Unknown error at android.os.Process.setProcessGroup(Native Method) at android.app.ActivityThread.handleChangeTopApp(ActivityThread.java:3663) at

[android-developers] Re: Example gallery style view with fling, bounce, animation, etc

2010-06-14 Thread droidful
package com.droidful.flinggallery; import android.content.Context; import android.view.GestureDetector; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.WindowManager; import android.view.animation.Animation; import

[android-developers] Re: Example gallery style view with fling, bounce, animation, etc

2010-06-14 Thread droidful
package com.droidful.flinggallery; import android.app.Activity; import android.os.Bundle; import android.content.Context; import android.graphics.Color; import android.view.Gravity; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import

[android-developers] Example gallery style view with fling, bounce, animation, etc

2010-06-14 Thread droidful
In my other topics about animation methods and problems with gallery views I made mention of writing my own gallery view. I'm pretty new to Android but I found some helpful posts and helpful people on this group so I am posting up my code for the benefit of anyone who is curious. Feel free to

[android-developers] Re: How is the camera view angle determined in getHorizontalViewAngle ()?

2010-06-14 Thread blindfold
The getHorizontalViewAngle() and getVerticalViewAngle() can at best return fixed hardware-dependent values as set by the phone manufacturer for their own built-in lens. As soon as the user applies an add-on lens (e.g. one of those magnetic detachable fish-eye lenses as recommended for my app)

[android-developers] Re: Example gallery style view with fling, bounce, animation, etc

2010-06-14 Thread droidful
//(edit: removed complexities around fling velocity and transitions; now just decelerates like the standard gallery) package com.droidful.flinggallery; import android.content.Context; import android.view.GestureDetector; import android.view.KeyEvent; import android.view.MotionEvent; import

[android-developers] Re: Market problems again

2010-06-14 Thread Zsolt Vasvari
What I meant by rating, not the star rating, but when do a list of all apps in my category, mine appears much lower than before. I know there are a lot of (secret) factors involved, but I still wouldn't have expected a drop. I dunno. On Jun 14, 2:17 pm, Tomáš Hubálek tom.huba...@gmail.com

[android-developers] Re: Slow Eclipse on OS X

2010-06-14 Thread Zsolt Vasvari
Yes, this actually happens on my Vista 64-bit install as well. After a while, Eclipse just grinds to a halt, and I need to restart it. On Jun 13, 5:22 am, Bill Lumberg poiuytr...@gmail.com wrote: I am running Eclipse Galileo on an Intel Mac and after using it for a bit, it becomes very slow.  

[android-developers] Re: Example gallery style view with fling, bounce, animation, etc

2010-06-14 Thread droidful
By the way, I am just updating the FlingGallery class so that you cant scroll faster than the fling animation velocity. This will make for a smoother UI on fling (at the moment the scroll happens really fast then the animated fling is slower so it looks a bit jerky). -- You received this message

Re: [android-developers] Re: Market problems again

2010-06-14 Thread Tomáš Hubálek
I meant number of people that gave rating. This was yesterday lower than on Friday and today it is OK. Tom On Mon, Jun 14, 2010 at 10:13 AM, Zsolt Vasvari zvasv...@gmail.com wrote: What I meant by rating, not the star rating, but when do a list of all apps in my category, mine appears much

[android-developers] Re: Static header in ListView

2010-06-14 Thread MobDev
Put the header outside the ListView. How do you even do that ? :D Thought the addHeaderView(v) method was specifically for the ListView ? I guess you are saying that another View should be used and placed within the same Layout where the ListView is in ? ASpecifically on top of it ? On 12 jun,

[android-developers] Re: Location distanceBetween()

2010-06-14 Thread MobDev
This obviously is all true, BUT why re-invent the wheel ? I mean if there is an implemented method which should offer that functionality the most logical thing is to use that one instead of writing your own methods.. Or did you guys also rewrote all other API's as well ? Why even supply ANY API's

Re: [android-developers] Re: How to send mms from my code

2010-06-14 Thread Sean Hodges
That is because there are multiple apps on your phone that can handle the intent. See the documentation: http://developer.android.com/intl/fr/reference/android/content/Intent.html#ACTION_SEND On Mon, Jun 14, 2010 at 5:31 AM, mike hasitharand...@gmail.com wrote: hi sean, when i try to send a

[android-developers] Re: how can we set the background of button with bitmap image........which is cre

2010-06-14 Thread prachi
hey hiii u can try dis... b = new ImageButton(MixView.this); Bitmap bmp = BitmapFactory.decodeResource(this.getResources(),R.drawable.mapicon1); b.setImageBitmap(bmp); On Jun 11, 1:17 am, Dixit Wadhwani dixitwadhw...@gmail.com wrote: --  for bitmap image..this code is not

[android-developers] One of my application is invisible now on the market (Pure messenger / not copy protected)

2010-06-14 Thread Koxx
Hi, one more problem with the Market. Since 2 days, I have big problems with this application (Pure messenger widget). It is invisible on the Market. I checked multiple times, the applications is published and everything is fine on the market publisher website. Important information : this

[android-developers] Re: broken pipe exception

2010-06-14 Thread prachi
hey h canu u plzz throw some light on dis in detail On Jun 9, 11:27 am, ravish mahajan ravish2...@gmail.com wrote: hii   i am making a application based on remote desktop protocol in that i am getting a error broken pipe exception is this the error of emulator /network whther i have

[android-developers] Re: Scrollable widgets in alternative Home applications.

2010-06-14 Thread Koxx
we created a group to continue those discussion. ADW Launcher now fully implement this solution (as beta, not in the current Market version, but soon, it will be published). Same for FreedHome, Helix, and Tag Home. You can follow those discussions here :

[android-developers] Re: Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

2010-06-14 Thread SREEHARI
Hi Rahul, If u added uses-library android:name=com.google.android.maps / already, the problem will be due to map key. Try creating map key in he right way. Regards, SREEHARI. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: One of my application is invisible now on the market (Pure messenger / not copy protected)

2010-06-14 Thread Koxx
I should precise: - There is no application filter (like countries, or devices screen ...) - I tested on 2.1 devices (Milestone Magic with Cyano 2.1 ROM), and 2.2 (Nexus 1). - I had no problem 2 days ago on all those devices. -- You received this message because you are subscribed to the Google

[android-developers] Re: Accessing Dynamic TextView

2010-06-14 Thread prachi
Hey hiii im not sure whether this will work but still give it a try i think instaed of adding the textviews through xml layout u add them in ur program using an array of textviews and then update them on each button click with the help of loop and setting each textview element value. On Jun 9,

[android-developers] Suggestion for Google Navigation

2010-06-14 Thread pprados
This application propose to select a contact postal adress from a list, extracted in contact list. But, the ContactList activity propose a similare service with the intent : Intent intent=new Intent(Intent.ACTION_PICK) ; intent.setType(StructuredPostal.CONTENT_TYPE) ;

[android-developers] About the Account and the ContactsContract API

2010-06-14 Thread David Bidorff
Hi, I'm creating my first Android application and I'm looking for a few advices on several subjects. The context is simple: my application connects itself to several Instant Messaging servers and it creates a RawContact in the Contact Provider each one for the contacts found on these servers. At

[android-developers] Re: About the Account and the ContactsContract API

2010-06-14 Thread David Bidorff
By the way, please excuse me for my bad english ;) -- David On Jun 14, 11:40 am, David Bidorff david.bido...@gmail.com wrote: Hi, I'm creating my first Android application and I'm looking for a few advices on several subjects. The context is simple: my application connects itself to several

[android-developers] Howto design activity and Service writing to the same table?

2010-06-14 Thread gadjou
Hello, I have an activity which starts a (intent)service. Both access the same DB and potentially write to the same table. What design pattern would you recommand to avoid concurrency? Thanks Jérôme -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: One of my application is invisible now on the market (Pure messenger / not copy protected)

2010-06-14 Thread Koxx
Same on HTC Desire (ROM 1.21.405.2 stock) -- 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

[android-developers] Re: How to send mms from my code

2010-06-14 Thread Neilz
I've just been looking for something like this myself... a timely topic. Please could you edit this code to show how I would send an image from the @drawable folder? On Jun 9, 4:29 pm, Sean Hodges seanhodge...@googlemail.com wrote: Mike, I can do a little more than that, I can give you a

[android-developers] Re: Accessing Dynamic TextView

2010-06-14 Thread Nithin
As prachi said, create the TextView in the program itself. -set the id for each TextView using setId(). -in onclick(View v), using getId(), get the id and update the textView Nithin On Jun 14, 2:28 pm, prachi prachi.tya...@wipro.com wrote: Hey hiii im not sure whether this will work but

[android-developers] Re: One of my application is invisible now on the market (Pure messenger / not copy protected)

2010-06-14 Thread Koxx
The application still appear as 'Downloaded' if the application is already installed. Same on : - Nexus 1 (Froyo/Modaco) - Nexus 1 (cm507) - Magic (Luo/cm507) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] how to open an App what then Android OS start up?

2010-06-14 Thread CMF
hi all, is there any one know how to open an App what then Android OS start up, I have to do it in an embedded system? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

[android-developers] how to open an App when the Android OS start up

2010-06-14 Thread CMF
hi all, is there any one know how to open an App when the Android OS start up, I have to do it in an embedded system? -- 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

Re: [android-developers] Re: How to send mms from my code

2010-06-14 Thread Sean Hodges
I'm not sure of the best way to do this; but my understanding of the mechanism is that the image is pulled from any given content provider URI, just so long as the data returned can be understood by BitmapFactory.decodeStream(). So a simple solution would be to create a new ContentProvider and

[android-developers] Sending key events from button press

2010-06-14 Thread Soumya
Hi, I am creating an application where in if the user pressed a button then a key event will be send to a edit text. For example, if the user pressed the button A, then the text A will be displayed in the edit text. I am using this code atm but am not sure whether it is correct way to achieve

[android-developers] Re: How to send mms from my code

2010-06-14 Thread Neilz
This whole functionality seems really inconsistent - I now remember that I've tried this before and given up. I tried this code: Intent i=new Intent(android.content.Intent.ACTION_SEND); i.setType(image/jpg); i.putExtra(Intent.EXTRA_SUBJECT, Neils Subject); i.putExtra(Intent.EXTRA_TEXT, Hello

[android-developers] Re: GLES/IntBuffer/?? Mis-placed verts?

2010-06-14 Thread Mario Zechner
A screenshot of the error would help a lot. I suspect z-fighting of some sort given the information you gave us so far. On 13 Jun., 23:30, Samsyn d...@synthetic-reality.com wrote: and no, it's not 'the last triangle in the mesh'  Seems fairly evenly distributed in that way, so I no longer blame

[android-developers] problems putting a button under a ListView

2010-06-14 Thread Jose Luis Montes
Hello all I am trying to set an activity with a ListView and under the ListView, a button, but when the listview grows, the button disappear (goes down and doesnt appear). this is the xml: ?xml version=1.0 encoding=utf-8? RelativeLayout

[android-developers] Re: About the Account and the ContactsContract API

2010-06-14 Thread David Bidorff
I found out the source(s) of the my problem related to the Accounts: First, I had no SyncManager associated to my Account Authenticator (and Eclair doesn't seems to like that), so I added an empty one (after some thoughs, I think that I'll setup a more complete one in the future). Moreover, I was

Re: [android-developers] problems putting a button under a ListView

2010-06-14 Thread Mark Murphy
Your android:layout_height=wrap_content on the LinearLayout will not work, as the content of a ListView can grow very tall. Instead: -- get rid of the LinearLayout -- have your ListView use android:layout_above=@+id/add_drink_type and android:layout_alignParentTop=true -- get rid of the

[android-developers] Re: How to send mms from my code

2010-06-14 Thread Neilz
Found one of the answers I needed on another old topic: An extra slash is needed: i.putExtra(Intent.EXTRA_STREAM,Uri.parse(file:///sdcard/DCIM/Camera/ picture.jpg)); This solves the problem of sending via gmail. I still can't work out how to send a drawable from the resources. On Jun 14, 12:14 

[android-developers] Re: Gallery elasticity at the ends

2010-06-14 Thread Nik Bhattacharya
Great. The gallery has some problems with the physics elements that make it feel clunky and not delightful especially when it is used in full-screen mode. Unfortunately its not easy to fix in a subclass due to internal unexposed variables in the super class. Will definitely look at your code.

Re: [android-developers] problems putting a button under a ListView

2010-06-14 Thread Jose Luis Montes
that works! thanks! :) On Mon, Jun 14, 2010 at 2:04 PM, Mark Murphy mmur...@commonsware.comwrote: Your android:layout_height=wrap_content on the LinearLayout will not work, as the content of a ListView can grow very tall. Instead: -- get rid of the LinearLayout -- have your ListView use

[android-developers] Re: Example gallery style view with fling, bounce, animation, etc

2010-06-14 Thread droidful
I have updated the class to improve the UI. There is still one glitch I am working on. When you do a fling gesture there is a slight pause before the fling animates, this is caused when the outgoing view attempts to recycle from the adapter, it only takes a fraction of a second but it is

[android-developers] Re: Example gallery style view with fling, bounce, animation, etc

2010-06-14 Thread droidful
package com.droidful.flinggallery; import android.content.Context; import android.util.Log; import android.view.GestureDetector; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.animation.Animation; import

[android-developers] Re: Gallery elasticity at the ends

2010-06-14 Thread droidful
Sorry about that, correct link is http://groups.google.com/group/android-developers/browse_thread/thread/27d5f678be44c370/3f5ec157b3717e3f#3f5ec157b3717e3f. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] how to open an App when the Android OS start up

2010-06-14 Thread Kostya Vasilyev
Hi, Sure, there is a way. Android broadcasts a special intent action once booting is completed. In your manifest: 1. Add a permission to receive the event: uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED / 2. Declare a broadcast receiver: receiver android:name=your

Re: [android-developers] Re: Gallery elasticity at the ends

2010-06-14 Thread Australuke
Sorry. Updated the link. I also have the whole project including apk on my Zumo drive at http://www.zumodrive.com/share/5SBbYzk0Mj. On 6/14/10, droidful austral...@gmail.com wrote: Sorry about that, correct link is

[android-developers] programmatically setup an ad-hoc network

2010-06-14 Thread BITS
Is there a way to programmatically setup an ad-hoc network? I see that with 2.2 we are able to set up ad-hoc network through the UI, however there doesn't seem to be any API additions in android.net.wifi. It also doesn't look like there is a way to take the user directly to ad-hoc settings

[android-developers] Re: dalvik and defineClass

2010-06-14 Thread garbeam
On Jun 11, 11:01 am, garbeam garb...@gmail.com wrote: Hi there, I'm wondering if and how one can load dex or class files dynamically in dalvik, some quick'n'dirty test function I wrote was this:         public void testLoader() {                 InputStream in;                 int len;    

Re: [android-developers] Re: How to send mms from my code

2010-06-14 Thread Sean Hodges
This acutally works if I select gmail, although the image name gets changed to the resource id. However if I choose 'Messaging' from the intent chooser, it throws a null pointer. That's very odd. Have you tried the package/type/name format instead of package/id? Uri uri =

[android-developers] Issue with legacy phones URI.

2010-06-14 Thread sukumar bhashyam
hi, My app needs contacts id, display name and phone number in a single query. I see legacy uri android.provider.Contacts.Phones.CONTENT_URI suits me the best. For some reasons query on this uri return me 0. I looked into the LegacyApiSupport.java, legacy PHONES table is mapped to a view

[android-developers] Replace dialer application by installing another dialer app

2010-06-14 Thread rt
Does anyone know if since the last posting on this thread (Aug. 2009) future Android releases have made the dialer app more modular? That is, one can more easily replace it with a downloadable dialer app. I recall that at the time, some of the challenges of overwriting the native dialer had to do

Re: [android-developers] Service Vs Thread

2010-06-14 Thread tarek attia
Thank you so much for such help Again all my application requires the following :- 1. The application should be able to run in the background when other applications are running in the foreground. 2. When the application is on the foreground, it should shows certain stuff to

Re: [android-developers] Re: Slow Eclipse on OS X

2010-06-14 Thread Mariano Kamp
Ok then. I downloaded the 32 bit version first and it got better after I re-installed Eclipse, this time the 64 bit version. But maybe I am imagining things. On Mon, Jun 14, 2010 at 8:07 AM, Al Sutton a...@funkyandroid.com wrote: Of Eclipse?, yup, I'm using the 64 bit Coca build. I don't know

[android-developers] jpeg from binary?

2010-06-14 Thread schwiz
Does Android have a native library that can make a jpeg from binary data from say, a json object? -- 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

Re: [android-developers] Service Vs Thread

2010-06-14 Thread Kostya Vasilyev
Yes, this is exactly what services are for. Services are a way to tell Android that certain code in your application is important to the user, and Android should make an effort to keep it running even when it doesn't have active activities. For user notifications, take a look at

[android-developers] Re: Speed issue: content provider vs plain sqlite db

2010-06-14 Thread Moto
Moss could you point me to romain guys shelves app location :) thx.. On Jun 12, 11:18 am, Moss b.thax@gmail.com wrote: Just to make a small update on the issue, I looked a bit at romain guys shelves app which helped me a lot and my app updates now seamless 15k feed items! On 6 mayo,

[android-developers] Re: jpeg from binary?

2010-06-14 Thread Yahel
Does Android have a native library that can make a jpeg from binary data from say, a json object? Convert your json into a byte array(byte[]) and then use BitmapFactory.decodeByteArray() :

[android-developers] Re: jpeg from binary?

2010-06-14 Thread schwiz
ok thanks for the reply, so even though my byte array was created from a jpeg the bitmap factory will know what to do with it? If so this is great news :) On Jun 14, 9:31 am, Yahel kaye...@gmail.com wrote: Does Android have a native library that can make a jpeg from binary data from say, a

[android-developers] Re: Example gallery style view with fling, bounce, animation, etc

2010-06-14 Thread Neilz
This looks really useful, I'm going to have a play with it, many thanks for sharing. Are you able to edit it so that it works with older android versions? I haven't come across the LayoutParams.MATCH_PARENT before. On Jun 14, 1:32 pm, droidful austral...@gmail.com wrote: package

Re: [android-developers] Re: GLES/IntBuffer/?? Mis-placed verts?

2010-06-14 Thread Leigh McRae
Been there done that. When I ported Tank Recon 3D from BlackBerry to Android I had this problem. Lucky for me I was pretty sure it wasn't my code since it worked on BlackBerry. I tried fixed and float. Did interleaved and non-interleaved and it didn't fix anything. Went through shutting

[android-developers] Re: Service Vs Thread

2010-06-14 Thread schwiz
your service will want to spawn its own thread or asynctask to do your heavy work or else you will get a forceclose. On Jun 13, 8:46 am, tarek.attia tarek.m.at...@gmail.com wrote: Hi all, I have a question what to Use ,Service Or Thread,as both run in the background -- You received this

[android-developers] Re: How to send mms from my code

2010-06-14 Thread Neilz
Good call... Both Uri uri = Uri.parse(android.resource://com.package.android.test/ drawable/icon); and... Uri uri = Uri.parse(android.resource://com.package.android.test/raw/ icon); ...work fine with Gmail. But both throw an exception when I choose 'Messaging': Caused by:

[android-developers] Re: Content provider implementation questions

2010-06-14 Thread Moto
From what I searched before, ContentProvider is only for allowing Database access to your app from other apps... In your case I'm not sure you would want to use a ContentProvider to access files... You might be able to hack it but I wouldn't recomend it... Try a service... Maybe inside the

Re: [android-developers] Re: Content provider implementation questions

2010-06-14 Thread Mark Murphy
You can use a ContentProvider to serve files. See the openFile() method. On Mon, Jun 14, 2010 at 10:51 AM, Moto medicalsou...@gmail.com wrote: From what I searched before, ContentProvider is only for allowing Database access to your app from other apps...  In your case I'm not sure you would

[android-developers] how to launch applications installed in a phone?

2010-06-14 Thread guich
Hi, I would like to launch some applications, like the Calculator, the alarm clock, the notepad, the calendar, the camcorder, the camera, the dialer, etc, from my application. Is there an easy way to do that? Is there any place with a list of what are the intent names to launch them? thanks

Re: [android-developers] how to launch applications installed in a phone?

2010-06-14 Thread Mark Murphy
Most of those do not have documented Intents. You can find the right Intents via looking at the source code, looking at LogCat output, or perhaps on the openintents.org site. However, bear in mind that they are all subject to change. They will not exist on some devices, and they may not exist

[android-developers] Re: Disable Bluetooth discoverable mode

2010-06-14 Thread BITS
Thank you Gyan for your help. I was looking into the NDK and I wonder if perhaps I could use the bluetooth service available there? Sincerely, BitsAndroidTeam On Jun 11, 4:47 pm, Gyan gnanesh@gmail.com wrote: Two answers: 1. Call the intended service instead of using the DISCOVERABLE

Re: [android-developers] Re: Disable Bluetooth discoverable mode

2010-06-14 Thread Gyan
U cant make the device discoverable for more than 300 seconds using any means. Based on the constants mentioned in the above link, u basically define whats ur service using the bluetooth capability for! If u use to stream audio, you can define the BluetoothClass constant as Audio. NDK is also

[android-developers] Re: how to launch applications installed in a phone?

2010-06-14 Thread schwiz
There are apps like beautiful widgets that give you a list of all of the apps installed on your phone and give you a choice of what to launch when you press a certain button. Also, the various homescreen replacements that know what acitivities are installed on the phone and how to launch them. I

[android-developers] Re: Location distanceBetween()

2010-06-14 Thread Bob Kerns
I've reimplemented tons of APIs when they didn't work. But it occurs to me now that this could simply be a documentation error. -90 and 270 are equivalent. I assumed the OP knows that, and was still unhappy with the result. Perhaps he wants to verify the result. A bit of googling and a

[android-developers] Re: Howto design activity and Service writing to the same table?

2010-06-14 Thread Bob Kerns
Transactions. Handling this sort of concurrency is largely what databases are all about. Read any introduction to databases. Pay special attention to the so-called ACID properties -- Atomicity, Consistency, Isolation, and Durability. The basic idea is that you choose your transaction boundaries

[android-developers] Re: jpeg from binary?

2010-06-14 Thread Yahel
Yes it should. You even have in bitmap.congig, the possibility to retrieve the mime type the factory found for this file : http://developer.android.com/intl/de/reference/android/graphics/BitmapFactory.Options.html#outMimeType Yahel On 14 juin, 16:34, schwiz sch...@gmail.com wrote: ok thanks

Re: [android-developers] Re: Location distanceBetween()

2010-06-14 Thread Frank Weiss
Hi Bob, thanks for backing up my DIY comment. Although I agree that reinventing the wheel is not good, I do believe having some domain breadth is good. Here's one of the articles I found: http://mathforum.org/library/drmath/view/55417.html -- You received this message because you are subscribed

[android-developers] Re: surfaceDestroyed not called! Why?

2010-06-14 Thread Paolo
nobody can help me to undestand why? On 8 Giu, 13:41, Paolo brand...@gmail.com wrote: Hi there! I've a problem with the Camera, in particular with the surfaceDestroyed() callback. This is my scenario: The app starts with an activity that shows a splash screen, and after 3 seconds it send

[android-developers] Adding a new dictionary to LatinIME

2010-06-14 Thread sateesh
Hi ! I'm trying to add my own dictionaries to the LatinIME package. Currently, my word lists look like the one in 'dictionaries/ sample.xml', however, I can't find any documentation related to how I can convert this XML file to a binary dictionary that can actually be read by the package.

Re: [android-developers] Re: how to launch applications installed in a phone?

2010-06-14 Thread Mark Murphy
For getting a list of *all* applications, use PackageManager. However, *all* is very different from *specific named* applications. Here is some sample code showing how to build your own launcher-style application: http://github.com/commonsguy/cw-advandroid/tree/master/Introspection/Launchalot/

[android-developers] finding the state of an activity

2010-06-14 Thread guich
Hi, Suppose i have a program that' s currently in a PAUSED state. Then the user launches another activity. In this second one, i want to find if the first one is in paused state or not because, if its paused, i want to recover it. Is there a way to find if a specific activity is in pause state

Re: [android-developers] finding the state of an activity

2010-06-14 Thread Mark Murphy
Suppose i have a program that' s currently in a PAUSED state. There is no such thing as a program being in a paused state. Activities can be in a paused state. Then the user launches another activity. In this second one, i want to find if the first one is in paused state or not because, if

[android-developers] Unknown PCM AndroidCapture

2010-06-14 Thread Brian
All, I'm trying to create a simple application that takes data in from the audio input, and plays it out the audio output using the AudioRecord and AudioTrack classes. I'm getting an error when I run the application on a Beagleboard. The error from logcat is as follows: E 747 ALSALib

[android-developers] handling voice input keyboard event

2010-06-14 Thread greg
I'd like to add voice input to my application as an option for the user to specify the text that the application will attempt to find within a lengthy ListView (e.g., 30K items). Because the keyboard (physical or on-screen) are other options for the user to specify search text, I'd like to use

[android-developers] Re: Process.setProcessGroup() Unknown error?

2010-06-14 Thread Mariano Kamp
I checked 20 error reports and 100% were from either the HTC Desire or the HTC Incredible. On Mon, Jun 14, 2010 at 9:29 AM, Mariano Kamp mariano.k...@gmail.com wrote: Hi, did anybody encounter the RuntimeException with the message Unknown error? Cheers, Mariano java.lang.RuntimeException:

[android-developers] Audio focus in 1.5 and 1.6

2010-06-14 Thread ls02
I need to catch event when another app starts playing audio while my app is also playing audio. My understanding that AudioManager.OnAudioFocusChangeListener interface does exactly what I need. However it is not available on Android 1.5. How do I catch this event in 1.5? Is there any broadcast

[android-developers] Re: finding the state of an activity

2010-06-14 Thread guich
Hi Mark, I have a stub that calls a vm passing a program as parameter (in the extras field). When the user press the home key, the onPause method is called. If he press again the application's icon, the stub will be called again. I want to know if the last activity is in the pause state and then

[android-developers] SMS notification always displays the first message not the resent message

2010-06-14 Thread mike
hi guys, i have implemented a notification manager which will notify me when ever i got a new message the notification manager will notify me. which works fine. but when ever i expand the notification manager it always displays the first message not the resent message. this is the code where I

[android-developers] Re: finding the state of an activity

2010-06-14 Thread guich
Is there a public registry or public place where i can put data that can be easily accessed by applications that are signed with the same key? I could use that area to put information about the state of an activity. thanks guich -- You received this message because you are subscribed to the

[android-developers] Re: Disable Bluetooth discoverable mode

2010-06-14 Thread BITS
Thank you again Gyan. I will try to take a look at the BluetoothClass.Service to see if it is useful for me. I'm not sure how it is used but I'll try to find out. As for the NDK, I have read other posts regarding using NDK with bluetooth and I believe that its not recommended. This is the site:

[android-developers] Re: Why is Android so buggy?

2010-06-14 Thread blahblah...@gmail.com
Actually, I've been using BSD sockets since about 1992 with about 10 OSes :) The bug I mentioned is not a 'timeout', it is for connection refused which (as you know) should return immediately (network permitting) with a 'connection refused' error. With Android the socket read is sitting there for

[android-developers] Re: VideoView continues to play?

2010-06-14 Thread Mark Nuetzmann
I am experiencing something similar that has me confused. I have an activity with a VideoView as well. While viewing the video I hit the HOME key or the RED phone key to force the device to sleep. In the onPause of the activity I call pause() on the VideoView and in the onStop of the activity I

[android-developers] Re: Developing sotfkeyboard

2010-06-14 Thread andu
Thank you Galbayar D. It helps me very much. Thank you again Andu. On Jun 4, 9:40 am, Galbayar D galba...@usi.mn wrote: http://code.google.com/p/android-greek-ime/ Gala On Fri, Jun 4, 2010 at 3:30 PM, Indicator Veritatis mej1...@yahoo.com wrote: 'The sample soft keyboard'? Which one?

Re: [android-developers] Re: finding the state of an activity

2010-06-14 Thread Mark Murphy
There is no public registry, but if two applications are signed with the same key and are set up with sharedUserId, they can access each other's application-local file storage (getFilesDir()). On Mon, Jun 14, 2010 at 1:03 PM, guich guiha...@gmail.com wrote: Is there a public registry or public

[android-developers] Re: Process.setProcessGroup() Unknown error?

2010-06-14 Thread Mariano Kamp
Forget it. I think I have the issue. Too many open files. Maybe of interest to others: I frequently saved a preference (current article) in the preferences, but this took ages as a whole XML tree needs to be created and written to flash. To speed things up I changed the implementation to a

[android-developers] Re: Delivery Status Notification (Failure)

2010-06-14 Thread Mariano Kamp
Hi Keith. Hmmh, yes, that's how I do it too. I include my actual code below that is expressed differently, but the important part seems to be the same. You can reproduce the issue every time? Maybe then it is just a coincidence that it doesn't happen anymore to my users?! Or there is something

[android-developers] Re: GLES/IntBuffer/?? Mis-placed verts?

2010-06-14 Thread Samsyn
Leigh, thanks for the reply. I actually found your thread on the subject and was dismayed at the solution :-) I think I will live in denial for awhile before switching to that. How much of a performance hit do you feel you took with all the extra verts to be transformed? And I guess that would

[android-developers] Database folder

2010-06-14 Thread Pinheiro
After testing the various techniques to populate a large database (50.000 records, 700KB), I've decided to download a SQLite database directly from the Web to the phone (it takes just a few seconds, the alternatives took up to 3 minutes). My question is that since there isn't a method to get it,

  1   2   >