[android-developers] Re: How to create uses-library

2010-05-10 Thread Vinay S
Hi Karteek, As Mr. Mark Murphy has suggested create a new project for your reusable set of code. Export the same as Jar and include where ever you need them. Regards, Vinay On May 11, 10:53 am, Dianne Hackborn wrote: > On Mon, May 10, 2010 at 10:29 PM, karteek wrote: > > Sorry I said Java fil

[android-developers] Re: How can I know if OpenGl has drawn something?

2010-05-10 Thread Robert Green
Hmm.. I'm sorry but this has reached the limit of what I know off- hand. I'd have to get into debugging your code to be able to help more. I have a feeling one of two things is wrong: 1) Your projection matrix is not matching what glOrthof is doing (fix by using glLoadMatrix there) 2) Somethin

[android-developers] Re: On activity (re)usage en creation

2010-05-10 Thread EnnaN
> > Any thoughts on how "bad" the current behaviour is? > > Not sure what you mean - but if you haven't touched anything else, the > current behavior is the default behavior, which should suffice for most > apps. My point was, you're basically doing the equivalent of browsing a site. But for each

[android-developers] Re: WCF complex types with android

2010-05-10 Thread ko5tik
I developed small JSON datamarshaller suitable for android (really small, only 2 classes ): http://github.com/ko5tik/jsonserializer it is capable to read / write complex object trees. I use it on device to serialize my application data, and to transfer highscores back and forth to server ( her

[android-developers] Multiple Notifications - PendingNotifications with different data?

2010-05-10 Thread Nathan
Let's say I have a background service that performs several tasks. As it completes task A, it posts notification A with a certain intent and some extra data that indicates viewing result of A. As it completes task B, it posts notification B with a certain intent and some extra data that indicates

Re: [android-developers] Re: On using themes?!

2010-05-10 Thread Dianne Hackborn
You need to define an attribute for your value: Then make a custom theme that supplies a value for it: #ff808080 And now you can reference that value from other XML: http://schemas.android.com/apk/res/android"; android:shape="rectangle"

Re: [android-developers] Re: How to create uses-library

2010-05-10 Thread Dianne Hackborn
On Mon, May 10, 2010 at 10:29 PM, karteek wrote: > Sorry I said Java files means it is also using android packages. > As you said uses-library is for only sdk add-ons. > Can't we generate add ons to include in my applications > No, this is only for things built in to the system image. Third pa

[android-developers] Re: How to create uses-library

2010-05-10 Thread karteek
Log cat is 05-11 11:02:12.062: ERROR/PackageManager(52): Package com.my.lib requires unavailable shared library com.my.lib; failing! On May 10, 3:46 pm, Vinay S wrote: > Can post the LogCat Output.. > > -Vinay > > On May 10, 12:21 pm, Karteek N wrote: > > > > > Hi, > > In android manifest file

[android-developers] Re: How to create uses-library

2010-05-10 Thread karteek
Sorry I said Java files means it is also using android packages. As you said uses-library is for only sdk add-ons. Can't we generate add ons to include in my applications My overall idea is to make use some repeated functionality as an library. If i want to generate jar file i need to write it as

[android-developers] MapView Marker and Parameter

2010-05-10 Thread Ning
Hi, Is there API to draw the blue flashing circle at arbitrary location same as the one provided by MyLocationOverlay in Google Map API? And is it possible to draw a parameter around the dot given a radius, like "my location" in Google Map? Thanks. -- You received this message because you are s

[android-developers] Re: startActivityForResult returns result BEFORE activity starts.

2010-05-10 Thread Nathan
On May 9, 2:43 pm, TreKing wrote: > On Fri, May 7, 2010 at 12:51 PM, Nathan wrote: > > Can anyone make any suggestions? > > Check where your secondary activity is setting the result and double check > your logic there. > I did. This is all: Intent data = new Intent();

[android-developers] Check The Pic and comment

2010-05-10 Thread pawan nimje
Hi All, Check the image attached and let me know if its possible ... 6 tabs ... 4 above and 2 below ... and if yes .. how?? PS : i have created 4 tabs [all above :) ] using extends TabActivity,tabhost etc . -- You received this message because you are subscribed to the Google Groups "Android

Re: [android-developers] How can i delete the sms from the inbox

