[android-developers] Re: Application still Running After Exit

2010-10-29 Thread mort
On 29 Okt., 13:14, Eric F wrote: > Then I suspect these may be more of the points of disagreement: > >  D) It's up to the developer of an application to offer the user > controls to tweak performance sapping or battery draining. >  E) A user uninstalling an app that performs poorly and offers no >

Re: [android-developers] Share Data with ACTION_SEND

2010-10-29 Thread Mark Murphy
On Sat, Oct 30, 2010 at 2:03 AM, Prajakta Shitole wrote: > Please can anyone let me know how to disable Facebook from being listed in > the list of to "Share" items. Uninstall the application. > As Facebook allows only Urls to be posted I > have used the Facebook SDK when I need to share a link,

Re: [android-developers] Setting File Permissions

2010-10-29 Thread Mark Murphy
On Fri, Oct 29, 2010 at 6:03 PM, John Gaby wrote: > If I have a File object which points to a non-existent directory > (which is within my apps 'app_data' space), I can call file.mkdir() or > file.mkdirs() to create the directories.  However, if I do this, the > directories seem to be created with

[android-developers] Share Data with ACTION_SEND

2010-10-29 Thread Prajakta Shitole
Hi, Please can anyone let me know how to disable Facebook from being listed in the list of to "Share" items. As Facebook allows only Urls to be posted I have used the Facebook SDK when I need to share a link, picture and message. So I am currently displaying an Alert Dialog with Facebook listed an

[android-developers] Re: OpenGL ES 2D and 3D mixed graphics?

2010-10-29 Thread Adam Hammer
I just draw all my 3d stuff using a projection matrix, and then I just change the projection matrix and clear the depth buffer and draw all the 2d stuff. As for coordinates, in opengl you set them whatever you want to be. I use floats, you can use ints, I use -1 to 1, you can use 1000 to 10,000 if

[android-developers] Re: best way to play 10 sounds quickly

2010-10-29 Thread ArcDroid
That is what I thought, but wanted to confirm. Thanks Jake http://www.arcdroid.com On Oct 25, 10:32 pm, sylar mr wrote: > use a soundpoo is the fastest if your sound resouces samll than 1mb > 2010/10/21 ArcDroid > > > > > > > > > Hello, > > I am trying to play the same 10 sounds very quickly and

Re: [android-developers] Re: bring task to front

2010-10-29 Thread TreKing
On Fri, Oct 29, 2010 at 6:04 PM, sleith wrote: > but if i don't use it, it will be an error. > Oh, really? Have you tried some of the other flags? Single Top or some such? Otherwise I have no idea. > btw, do you know how the mainscreen launch the app? launcher app code :D > I do not. You cou

Re: [android-developers] Java and Android phones?

2010-10-29 Thread Miguel Morales
Read this: http://developer.android.com/guide/basics/what-is-android.html 2010/10/29 kearnel_android : > As far as I'm concerned, Android uses another Java Runtime Environment > called Davilk, which is NOT compatible with common Java applications. > > 2010-10-30 >

[android-developers] Re: Problem with ListView on a 480x854 device

2010-10-29 Thread Lance Nanek
http://developer.android.com/guide/practices/screens_support.html#attrs On Oct 29, 10:17 pm, John Gaby wrote: > I have a ListView where the rows are not scaled properly under certain > circumstances.  If I build my project using the following manifest, > then the ListView looks like:http://gabyso

回复: [android-developers] Java and Android phone s?

2010-10-29 Thread kearnel_android
As far as I'm concerned, Android uses another Java Runtime Environment called Davilk, which is NOT compatible with common Java applications. 2010-10-30 kearnel_android 发件人: kypriakos 发送时间: 2010-10-30 11:07 主 题: [android-developers] Java and Android phones? 收件人: Android Developers Hi a

[android-developers] Java and Android phones?

2010-10-29 Thread kypriakos
Hi all, some Android phones do not have Java installed on them - that's what their specs list. What does that mean? Isn't every app written for an Android phone developed for a java runtime? What do these phone lack? Thanks -- You received this message because you are subscribed to the Google

回复: [android-developers] Problem with ListView on a 480x854 device

2010-10-29 Thread kearnel_android
Android support multi-screen-solution since SDK 6. Thus, if you create a project using MinSdkVersion signed 4, the application will only support 480*320 by default. 2010-10-30 kearnel_android 发件人: John Gaby 发送时间: 2010-10-30 10:17 主 题: [android-developers] Problem with ListView on a 480x85

