Re: [android-developers] What to check into source control?

2011-01-17 Thread Marcin Orlowski
On 18 January 2011 08:41, Mattias Svala wrote: > I have a question about what parts of an Eclipse Android project to check > into source control. All besides bin/ and gen/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this g

[android-developers] What to check into source control?

2011-01-17 Thread Mattias Svala
Hello! I have a question about what parts of an Eclipse Android project to check into source control. This is what i checked in, thinking that the gen/ folder would not be needed since the contents of it is generated as part of the build process. SimpleNotes/ |-- AndroidManifest.xml |-- bin |-

[android-developers] How to Launch Tab activity by using Intent

2011-01-17 Thread Anzi
Hi, My application is having Tab activity with activity "One" and "Two" with a background service. I want to launch my Tab activity with a respective tab, when ever i got a data from my service. For example, I got a event with some data, to display in Activity "Two". If i send an intent to laun

[android-developers] Re: NFC Intents: Reacting on specific NDEF types

2011-01-17 Thread andrew
I think he only wants his activity started by the NFC intent, if the tag has a specific type of indefinite message. I.e. he wants to be able to specify an intent filter for his activity by indefinite message type and not be started on all tag discoveries. On Jan 18, 4:19 am, Ajith Kamath wrote:

Re: [android-developers] Re: switch between activity issue

2011-01-17 Thread Kumar Bibek
Why exactly are you trying to loop it repeatedly? And that too 1000 times? Anyway, what does the logcat say? Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Tue, Jan 18, 2011 at 12:22 PM, tstanly wrote: > sorry let me explan detailed, > > > now I have four activities, call

[android-developers] Is AlarmManager to be caused a serious security hole?

2011-01-17 Thread Hiro OKUYAMA
We can make and run "cron-like program" by the AlarmManager on Android. But I think those are dangerous for we. Because AlarmManager as stealthy as follows: * Not resident * Not shown in the Task Manager * No way to stop it (expect uninstall caco-program). * No way enumerate tasks that AlarmM

[android-developers] Re: switch between activity issue

2011-01-17 Thread tstanly
sorry let me explan detailed, now I have four activities, called A, B, C and D, the calling sequence is, A->B->A->C->A->D->A->B->(loop repeatedly) you can think A is main program, after finishing B,C,D activity, it must return to A (using StartActivityForResult), this scenario will repeat for

[android-developers] Re: Proper Exception Handling

2011-01-17 Thread Doug
On Jan 17, 9:35 pm, Paul wrote: > Coming over from other languages/platforms, and just trying to get my > head around the proper way to handle Exceptions in Android (or at a > minimum, some advice/links on this topic). I don't think Android offers any more or fewer challenges with exception handl

[android-developers] Android encryption Google App Engine decryption

2011-01-17 Thread Beginner
Hi, I'm trying to implement a fairly straight-forward protocol. Where Android clients would encrypt certain data before sending it over to my google app engine server. However, it seems like there's some significant differences - at least in the default capabilities. It seems I can only really use

Re: [android-developers] Looking for a theme developer

2011-01-17 Thread tushar sahni
Hello I am able to accept your job of theme developer Thanking You Tushar Sahni -- 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

[android-developers] Re: custom attributes in library projects

2011-01-17 Thread egg
I also just encountered a same problem. On 2010年12月28日, 午後4:08, schwiz wrote: > Ag!! hopefully a hot fix soon?? > > On Nov 23, 12:13 pm, Leif wrote: > > > > > > > > > And same here too... > > > On 9 Nov, 07:01, Open wrote: > > > > Same problem here. > > > > On Sep 14, 9:58 pm, Tom wrote:

[android-developers] Re: Retrieve tweets from my twitter account

2011-01-17 Thread Muhammad Ali
Hi, You should use the twitter4j for this purpose. It is very easy to retrieve the tweets and all the information from the account. Regards, Ali Hassan On Jan 18, 2:51 am, Albert wrote: > Hi, > > I would like to retrieve tweets from my own account. I have seen that > there are libraries to integ

Re: [android-developers] switch between activity issue

2011-01-17 Thread Kumar Bibek
I am confused. What are you trying to do? Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Tue, Jan 18, 2011 at 11:44 AM, stanly wrote: > hi all, > > I have a application, > main activity called A, > function 1 called B, function 2 called C, function 3 called D, > every func