2010-05-10 Thread Mani Android
Hi Manoj Try this Uri uri = ContentUris.withAppendedId(Sms.Inbox.CONTENT_URI, 2); getContentResolver().delete(uri,null); Regards Manikandan.D On Mon, Apr 26, 2010 at 3:45 PM, Manoj wrote: > Hi folk, > I am trying to delete sms from the inbox, > I am using the following statement > > getConte

Re: [android-developers] Re: How to set and get thread priority from Java and native layers

2010-05-10 Thread Krishnakumar Ramachandran
I tried that too. But still when I try to query my audio thread's priority, it still shows its priority as 5. On Tue, May 11, 2010 at 8:25 AM, Streets Of Boston wrote: > What about Thread.setPriority(...) ? > > That seems to be working for me. > When, using the above method, i set the priority of

Re: [android-developers] Re: sending MMS programming

2010-05-10 Thread Mani Android
Hi if u want to do it using SDK version, U can't do it. But If u have the Android platform code, u can do it by the following steps. My Solution, 1. In MMS application, create a new receiver. 2. Receiver should call the AsyncTask class method to send the mms in the background (Refer: http://dev

[android-developers] Re: Android Debugging Issues

2010-05-10 Thread SeriousCoder
Guys, Please let me know if anyone has a solution to this. Thank you. . On May 3, 2:00 pm, SeriousCoder wrote: > The version of IDE is as follows : > > Eclipse IDE for Java Developers > > Build id: 20100218-1602 > (c) Copyright Eclipse contributors and others 2000, 2009.  All rights > reserved.

[android-developers] SimpleDateFormat timezone problem with 2.1