[android-developers] Problem with ListView on a 480x854 device

2010-10-29 Thread John Gaby
I have a ListView where the rows are not scaled properly under certain circumstances. If I build my project using the following manifest, then the ListView looks like: http://gabysoft.com/images/androidgood.png. However, if I change the minSdkVersion to 4 (and that is the ONLY change), then the Li

[android-developers] How to add other views to TabActivity class

2010-10-29 Thread subrat kumar panda
Hi all, In my app i am facing a problem. i have created a TabBar at the bottom , for that in my java class i have extended the TabActivity. so the TabBar is in the bottom of the page , so how i add some other views to TabActivity, so that these views should come above the TabBar in the same Activit

Re: [android-developers] How to get icons of activities?

2010-10-29 Thread Dianne Hackborn
Use loadIcon() on ActivityInfo (which actually comes from its base class PackageItemInfo). So ResolveInfo.activity.loadIcon(). On Fri, Oct 29, 2010 at 3:23 PM, TreKing wrote: > On Wed, Oct 27, 2010 at 8:45 PM, CrazyH wrote: > >> >> What's the proper way to do this? > > > Maybe this: > http://d

Re: [android-developers] Activity versus Service threads

2010-10-29 Thread Dianne Hackborn
On Fri, Oct 29, 2010 at 2:07 PM, jotobjects wrote: > So that makes me wonder if there are reasons why the Activity cannot > just call methods on the Service directly and vice versa, once you get > references to the two objects. What is the role of IBinder that is > better than plain object refer

Re: [android-developers] Re: Screen Brightness on 2.2

2010-10-29 Thread Dianne Hackborn
Works fine for me in PointerLocation. *shrug* Sorry, I don't know off-hand what is going on for you. On Fri, Oct 29, 2010 at 4:08 PM, burton miller wrote: > Come on Diane, Mark, Reto - help a fellow out with your words of > wisdom;) > > On Oct 27, 4:55 pm, burton miller wrote: > > Anybody have

Re: [android-developers] Screen width minus launcher width (landscape mode)

2010-10-29 Thread Dianne Hackborn
You need to participate in view layout -- have a view in the view hierarchy (could just be a single view put in with setContentView()) that will be sized correctly. You find out about the size in View.onSizeChanged(). On Fri, Oct 29, 2010 at 4:20 PM, Eric wrote: > How do I get the correct width

[android-developers] XMPP on Android, an android service approach

2010-10-29 Thread rtreffer
Hi, I've spend my spare time for the last few months prototyping and implementing an Android XMPP service. Here is a short demo video of what's working:http://measite.de/ xmppservice.avi (music is "sad robot" by pornophonique [1]). The basic concept is a bit different from classic xmpp apps: Ever

[android-developers] Re: color banding. can't get over it :(

2010-10-29 Thread Lance Nanek
I saw an interesting article on avoiding this the other day: http://android.nakatome.net/2010/04/bitmap-basics.html On Oct 29, 7:01 pm, Hatch wrote: > Seems my original post ("ugly pngs...") somehow disappeared :( > nvm. > > I have a problem with a png resource that has gradient fade-out alpha. >

[android-developers] Re: Porting Android to Nokia 5800

2010-10-29 Thread paulb
The thread at http://developer.symbian.org/forum/showthread.php?t=5648 seems to indicate that it's not even possible to boot other Nokia OS's on the 5800, much less Android. On Oct 22, 12:44 am, dino omanovic wrote: > I'm interested in modding software and I would like to port Android to > my Nok

[android-developers] Re: Segmented video streaming on Android

2010-10-29 Thread Kristian
Yes, I agree. Perhaps it is better to see what Gingerbread has to offer before trying to create some platform-dependent native-code solution. Hopefully, the fact that iOS support Live Streaming will server as an extra motivation to add it to Android as well. -Kristian On Oct 29, 8:47 pm, Dana L

[android-developers] Re: color banding. can't get over it :(

