Re: [android-developers] Accessing Common methods among activities

2010-06-19 Thread Gaurav Vaish
Application Context is not an activity but just "Context" (It's actually, Application) -Gaurav On Sun, Jun 20, 2010 at 12:01 PM, mike wrote: > hi guys, > > i have Activity A and Activity B > > i want to access a method in Activity A from Activity B > > this is my method > Activity A extends

[android-developers] Accessing Common methods among activities

2010-06-19 Thread mike
hi guys, i have Activity A and Activity B i want to access a method in Activity A from Activity B this is my method Activity A extends activity{ public void save(){ } } this is what i have done from activity B Activity B extends activity{ public void access{ Acitvi

[android-developers] Android jar artifacts now available in Maven central

2010-06-19 Thread Manfred Moser
Hi all! I just thought I let you all know that thanks to a community effort the Android jar artifacts are now available in Maven central. More details are found at http://bit.ly/ccBr4T This include source and javadoc bundles and can of course also be used by other build tools that access Maven ce

Re: [android-developers] Re: Control any led of the device, does the sdk allow?

2010-06-19 Thread Dianne Hackborn
No, this is the only way to control LEDs in the SDK, and even this does not give guarantees about what exactly it will do, because the LEDs varies significantly across devices. 2010/6/19 Gabriel Simões > Thanks for your reply... > > I should have mentioned that I knew about using the > notificat

Re: [android-developers] Re: Mimic Home button in software

2010-06-19 Thread Dianne Hackborn
Ah. Replacing the lock screen and such is not at this point supported. You may figure out a hack to do what you want, but we can't guarantee it will work on future versions of the platform or even across devices. The disableKeyguard method was original introduced for very specific situations suc

[android-developers] Re: Hi, anyone knows how to install python on android?

2010-06-19 Thread asicwizard
Read: Command your shiny Android in Python http://indefinitestudies.org/2009/06/20/command-your-shiny-android-in-python/ Have fun. On Jun 16, 8:24 pm, J之道 wrote: > > And ,there's any tool that I can use to operate remotely by linux > command line on my lap top through usb or WIFI ? Or can I get

[android-developers] Re: Area map / Area plan

2010-06-19 Thread Maps.Huge.Info (Maps API Guru)
You might do it as a web page using the Google Maps API version 3, it works quite well on Android as well as iPhone. The learning curve is easier to manage than trying to build an app from scratch. -John Coryat -- You received this message because you are subscribed to the Google Groups "Android

[android-developers] Re: World cities database

2010-06-19 Thread Maps.Huge.Info (Maps API Guru)
geonames.org is free. -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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@google

[android-developers] Re: How trigger intent to execute a specific method from a specific activity

2010-06-19 Thread Gabriel Simões
Thanks, Works as expected! On 16 jun, 05:31, a2ronus wrote: > 1. Register a BroadcastReceiver that listens for a specific Intent. > 2. When the user clicks on the Notification, the PendingIntent will be > launched. You can put extra's in this Intent. You can use the extra's > to determine which m

Re: [android-developers] how to startup the emulator with landscape orientation instead of portrait

2010-06-19 Thread pawan nimje
Try with other ctrl button ... if u have laptop ctrl+fn+F11 this should work ... On Sun, Jun 20, 2010 at 7:59 AM, Jian Chen wrote: > Guys, > > as u know, since android 1.6, there are not dirs on dirs like HVGA-L. > Instead, there is only one dir like HVGA. > That is, HVGA-P and HVGA-L are merged

[android-developers] how to startup the emulator with landscape orientation instead of portrait

2010-06-19 Thread Jian Chen
Guys, as u know, since android 1.6, there are not dirs on dirs like HVGA-L. Instead, there is only one dir like HVGA. That is, HVGA-P and HVGA-L are merged into one dir, HVGA. So, only HVGA can be selected and by default the emulator is started with portrait mode. Though I can press CTRL+F11/F12

[android-developers] Re: Mimic Home button in software

2010-06-19 Thread GodsMoon
special lockscreen looks like this btw http://nightshadelabs.appspot.com/static/lockscreen.png On Jun 19, 9:10 pm, GodsMoon wrote: > Sorry, my app disables the keyguard with disableKeyguard(). > This makes inKeyguardRestrictedInputMode() return true so clicking on > the home button brings up the

[android-developers] Re: Mimic Home button in software

2010-06-19 Thread GodsMoon
Sorry, my app disables the keyguard with disableKeyguard(). This makes inKeyguardRestrictedInputMode() return true so clicking on the home button brings up the lock screen (the special one without the Emergency Call button). I would like to see this lock screen when pressing the back button. Actua

[android-developers] Re: Avoid non-static inner classes in an activity?

2010-06-19 Thread Nathan
On Jun 19, 5:45 pm, Mark Murphy wrote: > Well, as I wrote: > > "A number of GUI-related things fail outright if you use > getApplicationContext() instead of an Activity, for example." > > Off the top of my head, I can't name any specific methods. Resources > don't map right, IIRC, and you can't

[android-developers] Re: Control any led of the device, does the sdk allow?

2010-06-19 Thread Gabriel Simões
Thanks for your reply... I should have mentioned that I knew about using the notificationManager to flash leds but unfortunately it doesn´t work for me mainly because you can´t syncronize events with the blink of the led. Is there any other way to control when to turn the led on/off? tnx, Gabrie

Re: [android-developers] Re: Avoid non-static inner classes in an activity?

2010-06-19 Thread Mark Murphy
On Sat, Jun 19, 2010 at 8:37 PM, Streets Of Boston wrote: > "I ask only because the Application object returned by > getApplicationContext() is a bit brain-dead in terms of being a > Context" > > Not to hijack the thread, but which things do fail? I assume that the > call to tracker.start takes a

[android-developers] Re: Avoid non-static inner classes in an activity?

2010-06-19 Thread Streets Of Boston
"I ask only because the Application object returned by getApplicationContext() is a bit brain-dead in terms of being a Context" Not to hijack the thread, but which things do fail? I assume that the call to tracker.start takes a Context as parameter and getApplicationContext() is a proper Context.

[android-developers] Re: Cold fusion Developer - Iowa

2010-06-19 Thread Indicator Veritatis
Those of us with good communication skils as you ask for recognize right away: you are posting this in the wrong place. On Jun 18, 9:27 am, karan lobo wrote: > Dear Friends, > > There is urgent requirment for Cold Fusion Developers Version 7. Other > details you can find it below. Please forward

Re: [android-developers] World cities database

2010-06-19 Thread Raymond Rodgers
On 06/16/2010 02:14 AM, Hey its Ashish wrote: Hi, I am working on application which required to display the data in following from: List of Region->List of Countries(As per selection)-->List of Cities(As per selection) I had tried hard to find some web services which facilitate the sam

[android-developers] Area map / Area plan

2010-06-19 Thread Simon Ringeisen
Hey! right away I am doing an app for an festival, and I want to make a area map / area plan. I have got a picture (bigger then the screen) and I want to be able to move it up/down and to the left/right. Further I want to place smaler icons (like the stage, you should be able to click on it and see

Re: [android-developers] Do VBOs really improve performance? Really?

2010-06-19 Thread Miguel Morales
Well, if you look at the talk google gave the developer gave a short note about it: http://code.google.com/intl/es-ES/events/io/2010/sessions/writing-real-time-games-android.html If memory serves me correct, you won't gain much of a speed gain from using VBOs as opposed to say draw_texture. This i

[android-developers] Set result of svnversion to tag android:versionName

2010-06-19 Thread Sebastian Müller
Hi Is there any possibility to set the result of the command svnversion into the tag android:versionName of the Android manifest file?? Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-de

[android-developers] Do VBOs really improve performance? Really?

2010-06-19 Thread Navigateur
I've been trying VBOs (3D) and I've seen no improvement at all on my Motorola Dext over not using VBOs. I've tried all kinds of configurations, interleaved arrays, bytebuffers instead of floatbuffers, both direct and indirect. My question is, has anybody got any measured improvement in frames per

Re: [android-developers] Re: Maintaining the state when changing the orientation

2010-06-19 Thread Dianne Hackborn
On Wed, May 19, 2010 at 5:12 PM, JP wrote: > Like in your case, I have apps that need to keep (hundreds of) objects > and state variables that require retention regardless of what's going > on at the UI level. What I've done in order to pick up where I left > off after a rotation change (or, for

Re: [android-developers] Mimic Home button in software

2010-06-19 Thread Dianne Hackborn
I'm not sure I understand... if you want to switch to home from your app (which I am pretty sure the intent you give below is the right way), what would this have to do with the keyguard? If the user is in your app, they aren't in the keyguard... I don't understand the connection you have betwee

Re: [android-developers] Control any led of the device, does the sdk allow?

2010-06-19 Thread YuviDroid
Take a look here: http://androidblogger.blogspot.com/2009/09/tutorial-how-to-use-led-with-android.html 2010/6/19 Gabriel Simões > Hello, > > I´d like to create some visual referentes for an app and I think being > able to control any led of the device would be the best choice. > Does the sdk all

[android-developers] Control any led of the device, does the sdk allow?

2010-06-19 Thread Gabriel Simões
Hello, I´d like to create some visual referentes for an app and I think being able to control any led of the device would be the best choice. Does the sdk allow us to control (by code) the intensity and turning any led on/off? If so, how? Thanks -- You received this message because you are subs

[android-developers] Re: Maintaining the state when changing the orientation

2010-06-19 Thread Alok Kulkarni
Currently i am having handlers in my code which update th ui. But it seems they are not having any effect on ui when i change the orientation.the handlers get called but do not have any effect on ui.is there any special handling that needs to be done in case of handlers? On 5/14/10, Alok Kulkarni

[android-developers] Mimic Home button in software

2010-06-19 Thread GodsMoon
I would like the back button to work exactly like the home button in my activity. I know that doesn't sounds like something I would want to do, but it makes sense in the context of my app. I've tried an intent: Intent intent = new Intent(Intent.ACTION_MAIN, null); intent.addCategory(Intent.CATEGOR

[android-developers] Re: World cities database

2010-06-19 Thread Maps.Huge.Info (Maps API Guru)
I suggest looking at http://geonames.org - they have a download database of virtually every city in the world, along with coordinates and population, all free. -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

Re: 回复: Re: [android-developers] Hi, anyone kn ows how to install python on android?

2010-06-19 Thread David Turner
2010/6/19 铮王 > Oh.I think it must there are ways to install linux apps ,but i'm so > appreciate for your answer ,thanks , hope someone will help me on it... > No, actually Android is very different from a "standard" Linux distribution, and you can't "install Linux apps" on it. The applicatio

Re: [android-developers] World cities database

2010-06-19 Thread Brad Gies
Ashish, I have a database that has all countries, all provinces, and most cities in North American, as well as the larger cities in the rest of the world. I can give you SQL statements for either MySQL or SQL Server if you want to do this yourself. I also have a webservice that I use internal

[android-developers] GridView zoom in/out

2010-06-19 Thread Tabman
I have a GridView that displays thumbnails of images, I want to change the thumbnail size (zoom in/out) during runtime, what is the best way to achieve this ? I changed the columnWidth of gridView during runtime but after that I scroll the gridview and I get memoryoutoferror exception. Thanks --

[android-developers] Re: HttpURLConnection and data roaming

2010-06-19 Thread Cydrike
Some additional info : I'm running with Android 2.1. The phone I use id a HTC Desire. -- 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,

Re: [android-developers] Launch application or service from html link?

2010-06-19 Thread Mark Murphy
On Fri, Jun 18, 2010 at 9:18 PM, Dianne Hackborn wrote: > You can actually build a URI to launch pretty much any intent; the browser > always adds the BROWSABLE category, though, so any activity receiving it > must have specified that. To clarify: I suspect that the easiest way to determine the p

[android-developers] discripencies while compressing a bitmap on Google nexus

2010-06-19 Thread mudit
Hi all, I am compressing a bitmap object to OutputStream using "Compress" function. Here is my code: try { if (bitmap != null) { bitmap.compress(Bitmap.CompressFormat.JPEG, 100, bytes); } else {

Re: [android-developers] Re: Android & Corba

2010-06-19 Thread Mark Murphy
On Sat, Jun 19, 2010 at 10:07 AM, Squ36 wrote: > So, if I can't use CORBA, what is the best way to program multi-users > apps ? Use a server of some form. > I'm insisting on the fact that it needs to run without a server > access, because I'm a student, and I can't afford to buy or rent a > dedi

[android-developers] Re: Android & Corba

2010-06-19 Thread Squ36
OK... So, if I can't use CORBA, what is the best way to program multi-users apps ? I'm insisting on the fact that it needs to run without a server access, because I'm a student, and I can't afford to buy or rent a dedicated server... -- You received this message because you are subscribed to the

[android-developers] Re: Admob ads linking to scam sites, possible additional app-security problems

2010-06-19 Thread tobias429
If you've spotted a fraudulent advertiser on AdMob, please report it to them. They have their own support forum. -- 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 uns

Re: [android-developers] Android & Corba

2010-06-19 Thread Mark Murphy
On Sat, Jun 19, 2010 at 9:51 AM, Squ36 wrote: > I just have a quick question. Is it possible to use CORBA in an > Android app ? Because I learned how to use it at school I am hoping that you learned it 15 years ago, back when it was popular. > and I was > wondering if I could use it with Android

[android-developers] Android & Corba

2010-06-19 Thread Squ36
Hi all ! I just have a quick question. Is it possible to use CORBA in an Android app ? Because I learned how to use it at school, and I was wondering if I could use it with Android to create multi-users applications/games without using a server... I searched Google and the Groups, but I got nothin

[android-developers] Re: Using barcode scanner as input method?

2010-06-19 Thread brucko
> Do not tell me I have to develop an application from scratch > to get this... OK. I wont :) ... and you don't. You can launch the barcode app with an Intent using startActivityForResult(). You will get back a result with Extras that will have the barcode content - and also I believe the barcod

Re: [android-developers] file size limit on sdcard in emulator

2010-06-19 Thread berliner
I uploaded the text file for testing. Maybe it helps: http://www.reflectlife.org/model.txt Am 18.06.2010 um 22:27 schrieb David Turner: > there should not be a problem. Do you have a way to reproduce this (with > exact instructions, please). Also what does "freeze" really means here ? Is > the

回复: Re: [android-developers] Hi, anyone knows how to install python on android?

2010-06-19 Thread 铮王
Oh.I think it must there are ways to install linux apps ,but i'm so appreciate for your answer ,thanks , hope someone will help me on it... 在 2010-6-18 下午4:16,"Mark Murphy" 编写: On Wed, Jun 16, 2010 at 11:24 PM, J之道 wrote: > As the title ,I'm an absolutely n... You can't install "MySQL ,Apach

Re: [android-developers] file size limit on sdcard in emulator

2010-06-19 Thread berliner
Am 18.06.2010 um 22:27 schrieb David Turner: > there should not be a problem. Do you have a way to reproduce this (with > exact instructions, please). I have a simple text file model.txt of 40MB. "file model.txt" on the command line gives: ASCII Text, with very long lines. The command I use to p

Re: [android-developers] Best way to determine device capabilities, chipset, etc

2010-06-19 Thread Mark Murphy
On Sat, Jun 19, 2010 at 3:18 AM, Robert Green wrote: > 2)  Use a really big list of DEVICE or MODEL names and check against > that list. > Pros - It'll work > Cons - The list is already over 60 entries and is growing at an > incredible rate.  It would be very hard to keep it current and keep > all

Re: [android-developers] Newer Market Comments Disappearing?

2010-06-19 Thread YuviDroid
Or maybe the reason you don't see the comment on the phone is because of different languages. In fact, I noticed that for example if you have your phone in English (US) and you write a comment, people with a phone in Italian will not see that comment. This is kind of frustrating because the only w

[android-developers] Re: Help required for android SDK : newbie

2010-06-19 Thread Salil
I did some (re)search and could resolve the issue myself !!! .. thanks On Jun 18, 6:34 am, Salil wrote: > Hello > >   I just started my experiments in android. I am using Ubuntu 9.10. I > installed Java SDK, Eclipse and downloaded SDK from android-sdk_r06- > linux_86.tgz as fromhttp://developer

[android-developers] Re: Android Marketplace Migration Path

2010-06-19 Thread Tomáš Hubálek
Jordan, this is IMHO technically impossible or at least it does not make sense and my be even illegal. What about licenses? Tom On 18 čvn, 23:47, Jordan wrote: > As with any software it would be benficial to have an easy migration > path from the main competitor in the landscape. > > Create an

[android-developers] Hello

2010-06-19 Thread Justin Giles
http://supertablets15335.astomielo.com/ -- 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...@go

Re: [android-developers] what is the better application to implement XML program

2010-06-19 Thread Muataz aziz
thanks for your answering ,I give you more details about what I want to do best regards On Thu, Jun 17, 2010 at 5:11 PM, Frank Weiss wrote: > I suppose you are asking for a recommendation for an XML parsing > library. There are about four on Android. I mostly use org.xml.sax. > Which one i

[android-developers] Best way to determine device capabilities, chipset, etc

2010-06-19 Thread Robert Green
I have a need to classify the device on first run to set some default settings for my games. This is my first time doing this and I've already hit some snags as to how to handle such a thing. Basically I want to figure out if I can run the game with full quality everything on, which would be for