Re: [android-developers] Don't mix Ant and Eclipse!

2012-12-06 Thread moose
Kostya, could you give us some details on how you did that?

I run ant and eclipse side by side and run into issues where I need to do 
clean rebuilds in one after I had worked in the other. It can be annoying.

On Friday, May 11, 2012 5:17:09 AM UTC-4, Kostya Vasilyev wrote:

 Jacob, 

 Eclipse and Ant builds use the same working directories by default, I'm 
 sure you've already found this out. 

 Don't know about you, but it struck me as being somewhat weird when I 
 started using Ant for my projects. I made some changes to the build 
 scripts to place all Ant related files into their own directory (for me 
 it's under ant in the project directory, e.g. ant/gen, ant/bin, 
 etc.). 

 Perhaps you could do the same or file a feature request. 

 -- K 

 11.05.2012 13:02, Jacob Abrams написал: 
  
  
  If you then go ahead and build the same project with Ant in the 
  commandline, the new incremental checks in the Android Ant build 
  script will see that it is already been compiled, skip that step and 
  use these class files in the generated APK. Resulting in runtime errors. 

 -- 
 Kostya Vasilyev 



-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: WebView and geolocation questions

2011-04-24 Thread Moose
Further testing: 
Phone that already worked (with sim card) works without sim card over wifi 
(or gps?). 
Other phone does not work with or without sim card.
XOOM - still doesn't work
Got friend to install apk - they say it works on their phone as well.

gps 'in use' icon never flashes on any of the devices

I am completely baffled by this.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Connect to emulator with Putty?

2011-04-24 Thread Moose
If I ever need to edit a file, I use the terminal commands

$ adb pull /path/to/file .
*edit the file as you need to to*
$ adb push file /path/to/file

I know there is also a way you can edit a file by using 'cat' in the android 
shell, but I prefer to edit a dynamic file and replace it.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: WebView and geolocation questions

2011-04-24 Thread Moose
I just tried using phonegap as a front for it, however I have exactly the 
same problem. The test website somehow works in the firefox browser (not the 
AOSP browser though). I know firefox uses some really low level interaction 
with the hardware - I wonder if that might be why /it/ works.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] WebView and geolocation questions

2011-04-23 Thread Moose
I have been attempting for a few days now to get a webview to work with a 
location based service. Every post I can find seems to say the same thing - 
create a webchromeclient and override onGeolocationShowPrompt(). 

I have gone as far as directly creating a copy of this and running it.
Code: https://gist.github.com/886546
Web page used to test: http://www.sourcerebels.com/geo/

The web page loads everything up until Geolocation supported, and then does 
nothing.
Can someone at least test that code and tell me if they are having the same 
problem?

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: WebView and geolocation questions

2011-04-23 Thread Moose
My purpose in developing this app is to enable access to a webapp. A 
particular tool in this webapp using google maps. The webapp also needs to 
function on a browser.

I am confused by the lack of functioning samples and the unhelpful 
documentation available.

If anyone has any experience getting this to work I would appreciate the 
assistance.

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-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: WebView and geolocation questions

2011-04-23 Thread Moose
Thanks for the suggestion, I will definitely be looking into phonegap - I 
have seen it mentioned a lot lately.

I added the call to enable geolocation - the link to the sample code I 
posted isn't actually my own stuff.

It still doesn't make any sense that this functionality doesn't work as is 
though. I would really appreciate any insight into the workings of 
Goelocation. Maybe by pulling apart the phonegap source I'll be able to 
figure something out.

I'm still interested in functioning examples.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: WebView and geolocation questions

2011-04-23 Thread Moose
So I might have discovered my problem.

I borrowed a friends phone and tested my app on it. It works.
The device I had been testing it on was the motorola xoom (wifi only).

By logcat, it seems that on the phone (CM6), does make the call to 
onGeolocationPermissionsShowPrompt, while the tablet does not  (edit: and my 
old phone - also CM6 - does not make the call to 
onGeolocationPermissionsShowPrompt) .

Possibilities:
- no sim card?
  - if that is the case, can I force it to get location from wifi?