2010-10-29 Thread Matt Kanninen
Last time we had this problem the art guy used photoshop to pre dither the art asset by adding noise. It worked, but it made it look a little grainy. On Oct 29, 4:01 pm, Hatch wrote: > Seems my original post ("ugly pngs...") somehow disappeared :( > nvm. > > I have a problem with a png resource

[android-developers] Re: color banding. can't get over it :(

2010-10-29 Thread Adam Hammer
And no, google groups sucks, There is a post listing, but there is no guarantee your posts will show up there. Just click on "Profile" and it'll show you recent activity, if it feels like it. On Oct 29, 4:01 pm, Hatch wrote: > Seems my original post ("ugly pngs...") somehow disappeared :( > nvm.

[android-developers] Re: color banding. can't get over it :(

2010-10-29 Thread Adam Hammer
When you use BitmapFactory to decode your pngs you are supposed to supply options. One of those options is a Bitmap.Config value, you probably are using a low bit input, you want to use Bitmap.Config.ARGB_ to ensure you get a full spectrum of color. Here is a snippet

[android-developers] Screen width minus launcher width (landscape mode)

2010-10-29 Thread Eric
How do I get the correct width in landscape mode? I need the size of the width not including the launcher bar. The following gives me the full screen width, but includes the right most launcher (app drawer, etc), which I dont want. int width = winMgr.getDefaultDisplay().getWidth(); Thanks Eric

[android-developers] Re: Screen Brightness on 2.2

2010-10-29 Thread burton miller
Come on Diane, Mark, Reto - help a fellow out with your words of wisdom;) On Oct 27, 4:55 pm, burton miller wrote: > Anybody have any idea why this is not working under 2.2?  (nexus one) > > WindowManager.LayoutParams lp = getWindow().getAttributes(); > lp.screenBrightness = 1.0f; > getWindow().s

[android-developers] Re: Screen Brightness on 2.2

2010-10-29 Thread burton miller
Come on Diane, Mark, Reto - help a fellow out with your words of wisdom;) On Oct 27, 4:55 pm, burton miller wrote: > Anybody have any idea why this is not working under 2.2?  (nexus one) > > WindowManager.LayoutParams lp = getWindow().getAttributes(); > lp.screenBrightness = 1.0f; > getWindow().s

[android-developers] Re: bring task to front

2010-10-29 Thread sleith
Hi, but if i don't use it, it will be an error. btw, do you know how the mainscreen launch the app? launcher app code :D Thanks On Oct 29, 8:29 pm, TreKing wrote: > On Fri, Oct 29, 2010 at 3:19 AM, sleith wrote: > > Intent.FLAG_ACTIVITY_NEW_TASK > > This, as it states, will create a new task. I

[android-developers] color banding. can't get over it :(