[android-developers] Android browser

2011-01-17 Thread kypriakos
HI all, may be someone knows a bit more about this - I am running javascript clients on the default browser and I have a class that intercepts the outgoing requests. The outgoing requests have OPTIONS headers (due to the cross-origin security policy) so I intercept the outgoing request and return

Re: [android-developers] switch between activity issue

2011-01-17 Thread Dianne Hackborn
*blink* Why? On Mon, Jan 17, 2011 at 10:14 PM, stanly wrote: > hi all, > > I have a application, > main activity called A, > function 1 called B, function 2 called C, function 3 called D, > every function are activitys, > then A will use StartActivityForResult call B then return to A, > and use

[android-developers] switch between activity issue

2011-01-17 Thread stanly
hi all, I have a application, main activity called A, function 1 called B, function 2 called C, function 3 called D, every function are activitys, then A will use StartActivityForResult call B then return to A, and used same method to call C and D, A->B->A->C->A->D->A->B->A->C.and so on, the l

[android-developers] Proper Exception Handling

2011-01-17 Thread Paul
Coming over from other languages/platforms, and just trying to get my head around the proper way to handle Exceptions in Android (or at a minimum, some advice/links on this topic). Have an app that in various activities handles any number of types of Exceptions, such as IOException, FileNotFoundEx

[android-developers] Re: Converting screen coordinates to world coordinates?

2011-01-17 Thread prachi
I generally use location.distancebetween method to calculate the distance taking my camera position as the origin. But here my actual requirement is to fetch lattitude and longitude values from screen coordinates.So for this i need world x,y,z values. Again any idea about it? On Jan 17, 6:48 pm,

[android-developers] Re: Converting screen coordinates to world coordinates?

2011-01-17 Thread prachi
Hey hi First of all thanks a lot for answering my questionI will work on it. Secondly while writing "Ny" and "dis" I had no such aim of offending anyone,if anybody felt so, I apologise.Its just the matter of fact that we tend to use such short forms these days and which i guess convey the rig

[android-developers] Re: Android shopping cart API/SDKs out there?

2011-01-17 Thread metal mikey
According to Google China's reps that featured at Google Australia's Android Developer Lab a few months ago: "It is a breach of the Android Market's terms & conditions to procure revenue outside of the Android Market." I pointed out to them that people are already doing this, and so saying its no

[android-developers] Android shopping cart API/SDKs out there?

2011-01-17 Thread pawpaw17
Guys, Interested in what people are using for shopping cart/credit card processing support for in-app product purchases. I'm having trouble scraping up good info on this - any advice would be greatly appreciated. Best, pawpaw17 -- You received this message because you are subscribed to the Goo

[android-developers] Re: adb works, ddms shows nothing

2011-01-17 Thread Indicator Veritatis
H-m-m-m. That is a little weird. I too am running on Linux, but Fedora 12 instead of Ubuntu. And the only time I have not been able to solve similar problems with "adb kill-server;adb start-server", it was because the wrong device was selected in the Device Window in Eclipse. So check that. Also,

[android-developers] Re: HttpURLConnection gives UnknownHostException

2011-01-17 Thread Indicator Veritatis
Excellent post! I have only one small detail to add; it might actually turn out to be important, though I can't guarantee it. That detail is: DNS is almost always implemented using UDP for transport, not TCP, so there is none of TCP's measures to try to provide guaranteed delivery. Instead, the DNS

Re: [android-developers] NFC Intents: Reacting on specific NDEF types

2011-01-17 Thread Ajith Kamath
Hi Dominik The EXTRA_NDEF_MESSAGES will be in that Intent which will contain all ndef messages of detected tag. So once you get that intent, get all records from that Ndef Message. Check the type (getTnf ) for

[android-developers] Re: NFC Secure Element