2010-05-10 Thread Don Park
(reposted from http://pastie.org/954797) I'm looking to convert a unix epoch time to Iso8601. I made the following method which has worked on my G1 phone for a long time: public static String DateTimeIso8601(long offset) { DateFormat datePattern = new SimpleDateFormat ("- M

[android-developers] Re: Getting widget size

2010-05-10 Thread String
Here's what works for me: First, in your manifest XML, make sure you have . AFAIK, if that's set to false, the platform always pre-scales your widget to MDPI-standard measurements. Then in your ACTION_APPWIDGET_UPDATE handler, you'll need to get an AppWidgetProviderInfo object (using AppWidgetMan

Re: [android-developers] read the inbox messages

2010-05-10 Thread Mani Android
Hi Siddiqui U can read the sms from the DB using the following URI To get the inbox sms: content://sms/inbox To get the send sms: content://sms/sent Refer the following java files: 1. Telephony.java : framework/base/core/java/android/provider After query from the DB, How to process the read th

[android-developers] Re: How to set and get thread priority from Java and native layers

2010-05-10 Thread Streets Of Boston
What about Thread.setPriority(...) ? That seems to be working for me. When, using the above method, i set the priority of a background- thread too high it has an impact on the GUI (it gets sluggish). It must be doing something... On May 10, 9:20 pm, Krishnakumar Ramachandran wrote: > Hi has any

[android-developers] Re: where to find the image of microphone icon?

2010-05-10 Thread greg
Are you referring to the ic_btn_speak_now.png icon in /platforms/ android-2/data/res/drawable? On May 10, 6:14 pm, cindy wrote: > Hi all, > > I want to use the microphone icon used by android OS. Where could I > find it? > > Thanks! > > April > > -- > You received this message because you are sub

Re: [android-developers] How to set and get thread priority from Java and native layers

2010-05-10 Thread Krishnakumar Ramachandran
Hi has anyone got any idea on this? On Mon, May 10, 2010 at 12:56 PM, KK wrote: > I have a multithreaded streaming app which has mainly the following 5 > threads > > 1 Main App(UI) Thread > 1 controller thread (in native) > 1 audio decoder thread (in native) > 1 video decoder thread(in native) >

[android-developers] Re: How can I know if OpenGl has drawn something?

2010-05-10 Thread Alfonso
Robert, first of all thanks for your time and kindness. The problem for me is not drawing my scene. In fact, the scene is done. I'm going to try being more explicit: First of all, I set the projection matrix with: near_height = 1; zNear = 1; zFar = 100; window_height = height; window_wid

[android-developers] clock of emulator 1.6 runs 100% slower than real time clock!!!

2010-05-10 Thread HeHe
often the clock of emulator 1.6 runs significantly (100-150%) slower than real world clock. for example, after 10 minutes of a human life have elapsed, from logcat timestamp only 5 minutes have elapsed on my emulator 1.6, has anyone using emulator 1.6 experienced the same issue? if yes, how did y

Re: [android-developers] Android Pre Compile step just became very slow

2010-05-10 Thread James Moore
On Mon, May 10, 2010 at 3:17 PM, James Moore wrote: > On Mon, May 3, 2010 at 4:01 PM, Xavier Ducrohet wrote: >> If you're using Eclipse, go to the preferences and under Android > >> Build, set the output to verbose. > > Where should you see this verbose output?  I selected the option, but > it's

[android-developers] How to get selected items in a ListView (multi selection check boxes)? - URGENT PLZ

2010-05-10 Thread dillipk
Hello, How do I get the selected items in a ListView which contains a multi selelected check boxes.? The following code doesn't work correctly... getContacts() is being called in a Button click(). private String getContacts(){ SparseBooleanArray selectedContacts = listView.getCh

Re: [android-developers] Android Pre Compile step just became very slow

2010-05-10 Thread James Moore
On Mon, May 3, 2010 at 4:01 PM, Xavier Ducrohet wrote: > If you're using Eclipse, go to the preferences and under Android > > Build, set the output to verbose. Where should you see this verbose output? I selected the option, but it's not clear where I'm supposed to go to see the verbose output.

[android-developers] where to find the image of microphone icon?

2010-05-10 Thread cindy
Hi all, I want to use the microphone icon used by android OS. Where could I find it? Thanks! April -- 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 fr

[android-developers] Re: SIP Stack

2010-05-10 Thread HeHe
mike, is it possible that the situation where ISP changes ip of your phone differs from the situation where you manually change ip of your phone ipconfig/renew? that is, is it possible that a phone cannot detect change of ip until next time when it tries to send something out? by the way, what is

Re: [android-developers] Re: Twitter app's popup aligned with ListView item - how did they do it?

2010-05-10 Thread skink
Mark Murphy wrote: > westmeadboy wrote: > > Anyone any ideas? > > Ummm...figure out where the item is positioned on screen, then use some > margin tricks to position their popup to match, I suppose. > if you use PopupWindow you don't have to use margins at all - you can position your popup in an

Re: [android-developers] Re: PNG quality in WebView based app

2010-05-10 Thread mike
On 05/10/2010 01:52 PM, Yahel wrote: I ran into the same problem a few monthes back. I spent hours trying to figure out why a webview would degrade the quality of an image. Turns out it was not the webview, it was my provider : When browsing the web on gprs or edge my provider downgrades image

[android-developers] Re: PNG quality in WebView based app

2010-05-10 Thread Yahel
I ran into the same problem a few monthes back. I spent hours trying to figure out why a webview would degrade the quality of an image. Turns out it was not the webview, it was my provider : When browsing the web on gprs or edge my provider downgrades image quality on their server so that its a l

[android-developers] Re: I've found a way to stop piracy of my apps

2010-05-10 Thread strazzere
Without introducing any new content - it makes it a very desirable target for patching. A simple patch will make sure the date check doesn't matter, and if you aren't introducing any new functionality, then there isn't a real reason for the user to upgrade. IMHO your just asking people to get fed

[android-developers] Re: I've found a way to stop piracy of my apps

2010-05-10 Thread westmeadboy
That works in most cases but not in a significant number of other cases. Consider users who go on an extended holiday to a non-paid app country. Astro works partly because its free. But then there is also the situation where you go on holiday and are using your phone offline. Then all of a sudden

Re: [android-developers] Re: Twitter app's popup aligned with ListView item - how did they do it?

2010-05-10 Thread Mark Murphy
westmeadboy wrote: > Anyone any ideas? Ummm...figure out where the item is positioned on screen, then use some margin tricks to position their popup to match, I suppose. You can see a really crude equivalent of that here, just aiming for putting something on the upper or lower half of the screen:

[android-developers] Re: I've found a way to stop piracy of my apps

2010-05-10 Thread niko20
Actually I think another pretty good solution is to simply put a date lock on the app, sort of how Astro works. What you do is make the app expire at a certain date. Before that date you release the next version with another lock moving forward. Maybe try a 2 or 3 month lock. Then when it does it

[android-developers] Re: I've found a way to stop piracy of my apps

2010-05-10 Thread niko20
Well I will say one thing, if it was opened up, that would allow each dev to make small code changes, so it would never be cookie cutter then...however, I am not against that you are trying to make some income from it, I mean you still did have to do the work. -niko On May 10, 10:06 am, dadical

[android-developers] Re: Twitter app's popup aligned with ListView item - how did they do it?

2010-05-10 Thread westmeadboy
Anyone any ideas? On May 9, 4:33 pm, westmeadboy wrote: > In the official Twitter app, in the Tweets activity, if you click on > the small down arrow (right side of each tweet entry), a really nice > popup appears just above or below the entry. > > How did they do this (i.e. position the popup al

[android-developers] PNG quality in WebView based app

2010-05-10 Thread Jeff
I am using WebView to display html content in an app. One of the pages has a rather large PNG image. The image is large and detailed on purpose because the idea is to use it as a map and allow users to zoom in to see the detail. Unfortunately, when the image is displayed with WebView, the quality

[android-developers] Getting widget size

2010-05-10 Thread James
I'm writing a widget at the moment. It's supposed to fill one cell, so I've set the size to be 72dp by 72dp. The layout has a linear layout containing a 72x72dp ImageView. In onUpdate(), I call views.setImageViewBitmap with a 72px x 72px bitmap. This worked fine under Android 1.5 on my G1, but now

[android-developers] Re: How can I know if OpenGl has drawn something?

2010-05-10 Thread Robert Green
If you're doing this to set up and draw your scene: gl.glMatrixMode(GL10.GL_PROJECTION); gl.glLoadIdentity(); GLU.gluPerspective(gl, FOV, viewAspectRatio, zNear, zFar); // **get or recreate this matrix for the unproject projection gl.glMatrixMode(GL10.GL_MODELVIEW); gl.glLoadIdentity(); GLU.gluLoo

Re: [android-developers] Re: Scala, Android, Eclipse - not including Scala jar?

2010-05-10 Thread James Moore
On Thu, May 6, 2010 at 7:55 PM, Bob Kerns wrote: > The lesson there is that if you use Proguard, and something odd goes > wrong, always try disabling that first -- because the amount of time > you can potentially waste is huge! > > Proguard works pretty well, and is pretty useful. But this, togeth

[android-developers] Re: How can I fix this touch ev ent / draw loop “deadlock”?

2010-05-10 Thread niko20
Yes you should definitely put a small Yield or sleep in the drawing thread, this will allow the UI thread to process events. Also make sure to only synchronize exactly when you need to. For example, dont synchronize while checking which touch action it is, etc. Instead synchronize only right before

Re: [android-developers] Re: SIP Stack

2010-05-10 Thread mike
On 05/10/2010 11:24 AM, HeHe wrote: when i mentioned "...not be able to receive incoming calls..", i was not thinking about "just server->client streaming". Mike, you knew it :) what is your mobile service provider? the sentence "IP address changes are probably pretty rare" looks strange to a T-

[android-developers] Re: ProgressDialog Problem with Rotation

2010-05-10 Thread Aaron
The solution is very simple, for anyone who runs into this in the future... As Kumar stated when the phone is rotated the activity is destroyed and recreated - you don't have to play with Android for very long before you realize that. What I didn't know is you can override that behavior by adding

Re: [android-developers] Re: On activity (re)usage en creation

2010-05-10 Thread TreKing
On Mon, May 10, 2010 at 1:34 PM, EnnaN wrote: > Any thoughts on how "bad" the current behaviour is? Not sure what you mean - but if you haven't touched anything else, the current behavior is the default behavior, which should suffice for most apps. -

[android-developers] Re: On activity (re)usage en creation

2010-05-10 Thread EnnaN
> > In the meanwhile, is there a standard method to ensure some sort of > > singleton effect? > > Not sure what you mean by "singleton effect", I was referring to the singleton pattern (http://en.wikipedia.org/wiki/ Singleton_pattern), but as its not completely correct in this case i obfuscaded th

[android-developers] Re: Strange ListView divider behaviour

2010-05-10 Thread Ondra
Ok, I've probably solved the problem (but i still don't understand it). When I add into app's manifest file, all problems mentioned earlier and badly rendered pixels disappear (no matter which IDE i use). Ondra -- You received this message because you are subscribed to the Google Groups "Andro

Re: [android-developers] Re: On activity (re)usage en creation

2010-05-10 Thread TreKing
On Mon, May 10, 2010 at 1:18 PM, EnnaN wrote: > In the meanwhile, is there a standard method to ensure some sort of > singleton effect? > Not sure what you mean by "singleton effect", but you probably want to look at the launch mode flags when starting your activities. The singleTask flag, in pa

[android-developers] Re: On activity (re)usage en creation

2010-05-10 Thread EnnaN
Well that was easy: Entry 1->click->Comments 1->click->Entry 2. Using back works like you'd expect (that sounds good), so that would mean i'm starting a string of activities (could be bad). Anyone care to give advice about this? Is this a big memoryproblem, or could this just work? Nanne. On

[android-developers] Re: SIP Stack

2010-05-10 Thread HeHe
when i mentioned "...not be able to receive incoming calls..", i was not thinking about "just server->client streaming". Mike, you knew it :) what is your mobile service provider? the sentence "IP address changes are probably pretty rare" looks strange to a T-Moble user like me. at least i find my