2010-10-29 Thread Hatch
Seems my original post ("ugly pngs...") somehow disappeared :( nvm. I have a problem with a png resource that has gradient fade-out alpha. The png looks great in the emulator, but displays an artefact known as "color banding" (http://en.wikipedia.org/wiki/Colour_banding) Has anyone surpassed thi

[android-developers] Google Maps API hidden maps and opengl

2010-10-29 Thread Adam Hammer
I'm trying to create a MapView in a service (live wallpaper), but have it hidden so that I can render it to a Bitmap, and then map it to a texture to render in opengl. I have a Canvas and a Bitmap, and I intended to call myMap.draw(myCanvas) in order to get it into the correct bitmap so that I coul

Re: [android-developers] How to get icons of activities?

2010-10-29 Thread TreKing
On Wed, Oct 27, 2010 at 8:45 PM, CrazyH wrote: > > What's the proper way to do this? Maybe this: http://developer.android.com/reference/android/content/pm/PackageManager.html#getApplicationIcon%28java.lang.String%29 No idea really, but I'm sure one of those package-related functions does somet

Re: [android-developers] Phone Call Simulator App

2010-10-29 Thread TreKing
On Thu, Oct 28, 2010 at 2:56 AM, Daniel Q wrote: > the question is how to generate a fake incoming call screen, complete with > the slide to answer call option. My initial approach, the > AlarmManager should launch a PendingIntent. However, I'm not sure where to > go from here, in particular to g

Re: [android-developers] Drawing circle in MapView

2010-10-29 Thread TreKing
On Fri, Oct 29, 2010 at 4:00 PM, Hendrik Greving wrote: > Shouldn't it work somehow since I create a drawable and pass it to the > OverlayItem? Uh ... no ... if it did, you wouldn't have the problem, now would you? :-P. I repeat: you're creating your own empty Canvas the system knows nothing ab

[android-developers] Setting File Permissions

2010-10-29 Thread John Gaby
If I have a File object which points to a non-existent directory (which is within my apps 'app_data' space), I can call file.mkdir() or file.mkdirs() to create the directories. However, if I do this, the directories seem to be created with permissions set for access only by the owner (i.e. drwx---

[android-developers] Re: Custom GridView with ArrayAdapter out of sync with backing data

2010-10-29 Thread Streets Of Boston
You're welcome. :-) Have a great weekend. On Oct 29, 3:50 pm, stanchat wrote: > Awesome!  This worked like a charm. > > On Oct 28, 2:54 pm, Streets Of Boston wrote: > > > > > When you create a brand-new convertView (v) in your getView(...) > > method (within the if (v==nul) {} block), call t

[android-developers] Activity versus Service threads

2010-10-29 Thread jotobjects
After starting a Service (with startService method) the Activity and the Service are running in the same thread according to Thread.currentThread(). I suppose if I start another Activity it will also be running in that same thread. So that makes me wonder if there are reasons why the Activity can

Re: [android-developers] Drawing circle in MapView

2010-10-29 Thread Hendrik Greving
Shouldn't it work somehow since I create a drawable and pass it to the OverlayItem? latitude, longitude is known here List mapOverlays = mapView.getOverlays(); ColorDrawable myCircle = new ColorDrawable(); mCirc = new Canvas(); mPaint = new Paint(); mPaint.setStyle(Paint.Style.FILL); mPaint.set

Re: [android-developers] Please Help Me Out .... SMS + Google map

2010-10-29 Thread TreKing
Your post title is "please help me out" but nowhere have you stated what you actually need help with. We just have a vague idea of what you're trying to accomplish. - TreKing

[android-developers] Re: Angry DROID2 Owner

2010-10-29 Thread Lance Nanek
Isn't the Droid 2 that buggy phone where all of them have the same ANDROID_ID? It wouldn't surprise me if that breaks a lot things, especially login functionality. On Oct 29, 12:38 am, Stephen Lebed wrote: > How is you not being able to log into a third party app developers > games motorola or go

Re: [android-developers] remote file storing application

2010-10-29 Thread TreKing
On Tue, Oct 26, 2010 at 10:46 PM, niyathi wrote: > can u please tell me which all softwares i would need. Eclipse. - TreKing - Chicago transit tr

Re: [android-developers] Password

2010-10-29 Thread TreKing
On Wed, Oct 27, 2010 at 3:28 AM, brindha sweety wrote: > When i click the app in emulator > What app? > if password is correct the app will opened and launched. > What app? > my question is how do i click the app? > What app? > how prompt will display? > What prompt? ---

Re: [android-developers] messages not showing up?

2010-10-29 Thread TreKing
On Wed, Oct 27, 2010 at 11:34 AM, Jason Graham wrote: > I have tried to post a message twice over 2 days and they never show up on > the group, what gives? Hard to say with Google Groups - sometimes that just happens. On the bright side, this one went through, so maybe try again? -

Re: [android-developers] Dynamic view high

2010-10-29 Thread TreKing
On Wed, Oct 27, 2010 at 3:28 AM, patrik wrote: > Is there any way to implement it? > Probably. > I tried some ways but either it doesn't work or the app crashed. > What did you try? What errors did you get? -

[android-developers] Re: How to prevent saving browser pages in activity stack history

2010-10-29 Thread Lance Nanek
I just use a WebView to do the Twitter authorization in the games I programmed. So I can finish the activity running it without any problem anyway. I suppose with your Browser method, once you get to Activity#2, you could finish and start another Acitivty using FLAG_ACTIVITY_CLEAR_TOP or something

[android-developers] Re: Custom GridView with ArrayAdapter out of sync with backing data

2010-10-29 Thread stanchat
Awesome! This worked like a charm. On Oct 28, 2:54 pm, Streets Of Boston wrote: > When you create a brand-new convertView (v) in your getView(...) > method (within the if (v==nul) {} block), call the > setOnCheckChangeListener on the SelectActor checkbox in 'v'. > > Every time when getView(.

[android-developers] Re: reducing android.permission.*

2010-10-29 Thread sdphil
I mean remove permissions I don't need (any longer). On Oct 29, 12:39 pm, Kumar Bibek wrote: > Reduce the number of permissions? What exactly do you mean by that? > > > > On Sat, Oct 30, 2010 at 1:08 AM, sdphil wrote: > > In order to reduce the number of permission my application requests, > > i

Re: [android-developers] reducing android.permission.*

2010-10-29 Thread Greg Donald
On Fri, Oct 29, 2010 at 2:38 PM, sdphil wrote: > In order to reduce the number of permission my application requests, > it would be handy to have a list of calls that are require a > permission. > > Does such a list exist anywhere?  Doing a search in the android > reference doesn't seem to come up

Re: [android-developers] reducing android.permission.*

2010-10-29 Thread Kumar Bibek
Reduce the number of permissions? What exactly do you mean by that? On Sat, Oct 30, 2010 at 1:08 AM, sdphil wrote: > In order to reduce the number of permission my application requests, > it would be handy to have a list of calls that are require a > permission. > > Does such a list exist anywhe

[android-developers] reducing android.permission.*

2010-10-29 Thread sdphil
In order to reduce the number of permission my application requests, it would be handy to have a list of calls that are require a permission. Does such a list exist anywhere? Doing a search in the android reference doesn't seem to come up with anything... ideas? tia. -- You received this mess

Re: [android-developers] Issues with invoking mailto: through javascript

2010-10-29 Thread TreKing
On Tue, Oct 26, 2010 at 9:27 AM, Komal wrote: > It throws errors.. how can I get this working ? Explaining what errors it's throwing would be a good first step. - TreKing

Re: [android-developers] how do code in a textbox so it will translate words without changing the source code

2010-10-29 Thread TreKing
On Tue, Oct 26, 2010 at 3:17 PM, sam101 wrote: > i am working on a app for the androiod using eclipse and i was > wondering how code in a textbox so when i type in a word it will say > that word through a text to speech. i dont want to have to go in the > program and change the source code everyt

[android-developers] Re: Segmented video streaming on Android

2010-10-29 Thread Dana L
I couldn't find any good documentation on StageFright, and I didn't get much by looking through the code. Supposedly StageFright is pretty buggy, so it makes sense to use OpenCore for the time being (maybe Gingerbread will address some of the problems). I'm sort of surprised that Android doesn't s

Re: [android-developers] small rectangle over an image

2010-10-29 Thread TreKing
On Tue, Oct 26, 2010 at 2:29 PM, vishal wrote: > I want to create a form/screen having an image at background i wish to > draw a small rectangle on this screen and i also want that user should > be able to move rectangle with touch, please guide Please show what you have done so far, what you h

[android-developers] Listing fat-finger-tapped overlays from a MapActivity?

2010-10-29 Thread Mike Reed
In a map activity, when the user taps more than one item, I need to produce a list of them, similar to how GoogleEarth works on Android. If I add to a list in the ItemizedOverlay.onTap for each item clicked (returning false to not handle), the list owner has no way to know when the list is complet

[android-developers] Re: How to debug an application that hangs after awhile

2010-10-29 Thread davemac
Try using DDMS and watch your application's threads and memory usage over time. Perhaps you've got a memory leak somewhere? You can also use 'telnet localhost ' command to connect up to the emulator and simulate events such as low memory. Perhaps your app is eventually restarting and running into s

Re: [android-developers] Shared preferences in a library

2010-10-29 Thread TreKing
On Tue, Oct 26, 2010 at 8:59 AM, BlackNeko wrote: > Now, I want to use the shared preferences to get some settings and use > them for doing calculations in my lib, and I've been trying but can't > get a valid context to use in getDefaultSharedPreferences(). Any ideas? > public Library(*Context

[android-developers] Re: Different hint strings for searchable activities?

2010-10-29 Thread Mark Wyszomierski
Nevermind, the different xml files are ok. My second xml file had a raw string in it which does not work (everything must use string references to strings.xml). On Oct 29, 1:56 pm, Mark Wyszomierski wrote: > Hi, > > I am supporting search in my app, I'd like to display a unique hint in > the sear

[android-developers] NMEA buffer overflow

2010-10-29 Thread brain storm
Hi, I'm trying to set up an application I've written to periodically monitor the gps/network provider. Everything seems to work, apart an error abour NMEA buffer I receive when the background service works and not the main activity (i.e. when the telephone is doing something else). How can I flush

[android-developers] Re: Create Folder

2010-10-29 Thread Kumar Bibek
You need to have the permission. WRITE_EXTERNAL_STORAGE And the code is similar to Java. You can read up or search on how to do that in Java, and the same code should work as well on Android. String tempFilePath = Environment.getExternalStorageDirectory().getAbsolutePath()

Re: [android-developers] Drawing circle in MapView

2010-10-29 Thread TreKing
On Fri, Oct 29, 2010 at 1:56 AM, Hendrik Greving wrote: > The circle below doesn't show up, does anybody know why? Probably because you're creating your own Canvas the system knows nothing about. If you want to do custom drawing, override the onDraw or draw() methods in the Overlay class (I forg

Re: [android-developers] Create Folder

2010-10-29 Thread TreKing
On Fri, Oct 29, 2010 at 8:53 AM, brindha sweety wrote: > how to create a folder in android emulator programmatically? OK. What does "create a folder in android emulator" mean? - TreKing

[android-developers] Different hint strings for searchable activities?

2010-10-29 Thread Mark Wyszomierski
Hi, I am supporting search in my app, I'd like to display a unique hint in the search box depending on what activity is being viewed. To that end, I have a two different searchable.xml files in my xml folder: searchable.xml searchable_activity_foo.xml When I reference searchable.xml, everyth

Re: [android-developers] How i can control the Screen On/Off & Lock/Unlock in Donut( SDK 1.6)

2010-10-29 Thread Jason Van Anden
I am facing the same issue. Did you or does anyone else know the answer? J On Sun, Jan 3, 2010 at 9:43 PM, krekar wrote: > hi, all(& happy new year~! :D) > > I making an Alarm App. > > In my Alarm App, if user set the alarm, the alarm Dialog will be shown > at the set alarm time. > > but if de

[android-developers] Re: ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE returning NULL?

2010-10-29 Thread Ron Schnell
I did think of that, because earlier in the program I have a List View, and the heading is clickable for some reason. But on all of the phones I tried, I don't see a heading in the phone-number-only activity... On Oct 29, 9:35 am, Dmitri Plotnikov wrote: > I cannot remember exactly, but at some

[android-developers] Re: charging taxes

2010-10-29 Thread Pent
> I've got an an app out and I'm starting to get some (very minute) > revenue, and it just occurred to me I need to think about taxes. I > live in the UK and I am selling my apps through the google android > market exclusively. Do I need to set up the marketplace to charge > sales tax? If so, which

[android-developers] Re: Application still Running After Exit

2010-10-29 Thread Eric F
Ultimately, I think it boils down to a few things in a nutshell (and my guess is that we agree here): A) The user should have a good understanding of which applications are hindering performance (running smoothness. "Why is my home screen so jerky?") B) The user should have a good understanding

[android-developers] Re: Java101 strings and ints

2010-10-29 Thread acr
i got it, thanks, I think this may be what i'm looking for On Oct 29, 12:45 pm, Sebastián Treu wrote: > On Fri, Oct 29, 2010 at 1:44 PM, Sebastián Treu > > wrote: > > How about a boolean matrix? > > Sry, I meant int matrix (i came from C). > > -- > If you want freedom, compile the source. > > Se

Re: [android-developers] Re: Java101 strings and ints

2010-10-29 Thread Sebastián Treu
On Fri, Oct 29, 2010 at 1:44 PM, Sebastián Treu wrote: > How about a boolean matrix? Sry, I meant int matrix (i came from C). -- If you want freedom, compile the source. Sebastián Treu http://labombiya.com.ar -- You received this message because you are subscribed to the Google Groups "And

[android-developers] charging taxes

2010-10-29 Thread bagelboy
Hello fellow devs, I've got an an app out and I'm starting to get some (very minute) revenue, and it just occurred to me I need to think about taxes. I live in the UK and I am selling my apps through the google android market exclusively. Do I need to set up the marketplace to charge sales tax? If

Re: [android-developers] Re: Java101 strings and ints

2010-10-29 Thread Sebastián Treu
How about a boolean matrix? On Fri, Oct 29, 2010 at 1:39 PM, acr wrote: > thanks, I do understand, but I love to hate the pain.. Im rocking and > rolling here, but there are some things I run into that I know more > experience will fix.. but that's how I learn, I just hit a bump. > > On Oct 29, 1

[android-developers] Re: Java101 strings and ints

2010-10-29 Thread acr
thanks, I do understand, but I love to hate the pain.. Im rocking and rolling here, but there are some things I run into that I know more experience will fix.. but that's how I learn, I just hit a bump. On Oct 29, 12:20 pm, DanH wrote: > It should be pointed out that this is a basic Java question

Re: [android-developers] Re: How to develop a android app store

2010-10-29 Thread Nitin Mahajan
Hello, 2010/10/26 Antonio Vázquez Blanco > Apktor has a solution for you... Google for it. You only have to set up a > server and install apktor in your devices. > Thanks for your inputs, I discovered "Aptoide" just two days back, but yet to try it. regards Nitin > 2010/10/26 Nitin Mahajan

Re: [android-developers] Re: ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE returning NULL?

2010-10-29 Thread Dmitri Plotnikov
I cannot remember exactly, but at some point we had a bug in picker where using the trackball or trackpad you could focus the header view (where it says "Displaying 5 contacts"). Then pushing on the trackball would trigger an empty "selection". I am not saying that this is the cause of the crash i

[android-developers] Re: Java101 strings and ints

2010-10-29 Thread acr
Thanks for the reply, I am trying to avoid writing the following over and over when the only thing that is going to change is the grap.getCol==1 and the 1 in the name of the int g1m0 I am looping through a list of graphics that are coming from multiple graphic arrays(7 total each representing its

[android-developers] Re: How to debug an application that hangs after awhile

2010-10-29 Thread Bret Foreman
Have you looked at the logcat output? -- 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...@goog

[android-developers] Re: Java101 strings and ints

2010-10-29 Thread DanH
It should be pointed out that this is a basic Java question, not an Android question. And more to the point it's a basic programming question. You'd be far better off learning more about programming on a desktop system before digging into the ugliness that is Android (or any other phone platform)

[android-developers] Re: Out of memory in test application.

2010-10-29 Thread nikki
On Oct 28, 1:57 pm, Kumar Bibek wrote: > Try Traceview to see your memory allocations. I am sure it will help > you. > > On Oct 28, 12:32 pm,nikki wrote: > > > Hi Group, > > > I am facing out of memory issue in my test application. > > > I have written 102 test methods(distributed in 7 test clas

[android-developers] Re: Out of memory in test application.

2010-10-29 Thread nikki
Hi Bibek, thanks for the post. But yet I am not able to find a way out. One pattern I have observed, I don't know I am correct or not that "Number Of test class Objects created is equal to the number of test method present". And the object creation takes place before the execution of test script

[android-developers] How to prevent saving browser pages in activity stack history

2010-10-29 Thread Chi Cheng
1. User click one button on Activity#1 to start Activity#2. 2. One button on Activity#2 start system default browser(Intent.ACTION_VIEW) to get Twitter authorized. 3. After user allow, Twitter redirect user to Activity#2(Custom intent-filter+data) and it save the tokens. Now, if I press b

Re: [android-developers] Java101 strings and ints

2010-10-29 Thread TreKing
On Fri, Oct 29, 2010 at 10:55 AM, acr wrote: > so through each iteration g1m0 would become g2mo You can't do that. What are you trying to do? - TreKing

Re: [android-developers] Java101 strings and ints

2010-10-29 Thread Frank Weiss
First thing that comes to mind: int gm0[8]; int gm1[8]; ... gm0[i]++; ... gm1[i]++; There is a minor issue because Java uses zero-based array indexing, hence the int[8] so the rest of your code doesn't need refactoring. -- You received this message because you are subscribed to the Google Group

Re: [android-developers] Is it possible to run multiple Broadcast receivers for the same Intent in the same application?

2010-10-29 Thread TreKing
On Mon, Oct 25, 2010 at 6:12 PM, Some Coder wrote: > Is it possible to register multiple BroadcastReceivers for the same Intent > in the same application and have them all run? > Haven't played much with broadcast and receivers but I can't imagine why not. How are you sending the broadcast and a

Re: [android-developers] Duplicate strings.xml

2010-10-29 Thread TreKing
On Sat, Oct 23, 2010 at 12:29 AM, Mark wrote: > is the data in the library strings.xml added to the including project's > strings.xml at build time? > I don't know, but if you already have a library project with a strings.xml file, this wouldn't be too hard to find out for yourself. ---

Re: [android-developers] setRequestedOrientation

2010-10-29 Thread TreKing
What are you trying to achieve? - TreKing - Chicago transit tracking app for Android-powered devices -- You received this message because you are s

Re: [android-developers] startActivityForResult for Contact picker under tab

2010-10-29 Thread TreKing
On Mon, Oct 25, 2010 at 10:33 PM, poj wrote: > Is it possible to start contact intent under tab activity? > No. - TreKing - Chicago transit track

[android-developers] Java101 strings and ints

2010-10-29 Thread acr
Hi all, Im new to android and java but moving along at full speed. My lack of experience is making some elementary tasks too repetitive. For example I want to be able to loop through the following snipit of code.. the problem is I want "i" replace the number "1" in g1m0+=1; so through each iterat

Re: [android-developers] uses-feature android.hardware.wifi and android:required="false"

2010-10-29 Thread TreKing
2010/10/25 Antonio Vázquez Blanco > How can I fix it? Which API version are you building against? - TreKing - Chicago transit tracking app for An

Re: [android-developers] web service access from net

2010-10-29 Thread TreKing
On Fri, Oct 22, 2010 at 11:39 PM, nena joy wrote: > but I want to create this application with data from a web service in the > net. You need to expand on this - your question is so vague you're never going to get any help like this.

[android-developers] Re: android + sqllite : problem with accessing database

2010-10-29 Thread DanH
I think the usual way is to put the SQLite DB file in "raw", on the phone create an empty DB and close it, then copy the "raw" copy over this created version. I've never done it myself, though. On Oct 29, 9:36 am, Mad Troll wrote: > so how i can do it? > i remember in one of examples i saw file

[android-developers] Re: ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE returning NULL?

2010-10-29 Thread Ron Schnell
Okay, didn't know that. But it doesn't explain the crash dump seen from the Market. My code: if (resultCode == Activity.RESULT_OK) { Uri contactData = data.getData(); Cursor c = managedQuery(contactData, null, null, null, null); The relevant part

[android-developers] Re: Business multi-tier application with android client

2010-10-29 Thread mastermind
Thanks, very nice solution. On 29 окт, 20:19, "Fred Grott(Android Expert, http://mobilebytes.wordpress.com)" wrote: > Have you tried restlets? > > Very easy to do..better than soap > > On Oct 28, 3:34 pm, mastermind wrote: > > > I'm developing client-server application with android client and no

Re: [android-developers] How to debug an application that hangs after awhile

2010-10-29 Thread TreKing
On Fri, Oct 22, 2010 at 3:45 PM, halfstop wrote: > This is an awful question to ask, it's so broad, but how should I go about > troubleshooting this problem? > Lots of logging to see the last output when it hangs and use your debugger to pause the app when it hangs to see where the main thread i

Re: [android-developers] need help

2010-10-29 Thread TreKing
On Fri, Oct 22, 2010 at 9:22 AM, hemant jaiswal wrote: > .Is there any way to display only two importtant part of webpage. > Parse out what you need and show only that. - TreKing

[android-developers] Re: android + sqllite : problem with accessing database

2010-10-29 Thread Mad Troll
so how i can do it? i remember in one of examples i saw file with line structure: data 1 | data2 | data 3 and application was created db from this file on phone so you suggest i should convert my db into text file, and try open text file im my app to placed content of this file into db created by

[android-developers] Services + Network

2010-10-29 Thread Itamar
Hey guys, I need to create an Android service that support scheduled background syncing based on network availability. Just wondered if there is a good sample\best practice for such a task. Regards, Itamar -- You received this message because you are subscribed to the Google Groups "Android D

Re: [android-developers] ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE returning NULL?

2010-10-29 Thread Dmitri Plotnikov
Hitting the back button does call onActivityResult passing RESULT_CANCEL in the "result" arg. On Oct 28, 2010 7:06 PM, "Ron Schnell" wrote: > I'm tracking down a crash dump for one of my applications. > > I am using ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE as an > intent, to only list c

Re: [android-developers] Create Folder

2010-10-29 Thread brindha sweety
On Fri, Oct 29, 2010 at 7:34 AM, TreKing wrote: > On Thu, Oct 28, 2010 at 5:36 AM, brindha sweety gmail.com> wrote: > >> >> hoe to create a folder in main screen programmatically? > > > What does "create folder in main screen" mean? > thanks for your reply. how to create a f

[android-developers] Slow Sqlite and Filtering ListView

2010-10-29 Thread Sanchiski
I have read all posts about SQLIte and haven't found a real solution yet. -I have a database with 1000 rows, and the main search columns indexed. -These are displayed in a ListView. Since I am using the FastScroller functionality I need to load them all (1000 rows) in a cursor so there are no del

[android-developers] Monitoring audio input

2010-10-29 Thread Neilz
Hi all. I want to monitor the audio via the microphone over a continuous period of time. I don't want to record it, just get a handle on the signal, to test for volume etc. I've searched on the MediaRecorder and AudioRecord classes, and get the feeling that this is possible, but I'm kind of stuck

  1   2   >