2011-01-17 Thread Ajith Kamath
I still dont have nexus s but there is a high probability that its Embedded Yes Keys are private and most likely needs to be provided by Service Provider. The same thing has been mentioned in nokia forum But I am not sure how this will be done for nexus S.(may be there are ties with Service Provi

[android-developers] ant build error while importing third-party library

2011-01-17 Thread 陈彧堃
When I put a third-party jar into /lib folder, then build it with ant, the error shows. Also the error goes off if the library is removed. [echo] Converting compiled files and external libraries into bin/classes.dex... [apply] [apply] UNEXPECTED TOP-LEVEL ERROR: [apply] java.lang.

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-17 Thread gjs
Hi, > Ah, I forgot, the phones don't yet have a light sensor. Too bad.. I think you will find some already do: eg Nexus S, Nexus One, Droid X and others. See http://developer.android.com/reference/android/hardware/Sensor.html Here's a sample photo from Nexus S showing ambient light LUX, at bott

[android-developers] Re: "no such table..." message error in my android applications

2011-01-17 Thread DanH
Execute the following query to list the tables defined in your DB: SELECT name FROM sqlite_master WHERE type IN ('table','view') AND name NOT LIKE 'sqlite_%' UNION ALL SELECT name FROM sqlite_temp_master WHERE type IN ('table','view') ORDER BY 1 On Jan 8, 3:42 am, ghi80 wrote: > Hi, > I'm an ita

[android-developers] [MediaPlayer] seekTo behavior after onBufferingComplete

2011-01-17 Thread Ganesh
Dear Experts, I am currently trying to understand the Media Player and had a question on the seeking part in Media Player. Basically, "seekTo" method can be invoked from any state except Idle, Initialized, Stopped, Error. Consider a case where playback has been completed (30 s file) i.e. Looping

Re: [android-developers] Re: writing an Authenticator to use with AccountManager

2011-01-17 Thread John Lussmyer
Back to this question again. As I said in my original message, I'm working from the SampleSyncAdapter example program. Currently, it mostly works, but I don't understand the flow of control, OR how to do certain operations. Currently, if I start my app on a "clean" emulator, it prompts me for the

[android-developers] NFC Intents: Reacting on specific NDEF types

2011-01-17 Thread Dominik
Is it possible to restrict the type of tags an application is reacting on? The intent filter used e.g. by the Tags application on the Nexus-S is defined as When a tag is detected, the user has to choose the application which should handle the intent. I would like to react dep

[android-developers] Re: problem with listview

2011-01-17 Thread Bob Kerns
Off topic, but There was always toggle switches and looking at the lights. If you want to recreate that experience, there's the Arduino -- if you ignore the debugger. Did you get in trouble for using too much line-printer paper? On Jan 14, 8:11 am, Kostya Vasilyev wrote: > And I actually us

[android-developers] Re: NFC Secure Element

2011-01-17 Thread Dominik
According to the NXP documentation of PN544, three SE variants are supported: - SIM Card (via UICC) - Embedded (SmartMX security chip) - SD Card Do you know which version is intended to be used by the Nexus S device? The above messages describe attempts to enable SmartMX. As soon as access to thi

[android-developers] Re: Emulator too slow to start - ADT 8.0.1, Ubuntu 10.10, Eclipse 3.5.2

2011-01-17 Thread Bob Kerns
While it's slow enough to start that one can be forgiven for killing it thinking it's hung, it's no where near an hour to start! While I would certainly highly recommend more memory, I myself run Windows 7 with 4 GB of RAM on an Intel T7600 processor, not much faster than yours, but I just timed i

[android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-17 Thread Zsolt Vasvari
Of course, that will only work on 3.0 or higher. Can't you do you own bitmap loading? There must be some libraries available for you to use that can decode a input stream into a byte array. You can manipulate that and then draw it using a custom View. On Jan 18, 6:55 am, String wrote: > Thanks

Re: [android-developers] Re: Widgets size

2011-01-17 Thread Dianne Hackborn
Yep it is exactly so that the same icon layout can be kept in landscape vs. portrait. As screens have gotten longer, this has become more of a problem... but as soon as you start allowing different x and y sizes, you just have a huge mess trying to deal with the two orientations. The best thing

[android-developers] Re: Version code being displayed instead of Version Name in Samsung Galaxy S - GT I9000 device?

2011-01-17 Thread Phil Endecott
On Jan 17, 6:20 pm, Dianne Hackborn wrote: > If you are talking about the version shown in Manage Applications, old > versions of the platform had a bug where they showed the raw version code > and not the text. I don't remember in which platform version that was > fixed. Between 2.1 and 2.2, AF

[android-developers] Re: Retrieve tweets from my twitter account

2011-01-17 Thread metal mikey
Yes its possible. Yes its easy. You can scrape it from the webpage or use the API, the API method being the most efficient. -- 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

Re: [android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-17 Thread String
Thanks very much for both of these new APIs. I for one will be able to make VERY good use of them. :^) <-- my happy programmer face String -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-dev

[android-developers] Re: Widgets size

2011-01-17 Thread String
Also, in my experience it seems to be a rule that stock home screens always have a "square" grid. IOW, I've never seen a device with a 6x7 grid, for example. I suspect this is so that they can use the same icon/widget layouts in both portrait and landscape. String -- You received this message

Re: [android-developers] Re: Widgets size

2011-01-17 Thread Dianne Hackborn
That's probably just the platform's launcher not being designed for anything besides a phone. HC should address this. :) On Mon, Jan 17, 2011 at 2:47 PM, String wrote: > Except that this is difficult to test, as the emulator DOES always use a > 4x4 icon grid, even for WVGA MDPI instances. It'll

Re: [android-developers] Re: Will no longer support Android 1.5

2011-01-17 Thread Dianne Hackborn
Huh. Well it could well be, that was so long ago it is hard to remember. :} On Mon, Jan 17, 2011 at 2:42 PM, String wrote: > FWIW, I had the same experience, now that you mention it. Using @dimen > references in widget layout XML doesn't work on 1.5. > > Bit of a PITA, but I just went ahead and