[android-developers] Re: How can I know if OpenGl has drawn something?

2010-05-10 Thread Alfonso
I've got that collision detection system implemented, yet. And I'm agree to use glUnproject as the best achoice. My problem is that I remap the modelview matrix with the sensors and when I rotate the phone, change the coords of the screen returned by glUnproject. Even if I keep the object in the sa

[android-developers] Check The Pic and comment

2010-05-10 Thread pawan nimje
Hi All, Check the image attached and let me know if its possible ... 6 tabs ... 4 above and 2 below ... and if yes .. how?? PS : i have created 4 tabs [all above :) ] using extends TabActivity,tabhost etc . -- You received this message because you are subscribed to the Google Groups "Android

[android-developers] Re: On activity (re)usage en creation

2010-05-10 Thread EnnaN
> You can test this pretty easily by doing what you described and backing out. > If it's the former, you should have 2 back presses. If it's the latter, you > should have to back out as many times as activities you started. Yes? Good point I think! That would mean that the back-button is defined

Re: [android-developers] Go back to previous activity

2010-05-10 Thread pawan nimje
The resone why i want all this is ... what im wanting is since all those activities are already created ... on button click i jus want to switch [jump] to those activities ... instead of using the startActivity(intent) method ...anyways forget it and thnx for the help On Mon, May 10, 2010 at 10:4