- difference in permissions required? (unlikely, because dream is running 
the same ROM - although the dream already has issues. It got thrown across 
the room and hasn't been quite the same since)

My company is planning on using the xoom with the data connection when we 
roll out, does someone own one that could test and make sure the sample 
works? I can export and sign the sample, or if you can make it from the 
source I specified at the start of the thread.
That being said - is there some explanation about why the app won't perform 
the call to onGeolocationPermissionsShowPrompt?

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Is there any example for auto Multiple Bouncing balls(more than one ball) in android

2011-04-20 Thread Moose
Best response to a question I have read today. I just rofl'd in my pants.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Is there any example for auto Multiple Bouncing balls(more than one ball) in android

2011-04-20 Thread Moose
In all seriousness though, check
 
http://developer.android.com/resources/samples/Renderscript/Balls/index.html

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Application not installed

2011-04-18 Thread Moose
It seems to me that this occurs when the application you are trying to 
install has the same package name as a built in package. You either need to 
uninstall the application already present, or change the name of the package 
in the app you are trying to install.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Geo Location and webview

2011-04-15 Thread Moose
I have a web app with a tool in it that uses google maps (the web tool, not 
the android one). On my computers web browser I test it and it works fine 
(gives a surprisingly accurate location, marked with a pin). However, when I 
try and use it in the webview within my app, it does not get a fix on my 
location or place a pin. Shortly after the map loads, I get the Location 
set by GPS notification (Android 3.0 XOOM), however closing the map tool 
and reopening it does not change the result.

I have setGeoLocation(true) and both fine and coarse permissions are enabled 
in the manifest.

I do not need the location to updated constantly, I just need it to update 
once (in the future I may wish to have it update every n minutes or 
something). I don't want to have the GPS running constantly, as that would 
be a battery drain. I have been disappointed by the lack of a supplied 
sample, and all of the tutorials I can find don't (appear) to apply to a 
webview.

Note: I do not currently have access to the source code for the webapp, 
however I do know that it uses this:
( http://code.google.com/p/geo-location-javascript/wiki/SupportedPlatforms )
I could potentially obtain the relevant code, however as the problem does 
not exist on a computer browser, or on the stock browser, I know that the 
issue is with my app.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Geo Location and webview

2011-04-15 Thread Moose
I have spent several hours now trying to figure you why this doesn't work. 
The only additional thing I have learned is that the app does seem to get 
control of a location service...

04-15 18:27:01.480: DEBUG/WifiService(114): acquireWifiLockLocked: 
WifiLock{NetworkLocationProvider type=2 
binder=android.os.BinderProxy@415997b0}
04-15 18:27:06.490: DEBUG/WifiService(114): releaseWifiLockLocked: 
WifiLock{NetworkLocationProvider type=2 
binder=android.os.BinderProxy@415997b0}

But does not place the pin appropriately.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Emulator is crashing a lot

2011-04-13 Thread Moose
I am having a similar problem with the 3.0 emulator. What resolution did you 
set.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Compiling Android Source

2011-04-13 Thread Moose
Deleting the gen folder in the application's directory should clear up the 
duplicate class errors. Not sure about the SearchManager.SOURCE though. 
Looks like it doesn't exist...

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to enable / disable Bluetooth

2009-01-29 Thread moose

use the getString or the putString method instead and then convert to
a boolean or integer.  I am having a problem myself.  doing a
getstring of this property always returns 1 whether the blue tooth
is on or not.

Anybody else see this behavoir?  Anyone have a solution to finding out
if the bluetooth is powered on or not? Am I missing some permissions?
The only permission i am currently using is
android.permission.WRITE_SETTINGS. Below is my code...

String bluetoothEn = android.provider.Settings.System.getString
(getContentResolver(), android.provider.Settings.System.BLUETOOTH_ON);
boolean blueToothEn = (bluetoothEn.equals(1));

On Jan 8, 10:42 pm, bendavis78 bendavi...@gmail.com wrote:
 Hi,  did you ever figure out how to do this?

 On Dec 1 2008, 8:18 pm, RM rick.manc...@gmail.com wrote:

  Hi folks,

  I'm writing an app that will, among other things, disable Bluetooth.
  To do this, I've set the android.permission.BLUETOOTH_ADMIN, and
  inside an onClick() listener I'm using the following:

Settings.System.putInt(getContentResolver(),
  Settings.System.BLUETOOTH_ON, 0);

  However, this does nothing on the actual phone.

  Further, using the corresponding getInt() function to readback the
  status crashes the app:

Settings.System.getInt(PowerProfile.this.getContentResolver(),
  Settings.System.BLUETOOTH_ON, btStatus);

  Can someone guide me as to what is wrong, and/or what is the proper
  way to enable/disable Bluetooth?

  Many thanks,
  RM

--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android.provider.Settings.System

2009-01-29 Thread moose


use the getString and putString method instead.  below is my code, but
I am having a problem that it always returns 1 (enabled) whether or
not the bluetooth is on...

 String bluetoothEn =
android.provider.Settings.System.getString(getContentResolver(),
android.provider.Settings.System.BLUETOOTH_ON);
 boolean blueToothEn = (bluetoothEn.equals(1));

On Jan 23, 4:30 pm, MaxImUmZ pvlinema...@gmail.com wrote:
 Use the WifiManager with getWifiEnabled and setWifiEnabled to do it
 for the wifi.  I have not found a way to do it for the bluetooth yet
 but only been working at it about an hour now

 On Dec 8 2008, 9:39 pm, Kah-Neth kylewe...@gmail.com wrote:

  I am trying to use android.provider.Settings.System.getInt and putInt
  to enable and disable bluetooth and enable/disable wifi as follows
  android.provider.Settings.System.putInt(getContentResolver(),
  android.provider.Settings.System.BLUETOOTH_ON,
  enable);android.provider.Settings.System.putInt(getContentResolver(),
  android.provider.Settings.System.WIFI_ON, enable);
  However this does not seem to be working, does anyone have some advice
  on how I should do this.

--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---