[android-developers] Re: Widgets size

2011-01-17 Thread String
Except that this is difficult to test, as the emulator DOES always use a 4x4 icon grid, even for WVGA MDPI instances. It'll report the grid cells as standard MDPI size, I believe, but it won't put more of them on your home screen. String -- You received this message because you are subscribe

Re: [android-developers] Re: Will no longer support Android 1.5

2011-01-17 Thread String
FWIW, I had the same experience, now that you mention it. Using @dimen references in widget layout XML doesn't work on 1.5. Bit of a PITA, but I just went ahead and created a few more layouts (rather than resizing them based on dimens) and moved on. It didn't seem like a big enough problem to s

[android-developers] Re: "no such table..." message error in my android applications

2011-01-17 Thread Bob Kerns
You don't show your SELECT statement. I wonder if you might accidentally have localized the table name? On Jan 8, 1:42 am, ghi80 wrote: > Hi, > I'm an italian android application publisher. > In my free and paid applications, i use database files. > I have database file with extension ".sqlite".

[android-developers] Changing Tabs doesn't always update screen

2011-01-17 Thread John Lussmyer
I'm trying to use a relatively simple Tab view. All the tabs are declared in the XML, none using alternate Activities. They appear just fine on screen. When I click on Tab2, it shows up and Tab1 content is hidden. Then when I click back on Tab1, it's displayed overlayed with Tab2. Click back on Tab

[android-developers] Re: Eclipse/ADT just not cutting it, need refined ide For androdi development!

2011-01-17 Thread Bob Kerns
I think you have this backwards. Completely backwards. First, neither the Eclipse IDE, nor the Android plugin for Eclipse, are really "developed by the community". While they may accept community contributions, the main developers in are paid professionals. Second, if the Android paid professiona

Re: [android-developers] Retrieve tweets from my twitter account

2011-01-17 Thread Kevin Duffey
I am pretty sure that if Twitter has an API to post tweets, you should be able to retrieve them. Have you looked at their REST api or any other API they offer from their site? On Mon, Jan 17, 2011 at 1:51 PM, Albert wrote: > Hi, > > I would like to retrieve tweets from my own account. I have se

[android-developers] Re: converting accelerometer output into the world's coordinates

2011-01-17 Thread Bob Kerns
I'm going to presume you don't care about where the origin of the world coordinate system is, but rather, you want to rotate the coordinates to make it independent of phone orientation. Even if you do care, it's the first step, anyway! The key thing to realize is that you have two references avai

Re: [android-developers] Does Android provide API to enable my IME

2011-01-17 Thread Brill Pappin
Yes I agree. I'm saying that validating the entity goes a long way toward assurance. People are much less likely to dupe a user if everyone knows who they are. Nothing is perfect, but it can be improved. - Brill Pappin Sent from my Samsung Captivate(tm) on Rogers Dianne Hackborn wrote: >As

[android-developers] Retrieve tweets from my twitter account