[android-developers] Re: On using themes?!

2010-05-10 Thread Mariano Kamp
Hmmh, also no answer to this question on themes. Maybe the answer cannot be given with two lines? So let me explain what I would expect step by step and you stop me were I deviate from the Golden Path? I'll try yes/no questions. In the simplest terms I would expect that in every place I can specif

Re: [android-developers] Re: SIP Stack

2010-05-10 Thread mike
On 05/10/2010 10:24 AM, HeHe wrote: i was not thinking about media. i guess the reason why sipdroid+TCP+pbxes can lower battery use is to enlarge sip registration expiration, eg. to 5 minutes or longer. what if mobile service provider changes phone IP earlier than 5 min when the provider finds n

[android-developers] Re: SIP Stack

2010-05-10 Thread HeHe
i was not thinking about media. i guess the reason why sipdroid+TCP+pbxes can lower battery use is to enlarge sip registration expiration, eg. to 5 minutes or longer. what if mobile service provider changes phone IP earlier than 5 min when the provider finds no traffic to/from the phone? it will n

Re: [android-developers] Go back to previous activity

2010-05-10 Thread TreKing
On Mon, May 10, 2010 at 11:46 AM, pawan nimje wrote: > hey Treking ... is there any way to find out the contents of Activity Stack > .. There should be a most recently used list somewhere - dig around the documentation (ApplicationInfo, Packagemanager, etc would be likely culprits). i.e gettin

[android-developers] Re: How can I know if OpenGl has drawn something?

2010-05-10 Thread Robert Green
What are you trying to do? glReadPixels is a pipeline stall - it will slow everything down. If you want to check to see if an object has been touched, use a collision detection system, unproject the touch point into a ray and get the closest item that intersects with that ray. It's actually easi

[android-developers] Re: draw a 2d marker on a openGL scene

2010-05-10 Thread Robert Green
I couldn't find it either, hrmm Anyway it's like this: gl.glMatrixMode(GL10.GL_PROJECTION); gl.glPushMatrix(); gl.glLoadIdentity(); GLU.gluOrtho2D(gl, 0, viewportWidth, viewportHeight, 0); gl.glMatrixMode(GL10.GL_MODELVIEW); // draw your quad in 2d here - coordinate system is top left = 0,0 to b