2011-01-17 Thread Albert
Hi, I would like to retrieve tweets from my own account. I have seen that there are libraries to integrate your app with twitter and post messages, etc but all I want is to read from an account. Is that possible? and more importantly, is it easy to implement? :) can't really afford to spend a lot

Re: [android-developers] Does Android provide API to enable my IME

2011-01-17 Thread Dianne Hackborn
As far as I know, Verisign and other cert authorities are primarily validating that the entity holding the certificate is who they say they are. That is not what you seem to be looking for. You seem to be asking for someone to independently assure users that code signed by the authority will not

[android-developers] Re: Will no longer support Android 1.5

2011-01-17 Thread Doug
On Jan 17, 11:33 am, Ken H wrote: > > Holy crap - why is awesome information like this not clearly documented > > somewhere!? (Or is it ...?) > > You crystalized my thoughts...although I usually find I just didn't > read the documnetation deeply :) This was news to me too, and I swear I've read e

Re: [android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-17 Thread Romain Guy
It won't help and that's not what it's for. But if you are writing a GL game, or an app like Google Maps, this allows you to reuse the same chunk of memory to load new textures/tiles. On Mon, Jan 17, 2011 at 1:30 PM, Streets Of Boston wrote: > Thank you Romain! > > About the 'inBitmap' option: >

[android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-17 Thread Streets Of Boston
Thank you Romain! About the 'inBitmap' option: I (and, i think, Matthew as well) were thinking about editing an existing image from file, i.e. manipulating the pixel-data through some algorithms (correct me if i'm wrong, Matthew). The 'inBitmap' option does not seem to help for this particular usa

[android-developers] Re: Count of activities in App's stack

2011-01-17 Thread Hari Edo
If you make a new class MyActivity extending Activity, then you make all of your activites extend MyActivity instead, then you can implement whatever instance tracking you'd like to do. But Java (and thus Dalvik) have no way to reflect and iterate all object instances of a class, extended class,

Re: [android-developers] Count of activities in App's stack

2011-01-17 Thread Kumar Bibek
I don't think so. I have never had a requirement to do so as well. :) Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Tue, Jan 18, 2011 at 2:24 AM, Sudhakar Chavali < sudhakar.koundi...@gmail.com> wrote: > Hello All > > Is there a way to know the count of activities exists i

[android-developers] Count of activities in App's stack

2011-01-17 Thread Sudhakar Chavali
Hello All Is there a way to know the count of activities exists in Application stack? Thanks & Regards Sudhakar Chavali -- 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.

[android-developers] Re: Is there a way to force the application not keep running after close it?

2011-01-17 Thread jotobjects
it needs the "android:" namespace android:clearTaskOnLaunch="true" On Jan 17, 8:24 am, Sergio Luceno wrote: > true, sorry i was using clearTaskOnLaunch. > > I tried to set this to true in the main activity... ando also in all > activities. > > But it still not working. > > here is how i define m

Re: [android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-17 Thread Romain Guy
Quick update: Android 3.0 will give you the ability to load mutable bitmaps from BitmapFactory. The API relies on BitmapFactory.Options, and a new field call "inMutable." While I'm at it, know that we've added another API to BitmapFactory.Options that lets you decode a Bitmap into an existing bitm

Re: [android-developers] Does Android provide API to enable my IME

2011-01-17 Thread Brill Pappin
Oh i don't know... not that I like the SSL certificate system, but it does seem to work and i think they do stand by their issued certificates. In that case its a bit easier because they don't verify that the server running the ssl cert is not malicious but they do verify the entity that requeste

Re: [android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-17 Thread Romain Guy
> > Is there a way around this in Android2.2, by using the Bitmap's *NDK* > api? > I haven't use the NDK's Bitmap API so I don't know, but it's doubtful given how Skia bitmaps work. In theory you could assign Bitmap.mNativeBitmap from the JNI layer but this won't work with Honeycomb. > > > > On

[android-developers] Re: searching in HUGE SQLite database

2011-01-17 Thread Bob Kerns
Generally, databases can make use of what indexes exist. It'll have to do more work to traverse this index, than it would to traverse ones on x, y, and z alone, or with x,y,z alone. And if you want it in sorted order, it'll have to do a sort operation of some type, as the traversal will be only par

Re: [android-developers] Re: Will no longer support Android 1.5

2011-01-17 Thread Dianne Hackborn
That's strange, I don't see why that wouldn't work. This is the code in 1.5: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/view/ViewGroup.java;h=e686d1c20bd21eaa050ff3bf9187b549ee7b1355;hb=refs/heads/cupcake-release#l3319 Which boils down to: http://an

[android-developers] Re: Spinner drop-down with blank lines

2011-01-17 Thread michael
Thanks for the suggestion, I will try it (although I probably won't be able to verify easily -- can't get more feedback from the user in question). Cheers, Michael. On Jan 17, 7:54 pm, Kostya Vasilyev wrote: > In theory, this shouldn't affect spinners. > > In practice, you've got a user complain

[android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-17 Thread Streets Of Boston
I would vote with all my 4 thumbs up for the *option* of creating a mutable bitmap from a file/input-stream/etc. For optimizations, the default should still be immutable bitmaps (as you described), but an option for loading it into a mutable bitmap would be great!. Question: Is there a way around

[android-developers] Re: Howto? identify the inflated resource

2011-01-17 Thread Brill Pappin
Hmm... I'll try that next time i'm working in that code. - Brill Pappin -- 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

Re: [android-developers] Turning off "save to SD Card"...problem?

2011-01-17 Thread Dianne Hackborn
Nothing will break. I'm not sure when the update is installed if it will prefer to install on the current location or fall back to internal storage. On Mon, Jan 17, 2011 at 10:35 AM, Ken H wrote: > What will happen if I turn off the ability to move an app to the sd > card for an app that curren

[android-developers] Re: Anyone with GL experience willing to take a contract/bounty?

2011-01-17 Thread Brill Pappin
Thanks Robert. I'll take that advice. In particular what we want are some extensions to the framework(s) that make supporting segmented maps easier for us to work with. Most frameworks have many samples of grid or tiles based maps, but we are interested in maps that use polygons divisions. Mayb

Re: [android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-17 Thread Romain Guy
I'll try to add a new API to load mutable bitmaps from BitmapFactory but I can't make any guarantee as to when it will be added to the platform (it's doubtful it will be in the first release of Android 3.0.) The main reason why bitmaps are mutable when loaded from a BitmapFactory is optimization. W

Re: [android-developers] Re: Spinner drop-down with blank lines

2011-01-17 Thread Kostya Vasilyev
In theory, this shouldn't affect spinners. In practice, you've got a user complaint, and something *is* going on. I would try taking out the theme setting for a one-off build, and ask that user to try it out. Given that I don't have a Droid X, that's the only thing that comes to my mind :) PS

[android-developers] Re: Howto? identify the inflated resource

2011-01-17 Thread Bob Kerns
So pull out your tag or ID value from the AttributeSet supplied to the constructor? The information should be there, even if it hasn't been applied yet. I've never tried it, but why else would the View constructor get an AttributeSet? On Jan 14, 6:27 am, Brill Pappin wrote: > Yes I agree Bob. > >

[android-developers] Re: How to have a Service, un-killed by any task killer

2011-01-17 Thread Hari Edo
Please remember that your code is a guest on someone else's phone. Your code should act accordingly. Don't make features that depend on just one way of ending the code. Dead battery, force quit, kill process, all of these things are normal and your code should expect that. On Jan 17, 2:04 am, J

Re: [android-developers] Re: XML layout vs. programmatic

2011-01-17 Thread Romain Guy
Android's XML layouts are built to be easily manipulated from code. For instance, it is very common for applications to selectively inflate bits of a View hierarchy by using a LayoutInflater. Other APIs, like ViewStub and findViewById(), help bridge the gap. One of the most important reasons why w

Re: [android-developers] Does Android provide API to enable my IME

2011-01-17 Thread Dianne Hackborn
It would be entirely possible for other people to do that kind of application verification, if they want. I wouldn't want to do this as a certificate, indicating the app gets some special trust relationship with the platform -- that puts "the good stuff" in the hands of whatever party is controlli

[android-developers] Re: Spinner drop-down with blank lines

2011-01-17 Thread michael
Hi again, I am using a custom theme for my entire application through the android:theme xml attribute in the Manifest file: But it has very minimal content and does not include the button styles -- these are set manually when needed. Here is the content of the themes.xml file which defines the

[android-developers] Re: Big problems with bitmaps, memory management, Log.d

2011-01-17 Thread Matthew Fleming
Thanks very much for the explanation regarding the 3 memory functions. I should have known this; my mistake. I really wish Google would consider modifying the BitmapFactory methods to allow for loading a mutable bitmap from a file/stream/ resource. The current arrangement has no obvious justificat

[android-developers] Re: XML layout vs. programmatic

2011-01-17 Thread Bob Kerns
MVC separation of View and Controller -- Obsolete? That is something I have never heard of. Could you elucidate? What replaces it? The separation in MVC exists for very specific benefits. If you view it as obsolete, you must have a New Idea -- MVC started as a New Idea, and I like New Ideas

[android-developers] Re: Will no longer support Android 1.5

2011-01-17 Thread Ken H
> Holy crap - why is awesome information like this not clearly documented > somewhere!? (Or is it ...?) > You crystalized my thoughts...although I usually find I just didn't read the documnetation deeply :) -- You received this message because you are subscribed to the Google Groups "Android Dev

Re: [android-developers] Re: Spinner drop-down with blank lines

2011-01-17 Thread Kostya Vasilyev
Hi, Are you using a custom theme for your entire application's activities to customize buttons? Are you using a theme at all? 2011/1/17 michael > Hi again, > > Thanks for your suggestion Kostya. But my spinner does not use any > custom styling whatsoever. It is shown in a dialog which is buil

[android-developers] Re: Window token is always null

2011-01-17 Thread APF
Fantastic, thanks. On Jan 17, 9:34 am, Dianne Hackborn wrote: > That's because the view hierarchy hasn't been added to the window manager. >  You find out it has been added in View.onAttachedToWindow(). > > > > > > On Mon, Jan 17, 2011 at 8:41 AM, APF wrote: > > I find that View.getWindowToken()

Re: [android-developers] Does Android provide API to enable my IME

2011-01-17 Thread Brill Pappin
Thats a good point :) However launching the settings would actually be helpful and exactly what I've been meaning to look into. Combine it with adding a convenient text field they can long-click in should help. I do get a lot of people rating-down or complaining because they didn't read the war

[android-developers] Re: Spinner drop-down with blank lines

2011-01-17 Thread michael
Hi again, Thanks for your suggestion Kostya. But my spinner does not use any custom styling whatsoever. It is shown in a dialog which is built using AlertBuilder. The only custom styling in the app is for buttons, which I don't think should have any effect on spinners. Any other ideas? Incidenta

[android-developers] Using a bitmapdrawable to repeat an image and translate it

2011-01-17 Thread brian purgert
I need help with the bitmap drawable i want to draw this bitmap in a rectangle that repeats and translate it it but how do i get the bitmapdrawable to draw in the rectangle. I know it shouldn't be to hard but i feel like im over confusing my self. And also in the api the draw rect has top,left,bott

[android-developers] Re: Widgets size

2011-01-17 Thread Cleverson
Thank you all! It was hard to understand because I was assuming the home screen always had to have 4x4 cells. But my assumption was not correct. A 480x800 mdpi would probably have more cells, maybe 6x6 or 6x7 (in portrait). On 17 jan, 15:51, Henrik Lindqvist wrote: > This is how I calculate the

Re: [android-developers] Re: Spinner drop-down with blank lines

2011-01-17 Thread Kostya Vasilyev
I don't have one either, but I've seen screenshots of my program on that device, done by someone for a review. See the top-left corner of the screenshot in section 8: http://www.simplehelp.net/2010/11/30/how-to-manage-your-android-wifi-connections/ The spinners in that screenshot use my own back

[android-developers] Re: Anyone with GL experience willing to take a contract/bounty?

2011-01-17 Thread Robert Green
There are many Android devs who have plenty of GL experience, however I believe that your post was too vague to draw interest. I believe many of the good game developers have stopped watching this group because it has become rather large and generally has little to offer graphics and simulation pr

[android-developers] Re: Spinner drop-down with blank lines

2011-01-17 Thread michael
Hi Kumar and Kostya, thanks for your quick replies. Kumar, I did wonder if text colour could be an issue, but surely the standard styling should work consistently throughout all devices and OS versions, right? Note that I have not set a custom text colour. Kostya, this is indeed on Droid X -- do

[android-developers] Re: GPS turned on automatically on some devices?

2011-01-17 Thread Stephan Wiesner
Thanks for the tipp. I did indeed enableMyLocation and will try your advice. Stephan On 17 Jan., 14:38, Spiral123 wrote: > I seem to remember having a similar problem.  Does your Map app > display the Users current location at any point? > > If yes, try calling MyLocationOverlay.enableMyLocation

Re: [android-developers] Big problems with bitmaps, memory management, Log.d

2011-01-17 Thread Romain Guy
Hi Matthew, I am sorry that you didn't get a better answer before, but this is, unfortunately, the only way of doing it with the existing APIs. This kind of feedback is important to us because it tells us what APIs application developers need. As for your second question, the values returned are

Re: [android-developers] Turning off "save to SD Card"...problem?

2011-01-17 Thread Kumar Bibek
Yep, I guess the docs explain all the situations possible. Like, SDCard removed/unmounted. So the decision has to be taken considering all these and how your app should behave under such circumstances. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Tue, Jan 18, 2011 at 12:05

Re: [android-developers] Spinner drop-down with blank lines

2011-01-17 Thread Kostya Vasilyev
Is this on the Droid X ? 2011/1/17 Kumar Bibek > Well, it's just a problem of wrong text color on a custom UI from the > manufacturer. Ask the user for the model of his phone and the OS version. I > am sure, you can reproduce the problem on a similar device. > > Say, for example, your spinner it

[android-developers] Turning off "save to SD Card"...problem?

2011-01-17 Thread Ken H
What will happen if I turn off the ability to move an app to the sd card for an app that currently has that feature? Will it just move the app to the phone...no problems? I asked because I turned it on not realizing some things would break or not work consistently. REALLY need the read the docs be

[android-developers] Re: Problem with large number of markers on google map

2011-01-17 Thread Stephan Wiesner
Guess we read the same tutorial :-) Like TreKing wrote: Remove all those populate calls and pay attention to your draw method. I can handle 7000 objects on a Samsung Galaxy S (but not on slower phones). Greetings from Lucerne, Stephan On 17 Jan., 17:52, TreKing wrote: > On Mon, Jan 17, 2011 at

Re: [android-developers] Re: Will no longer support Android 1.5

2011-01-17 Thread TreKing
On Mon, Jan 17, 2011 at 12:18 PM, Dianne Hackborn wrote: > Oh and I believe on Market that if you put up a new version of your app > with a higher minSdkVersion, the most recent older version will still be > visible to older devices. That is, the .apks you upload are never deleted; > a new versio

Re: [android-developers] Spinner drop-down with blank lines

2011-01-17 Thread Kumar Bibek
Well, it's just a problem of wrong text color on a custom UI from the manufacturer. Ask the user for the model of his phone and the OS version. I am sure, you can reproduce the problem on a similar device. Say, for example, your spinner items text color is black, which you have mentioned, and the

Re: [android-developers] Re: Will no longer support Android 1.5

2011-01-17 Thread Kostya Vasilyev
No, I mean defining a value like this: 140dp and then using it like this: I used this for widget sizing, and had a default fallback dimens.xml in "res/values" (without alternate qualifiers). Based on my user's feedback, this produced zero-sized (invisible) widget layouts. Was this supposed t

Re: [android-developers] Re: Tracking someone else using Latitude (Android Tutorial Wanted)

2011-01-17 Thread Kumar Bibek
The Latitude app takes your co-ordinates from your phone, uploads it to the Google servers, and then, it gets pushed everywhere else. I guess, this is what you should also be doing. You can use the Latitude APIs to update your own location. But looking at the API reference, I don't think it suppor

Re: [android-developers] Re: Will no longer support Android 1.5

2011-01-17 Thread Dianne Hackborn
Oh and I believe on Market that if you put up a new version of your app with a higher minSdkVersion, the most recent older version will still be visible to older devices. That is, the .apks you upload are never deleted; a new version just supersedes an older one for the devices it is compatible wi

[android-developers] Re: "Use wireless networks" setting not always available?

2011-01-17 Thread michael
Just trying a second time: anybody has an answer to some of these questions? Any hints are greatly appreciated. Best, Michael. On Jan 8, 1:16 pm, michael wrote: > Hello, > > I have an app that relies on wireless network location, i.e. which > receives location updates from the NETWORK provider.

  1   2   3   >