[android-developers] Re: Need Assistance !!!

2010-05-10 Thread Maps.Huge.Info (Maps API Guru)
You might consider using a webview UI in an application such as this, it's easier for beginners to learn and has a lot of power behind it. -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to an

Re: [android-developers] Having a back button functioning like the emulators

2010-05-10 Thread pawan nimje
sorry and thank u ... On Mon, May 10, 2010 at 10:03 PM, TreKing wrote: > On Mon, May 10, 2010 at 11:09 AM, pawan nimje wrote: > >> wat code should i write to make my back button behave like the emulators >> ... > > > finish(). > > And please don't double post - it's really unnecessary. > > > > -

Re: [android-developers] Go back to previous activity

2010-05-10 Thread pawan nimje
yup ... finish() is working ... hey Treking ... is there any way to find out the contents of Activity Stack .. i.e getting the name and position of Activities ... and den bringing forward any of the activities .. plz help .. On Mon, May 10, 2010 at 9:59 PM, TreKing wrote: > On Mon, May 10, 20

Re: [android-developers] Go back to previous activity

2010-05-10 Thread pawan nimje
By Intent i = new Intent(Constants.CountryContext, selectcountry.class); > startActivity(i); > i meant Intent i = new Intent(getApplicationContext(), SomeClass.class); > startActivity(i); On Mon, May 10, 2010 at 9:59 PM, TreKing wrote: > On Mon, May 10, 2010 at 11:24 AM, pawan nimje wrote:

Re: [android-developers] On activity (re)usage en creation

2010-05-10 Thread TreKing
On Mon, May 10, 2010 at 11:35 AM, EnnaN wrote: > If I call the "entry" activity (with an intent) on a link to show > this entry, am I re-using the old activity, or am I creating an > endless string of entry, comment, entry, comment activities (pretty > cost- ineffective that would be). > You can

[android-developers] On activity (re)usage en creation

2010-05-10 Thread EnnaN
A question that might be a bit general/basic knowledge, but for me it has a quite direct background, so i'll form it as an example: I have an activity "entry" showing something equivalent of a blogpost, that might have comments. You can click somewhere to open a "comments" activity. But in this ac

Re: [android-developers] Having a back button functioning like the emulators

2010-05-10 Thread TreKing
On Mon, May 10, 2010 at 11:09 AM, pawan nimje wrote: > wat code should i write to make my back button behave like the emulators > ... finish(). And please don't double post - it's really unnecessary. -

Re: [android-developers] Re: SIP Stack

2010-05-10 Thread mike
On 05/10/2010 09:04 AM, HeHe wrote: i saw this in sipdroid project FAQ: "Sipdroid now uses TCP for the signaling connection and keeps the corresponding port open." does anyone know how peer servers of sipdroid handle scalability when there are a million of sipdroid clients connecting with th

Re: [android-developers] Go back to previous activity

2010-05-10 Thread TreKing
On Mon, May 10, 2010 at 11:24 AM, pawan nimje wrote: > I want to go back to previous activity > What code should i write for back button > How about finish() ? > plz dont suggest > > Intent i = new Intent(Constants.CountryContext, selectcountry.class); > startActivity(i); > I have no idea wha

[android-developers] Go back to previous activity

2010-05-10 Thread pawan nimje
I want to go back to previous activity What code should i write for back button plz dont suggest Intent i = new Intent(Constants.CountryContext, selectcountry.class); startActivity(i); This creates the whole activity again ... which i dont want .. i want somthing like emulators back button ..

[android-developers] Re: ProgressDialog Problem with Rotation

2010-05-10 Thread Aaron
Thanks Mike, that was very helpful! I'll See if I can use the info to get my example working correctly, and post it for the next person... On May 10, 9:05 am, Mike dg wrote: > Evan Charlton wrote a great article that might help you. > > http://evancharlton.com/thoughts/rotating-async-tasks/ > >

[android-developers] Having a back button functioning like the emulators

2010-05-10 Thread pawan nimje
Hi all I have 3 activities 1: Welcome screen 2:List of country 3:Details abt that country Now i want to from activity 3 to 2 Currently wat im doing is Intent i = new Intent(getApplicationContext(), selectcountry.class); startActivity(i); This way the onCreate methode of 2nd activity is ca

[android-developers] Re: SIP Stack

2010-05-10 Thread HeHe
i saw this in sipdroid project FAQ: "Sipdroid now uses TCP for the signaling connection and keeps the corresponding port open." does anyone know how peer servers of sipdroid handle scalability when there are a million of sipdroid clients connecting with the servers using TCP? as i observed, T-

[android-developers] Set an ImageView at a particular position inside GridView

2010-05-10 Thread tilo1583
I am using the GridView along with an ImageAdapter. The functionality I want is that I select a particular image and drop it on to the GridView. I want this image to snap to a cell closest to where it has been dropped. How do I tell the GridView (or the Adapter) to set this dropped Image in the ap

[android-developers] Namespaces and custom widgets

2010-05-10 Thread Edward Falk
As a continuation of the thread in http://groups.google.com/group/android-developers/browse_thread/thread/390e8188cedd66a6, I'm still trying to figure out how a custom widget can use getIdentifier() to read attributes. As an example, I have a widget class called CustomWidget. It has attributes "i

Re: [android-developers] WCF complex types with android

2010-05-10 Thread Lamia Hannoun
Thanks for ur quick answer but can u give me more information(tutorial) or some example code !!! Thx 2010/5/10 Jose Gomez > If you can return JSON then you should be ok > > THanks > Sincerely > Jose C Gomez > > http://www.josecgomez.com > > > On Mon, May 10, 2010 at 9:38 AM, Lamia Hannoun >

[android-developers] How can I know if OpenGl has drawn something?

2010-05-10 Thread Alfonso
glReadPixels is too slow, so I need another way. Without testing object by object, Is there any other way? Thanks you very much -- 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@googleg

[android-developers] Re: Strange ListView divider behaviour

2010-05-10 Thread Ondra
Next observation: When i build/run application from within Eclipse, everything behaves normal (that means all dividers are visible). However, when i create/build/run new project by means of "android create", "and debug" and "adb install" tools, the app is rendered badly (some of the dividers are in

[android-developers] Re: I've found a way to stop piracy of my apps

2010-05-10 Thread dadical
That argument assumes that I don't respond to those cracks with improvements to AAL that will make it more difficult! :) Also, each app will need to be cracked individually, and I'm trying to work out some ways to make that a job that isn't cookie-cutter. The point here is to get this past the pa

Re: [android-developers] Need Assistance !!!

2010-05-10 Thread Sattanaathan Ravi
Alright thanks for your Advice TreKing -- 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+unsubscr...@goo

[android-developers] Re: Lots of lost sales due to Credit Card authorization.

2010-05-10 Thread Paul
I think if this thread gets enough response and attention then someone from Google may notice. They've got to have people looking at these posts once in a while. Is there no official Bug list for Android Market? I did post a thread here : http://www.google.com/support/forum/p/Android+Market/threa

[android-developers] Re: Is Google working on the Bluetooth bug? Any estimated date of completion?

2010-05-10 Thread frankentux
The same problem seems to be detailed here: http://forum.samdroid.net/threads/598 Looks like SPP is completely broken on the i5700 - possibly because of the Broadcom BCM4325. On the positive side, that chip has a FM module :-) On May 3, 6:56 pm, frankentux wrote: > http://stackoverflow.com/quest

[android-developers] Re: Eclipse: running junit tests

2010-05-10 Thread Patrick
I checked it again, unfortunately this is not the problem. The package matches the package of the application: at.test.android.myapplication is the package, in which the source of the application is. On May 10, 12:12 am, "Fred Grott(Android Expert, http://mobilebytes.wordpress.com)" wrote: >

[android-developers] Communication between Activities in Tabs

2010-05-10 Thread Patrick
My application contains several Tabs. Each tab is it's own activity. They are created by using for example Intent intent = new Intent().setClass(this, SearchActivity.class); There I pass only the class of the activity. My question: how do I get the instance? (I want to invoke a method, which hides

[android-developers] Re: Problem in sending in SMS

2010-05-10 Thread Brion Emde
Another option is to use the built-in ACTION_SEND or its variants, so that you are using the facilities that are already available. This is and especially useful approach for a beginner. Look for ACTION_SEND in this document: http://developer.android.com/reference/android/content/Intent.html and

[android-developers] Re: ProgressDialog Problem with Rotation

2010-05-10 Thread Mike dg
Evan Charlton wrote a great article that might help you. http://evancharlton.com/thoughts/rotating-async-tasks/ -Mike dg On May 10, 12:37 am, Aaron wrote: > I have a managed ProgressDialog that show the status as tasks are > moving along.  The Activity.show is kicked off by an AsyncTask > progr

Re: [android-developers] Re: [Help] how to draw multiple lines in Edittext?

2010-05-10 Thread social hub
What exactly is your problem here . getting line count 18 when u filled textbox with 18 lines? On Sat, May 8, 2010 at 12:53 AM, Vincent Tsao wrote: > @Soical Hub: thanks for your help, your suggestion inspired me a lot > > i finally find this way to get padding: *getCompoundPaddingTop()*, and it

[android-developers] Java Help, Replace first line of text file!

2010-05-10 Thread Abhi
Hi, I am looking for a way to replace the first line of a file. Until now, I was using BufferedReader to read the contents of the file into and then going through each line and look for the one I want to replace. This caused some memory issues as a large file with large data would slow things down

[android-developers] Re: Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required!

2010-05-10 Thread Abhi
Al Could you give an example of how to use StringBuilder to replace what I am doing? Thanks, Abhi On May 6, 3:37 pm, Al wrote: > This isn't an error, it's just a message to inform you it is better to > specify the size of thebufferyou need in the constructor. > > Abhi wrote: > >   String line

Re: [android-developers] WCF complex types with android

2010-05-10 Thread Jose Gomez
If you can return JSON then you should be ok THanks Sincerely Jose C Gomez http://www.josecgomez.com On Mon, May 10, 2010 at 9:38 AM, Lamia Hannoun wrote: > Hi to all! > > I made the connection between my service WCF and my app android. But i'm > wondering if u have ideas about using complex

[android-developers] Wired crash with ActivityUnitTestCase and dimens.xml

2010-05-10 Thread T-Droid
Hi @all, I wrote a test case with ActivityUnitTestCase which was working fine. Now I added a dimensions file (dimens.xml) and using the values with a style.xml. Here some parts from the dimens.xml: 15dp Here the attrs.xml: And here the style.xml: [android-developers] MMS URI Structure
Inspired by a post by CJ a few months ago, and because I ran into the same problem, I did a little (OK, a LOT) of poring through endless screens of code, and finally made some headway on how MMS messages are stored. Although the documentation blatantly omits this (read: unsupported, may change in

[android-developers] WCF complex types with android

Hi to all! I made the connection between my service WCF and my app android. But i'm wondering if u have ideas about using complex types (classes created on the server side). should i implement the serialization process? or should i juts create the classes on my client side(android) Plz can u hel

Re: [android-developers] Re: ProgressDialog - how to remove the numbers

On Mon, May 10, 2010 at 4:05 AM, oriharel wrote: > I got an answer that there is no answer. Sure there is - find wherever the sample is placing those numbers and take that part out. - TreKing - Chic

Re: [android-developers] Media control style buttons

On Mon, May 10, 2010 at 12:38 AM, flumby wrote: > The user experience is very much like the play controls button on Media > controls. Any suggestion/sample code on how to implement it? > Isn't that part of the open source code? If so, seems like the best place to look. -

Re: [android-developers] Re: Intents problem

Esdras Beleza wrote: > 5) Here comes the problem: if I go to other application (browser, for > example) and go back to my application, the intent seems to be received > again, onResume() is called and the dialog A, B or C is shown. But they > must be shown *only* when the widget is clicked. > > Any

Re: [android-developers] Need Assistance !!!

On Sun, May 9, 2010 at 11:53 PM, Sattanaathan Ravi wrote: > Architecture and other guidances(how to get things done) What does "Architecture" mean? How to get WHAT things done? Everything? Do you want someone to come on here and post you a how-to-make-an-app guide from start to finish? Do you re

Re: [android-developers] Max number of bluetooth devices that can be paired?

Hi you can pair max 7 device for proper functionality. -- Regards Sandeep On Mon, May 10, 2010 at 3:10 PM, guru wrote: > Hi All > > is there any max limit that we can pair with bluetooth devices? How to > check this limit.? > > when i tried to pair with more than 15 devices, it becomes slow

Re: [android-developers] Common code reuse

As Mark said, resources are going to be an issue. For code though there's a simple way which would allow you to edit the shared code on the fly. Create a standard Android project and manually remove Android nature from its .project file (it you do this from inside Eclipse it'll all get automatical

  1   2   >