[android-developers] Re: Cancel In App Purchase (V3)

2016-10-27 Thread Colin Gordon
I've been pushing new versions to Beta, but the IAP is still active.  Now, 
I'm just changing the version code and not the version name... I'll try 
changing the name.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/1e93f1ae-1fda-411b-8622-0342a8889273%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Cancel In App Purchase (V3)

2016-10-27 Thread Colin Gordon
How do I go about cancelling a purchase on a beta build of my app?  I can 
clear the local cache, but that will update with the Google Play Billing 
server and my purchase will be 'restored' to the device.  I want to be able 
to test the purchase code more than once, and would rather not modify the 
code to consume the purchase.

The following is the only Google documentation on the subject:

*Google Play accumulates completed test purchases for each user but does 
not pass them on to financial processing. In some cases, you might want to 
manually cancel a test purchase to continue testing. To do so, open the app 
page in the Play Store. If the test purchase that you want to cancel is a 
subscription, you can also use the cancel() method of the 
Purchases.subscriptions API. Important: The refund() and revoke() methods 
of the Purchases.subscriptions API don't support test purchases.*

The app page in the Play Store appears to have no way to cancel a test 
purchase...

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/24086b37-a15e-469e-b0f0-37efe06650d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] debug android app on chromebook

2016-06-29 Thread Colin Maroney

I have an android app that works on the chromebook flip when using arc 
welder to install and run it. However, when I download the current version 
from the play store, or sideload the current dev version by copying over 
the apk, the app doesn't run. I get the splash screen and then a white 
screen and nothing happens.

I tried using chrome on the chromebook and doing chrome://inspect/#devices 
and chrome://inspect/#apps but i don't see my running app in either place. 
(The app is mostly a webview wrapping a JS application, so this is 
typically how I debug it). I also tried using the android chrome browser 
and also do not see my app there. I am not sure where to find the 
application logs, although I did try looking at the various system logs. 
The chromebook is in developer mode so I can get a shell and look around, 
but I couldn't find an app log. adb devices does not show my app, and adb 
logcat doesn't show anything either.

Anyone know how to debug a webview app on the chromebook?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/3bda4b8f-f36f-4437-a228-459f5554688d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] I have an APP with 2 functions not working

2016-01-21 Thread Colin Wilkinson
Hi I have created a simple informative APP using a 3rd party ibuildapp.com 
The cctvbuddy.apk worked fine on my phone before I uploaded it to google 
play 
but now when I download it from the store 2 buttons dont work.
One is a link to a few youtube videos and the other a simple contacts page.
Is it possible that the .apk got corrupted by the upload to google play?
or is it more likely to be a problem with ibuildapp?
I am in talks with ibuildapp as well

Thanks Colin

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/99e75947-5260-4645-b92a-5308510a4192%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: SdkController app

2015-12-10 Thread colin
Hi.

Wow.  I'm surprised to see this topic revived after so long!

I can't offer very much help; I haven't looked at this since the time of my 
original post.  In fact I haven't really done much Android work at all.  
Given the pace of change in the Android world, I'm surprised this tool is 
still available in its original form.

It's interesting to learn that you had the same issue as me but on a Mac; 
 makes me wonder what was actually being shown at Google I/O.

I'm struggling to remember exactly what I found once I got over the initial 
connectivity hurdle.  I was mainly interested in sensor emulation, and I 
think one of the disappointing things I found was that not all sensor 
events were included.

Regarding the multitouch and display aspects, I think I may have had 
similar problems to you, but my memory is very hazy.  Possibly the issue is 
a mismatch between the portrait/landscape orientations of the phone and the 
emulator.  You could try disabling auto-rotate on your phone (and maybe you 
also need to make sure that the resolution and default orientation of the 
emulator matches that of your phone).

Sorry I can't be more helpful.  Please do report back if you make any 
progress.


On Wednesday, December 9, 2015 at 10:11:35 PM UTC, Vel Asta wrote:

> Hello Colin, an update. The debug output I get from the emulator when 
> running your approach to the SDK (I see the emulator on my connected 
> Samsung device and the multi-touch goes through as I can see in the debug 
> in the correct coordinates. 
>
> ---> Below I clicked the Menu button and then the top right, top left, 
> bottom left, bottom right and then two fingers in the middle to get the 
> output below.
> ---> seems to be going through very nicely but on the screen it shows at 
> different parts. I can click on the top Google search and that works. Seems 
> there is an error with RESOLUTION like as if the EMULATOR reads correctly 
> but INPUTS the coordinates wrong. 
>
> PS: using a Mac but same results on a Windows 8,9 or 10. 
>
> ::
>
> $ ./emulator -avd ta1 -debug sensors_port,mtport,sdkctlsocket -screen 
> multi-touch
>
>
> Pavels-MacBook-Pro:tools Pavel$ ./emulator -avd ta1 -debug 
> sensors_port,mtport,sdkctlsocket -screen multi-touch
>
> HAXM is working and emulator runs in fast virt mode
>
> emulator: emulator window was out of view and was recentered
>
>
> emulator: UpdateChecker: skipped version check
>
> emulator: SDKCtl sensors: Socket is connected.
>
> emulator: SDKCtl sensors: Sending endianness: 0
>
> emulator: SDKCtl multi-touch: Socket is connected.
>
> emulator: SDKCtl multi-touch: Sending endianness: 0
>
> emulator: SDKCtl sensors: Sending handshake query...
>
> emulator: SDKCtl multi-touch: Sending handshake query...
>
> emulator: SDKCtl multi-touch: Handshake succeeded. Port is connected
>
> emulator: Multi-touch: Handshake succeeded with connected port.
>
> emulator: Multi-touch: SDK Controller is connected
>
> emulator: Multi-touch: SDK Controller port is enabled.
>
> emulator: SDKCtl sensors: Handshake succeeded. Port is connected
>
> emulator: Sensors: SDK Controller has succeeded handshake, and port is 
> connected.
>
> emulator: Sensors: SDK Controller is connected.
>
> emulator: Sensors: Emulation has been started.
>
> emulator: Sensors: SDK Controller is enabled.
>
> emulator: Sensors: Sensor list received with 10 sensors.
>
> emulator: Sensors: Sensor 'light' is not support by emulator
>
> emulator: Sensors: Emulated sensor 'proximity': Device id = 8, Emulator id 
> = 4
>
> emulator: Sensors: Sensor 'pressure' is not support by emulator
>
> emulator: Sensors: Sensor 'gyroscope' is not support by emulator
>
> emulator: Sensors: Emulated sensor 'acceleration': Device id = 1, Emulator 
> id = 0
>
> emulator: Sensors: Emulated sensor 'magnetic-field': Device id = 2, 
> Emulator id = 1
>
> emulator: Sensors: Emulated sensor 'orientation': Device id = 3, Emulator 
> id = 2
>
> emulator: Sensors: Sensor 'rotation' is not support by emulator
>
> emulator: Sensors: Sensor 'linear-acceleration' is not support by emulator
>
> emulator: Sensors: Sensor 'gravity' is not support by emulator
>
> emulator: Sensors: Emulating 4 sensors
>
> emulator: Sensors: Sensor 'proximity' is enabled on SDK controller.
>
> emulator: Sensors: Sensor 'acceleration' is enabled on SDK controller.
>
> emulator: Sensors: Sensor 'magnetic-field' is enabled on SDK controller.
>
> emulator: Sensors: Sensor 'orientation' is enabled on SDK controller.
>
> emulator: Sensors: Emulation has been started.
>
> emulator: Multi-touch: compressing 16320 bytes frame buffer
>
> emulator: Multi-touch: Sent 1446 bytes in framebuffer update. Co

Re: [android-developers] looking for HTML5 and javascript based sdk....

2014-05-11 Thread Colin M
Some operations are faster in Java these days, _most_ are functionally 
equal, and a few special cases (not relevant to most developers), C++ is a 
better choice.  Making the blanket Java is slow statement is just 
factually wrong today.  Can we move on from 1992, please?

I'd add to your last statement and say:

Write it in the supported platform and verify your assumptions that it is 
too slow, then see how you can optimize from there on that platform, and 
then if all that fails, try something custom.

http://c2.com/cgi/wiki?PrematureOptimization

On Sunday, May 11, 2014 7:40:37 AM UTC-7, Larry Meadors wrote:

 If you're thinking Java is slow on a desktop compared to c++, you're 
 right - it is. 

 But Android doesn't actually run Java. :-| 

 You write code using the Java language. It's compiled into Java bytecode. 

 That bytecode is then processed again to create Dalvik dex files for 
 Android. Dalvik is designed to be suitable for systems that are 
 constrained in terms of memory and processor speed. 

 http://en.wikipedia.org/wiki/Dalvik_(software) 

 Your question is analogous to Are trains better than boats? If you 
 need to go across a desert, a train is far superior. If you need to go 
 across an ocean...not so much. 

 If you're trying to decide which way to go, your best bet is to try 
 both and see. 

 It really depends on what you are doing. 

 Larry 


-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: looking for HTML5 and javascript based sdk....

2014-05-11 Thread Colin M
I'll ignore the unqualified claim that the slowness of Android is due to 
Java.

It sounds like your complaint is that you can't develop native apps in your 
preferred language and that you're using an outdated claim about Java to 
support your desire to change the current language of choice for Android 
development.

The XML based components can all be done via code.  Do you have an example 
of how they are far from flexible?  There are many limitations, but you 
are welcome to write your own custom Views to get around any limitations. 
 I have many of my own complaints about some of the UI system, but I have 
no reason to believe the current state of things would be faster or more 
flexible if it were in another language.  That's not the thing limiting 
flexibility or causing speed issues, that's more about the implementations. 
 I've created and seen many fast and fluid and complex UIs on Android, but 
you sometimes have to do some real work to get them and they don't always 
drop right out of the API in your lap :)  A better argument would be to 
single out issues with the UI libraries and talk about how to improve them. 
 This has little-to-nothing to do with implementation language.

On Saturday, May 10, 2014 10:50:44 AM UTC-7, 李白,字一日 wrote:

 Java-based Android is very slow and memory consuming.
 and the XML based UI components are far from flexible.

 if Android sdk provides an html5  + javascript alternative, it would 
 greatly improve the android  app possibilities.

 as we have seen more and more popular apps are written by html, css and 
 javascript.

 i think it is a good time to provide a javascript based SDK,

 with a standardized Android UI framework like Twitter's bootstrap, every 
 web developer can develope his app with ease.

 the webkit and v8 are every mature to google.

 why should we stille using java? which is slow and  memory consuming?





-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] format for progressbar drawable xml?

2013-04-23 Thread Colin Richardson
This might sound a little stupid, but where did you get this from?

I am trying to figure out how to change the colour of one of the progress 
bars at runtime when its value gets above a certain level.. I want it to be 
identical except just the colour value.

On Saturday, 4 October 2008 07:12:46 UTC+1, Jason Parekh wrote:

 Hi Allan,

 Here's an example XML drawable for the horizontal progress bar.  You could 
 set the ProgressBar.setProgressDrawable to this.

 layer-list xmlns:android=http://schemas.android.com/apk/res/android;
 
 item android:id=@android:id/background
 shape
 corners android:radius=5dip /
 gradient
 android:startColor=#ff9d9e9d
 android:centerColor=#ff5a5d5a
 android:centerY=0.75
 android:endColor=#ff747674
 android:angle=270
 /
 /shape
 /item
 
 item android:id=@android:id/secondaryProgress
 clip
 shape
 corners android:radius=5dip /
 gradient
 android:startColor=#80ffd300
 android:centerColor=#80ffb600
 android:centerY=0.75
 android:endColor=#a0ffcb00
 android:angle=270
 /
 /shape
 /clip
 /item
 
 item android:id=@android:id/progress
 clip
 shape
 corners android:radius=5dip /
 gradient
 android:startColor=#d300
 android:centerColor=#b600
 android:centerY=0.75
 android:endColor=#cb00
 android:angle=270
 /
 /shape
 /clip
 /item
 
 /layer-list




 And just for future reference, here's an example of the circular 
 indeterminate progress bar XML drawable 
 (ProgressBar.setIndeterminateDrawable):

 rotate xmlns:android=http://schemas.android.com/apk/res/android;
 android:pivotX=50% android:pivotY=50%
 android:fromDegrees=0 android:toDegrees=360
 
 shape
 android:shape=ring
 android:innerRadiusRatio=3
 android:thicknessRatio=8
 android:useLevel=false

 size
 android:width=48dip
 android:height=48dip
 /
 
 gradient
 android:type=sweep
 android:useLevel=false
 android:startColor=#4c737373
 android:centerColor=#4c737373
 android:centerY=0.50
 android:endColor=#d300
 /
 
 /shape
 
 /rotate


 On Fri, Oct 3, 2008 at 6:39 PM, Allan Hsu al...@counterpop.netjavascript:
  wrote:


 Does anybody know the proper format for declaring custom horizontal
 progressbar drawables in xml? I've searched and searched, but the only
 documentation/discussions I can find are for custom button graphics,
 which seem to work via a different system.

-Allan
 --
 Allan Hsu allan at counterpop dot net






-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: SdkController app

2013-03-25 Thread colin
Yes.  I built my own copy of the SdkController app and managed to track 
down the bug.
 
The problem was (and presumably still is) that a string in the protocol 
being sent from the emulator to the app was being corrupted with four 
leading zero bytes.  I didn't investigate the emulator code, but my 
assumption is that a struct-padding issue somewhere means that an extra 
word is being inserted into the stream of data when the emulator is 
compiled for MS Windows, but not for the Mac. (So the proper solution would 
be to track down where this is happening and process the relevant fields 
individually, rather than take the containing struct as a whole.)
 
But for my purposes, I came up with a hack in the app file 
Connection.java.  The string being corrupted is the channel name, causing 
the method getChannel() to return null -

** 

*public* Channel getChannel(String name){

*   for* (Channel channel : mChannels) {

*  if* (channel.getChannelName().equals(name)) {

* return* channel;

   }

   }

   return null;

}

 

So I added a couple of lines within the above for loop to do wildcard 
matches on the only two channels that currently exist (sensor and 
multitouch) -

 

*if* (channel.getChannelName().matches(.*sen.*) name.matches(.*sen.*) 
) {

   *return* channel;

}

*if* (channel.getChannelName().matches(.*multi.*) name.matches(
.*multi.*) ) {

   *return* channel;

}

 

Ugly, but it got things working.  

To be honest, I didn't then do much with it, so I don't know if there are 
other issues.  The fact that something so fundamental went unnoticed 
suggests there may well be. 

 

 

 
 

 

** 

** 

 

 

** 

** 

 

 

On Saturday, 23 March 2013 12:22:36 UTC, Sebioff wrote:

 Did you get it working in the meantime? This would be such an awesome 
 tool, but I can't get it working either and not many people seem to know 
 that this even exists, so it's hard to find help...

 Am Mittwoch, 14. November 2012 00:24:38 UTC+1 schrieb colin:

 Hi,
  
 Has anybody been able to get the SdkController app to work with the 
 emulator?  I found an old thread about this and tried to revive it, but I 
 don't think I will be getting a reply there - 
 https://groups.google.com/d/topic/adt-dev/TyZiFZ_Ns5Y/discussion.
  
 Given the video of it working on a Mac from Google 
 IOhttp://androiddevelopment.info/google-io-2012-whats-new-in-android-developers-tools/,
  
 I'm wondering if there is a problem with the Windows version of the 
 emulator.
  



-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: SdkController app

2012-11-18 Thread colin
I really would appreciate some help with this.
 
Here is some debug output from the emulator -
 
C:\android\adt-bundle-windows\sdk\toolsemulator -avd tab7 -debug 
sensors_port,mtport,sdkctlsocket -screen multi-touch
 
emulator: SDKCtl sensors: Socket is connected.
emulator: SDKCtl sensors: Sending endianness: 0
emulator: SDKCtl multi-touch: Socket is connected.
emulator: SDKCtl multi-touch: Sending endianness: 0
emulator: SDKCtl sensors: Sending handshake query...
emulator: SDKCtl multi-touch: Sending handshake query...
emulator: SDKCtl sensors: Handshake succeeded. Port is not connected
emulator: Sensors: SDK Controller has succeeded handshake, and port is not 
connected.
emulator: SDKCtl multi-touch: Handshake succeeded. Port is not connected
emulator: Multi-touch: Handshake succeeded with disconnected port.
 
I get the above debug output whether I wait for the emulator to start up 
before pressing one of the app's 'What you can do' buttons ('Control 
Multi-touch' or 'Control Sensors') or press one of them before invoking the 
emulator.
 
My next step would have to be to be the SdkController app from the sources 
and try and debug it it from that end, but surely I cannot be the first 
person to have gone down this road?
 

On Tuesday, 13 November 2012 23:24:38 UTC, colin wrote:

 Hi,
  
 Has anybody been able to get the SdkController app to work with the 
 emulator?  I found an old thread about this and tried to revive it, but I 
 don't think I will be getting a reply there - 
 https://groups.google.com/d/topic/adt-dev/TyZiFZ_Ns5Y/discussion.
  
 Given the video of it working on a Mac from Google 
 IOhttp://androiddevelopment.info/google-io-2012-whats-new-in-android-developers-tools/,
  
 I'm wondering if there is a problem with the Windows version of the 
 emulator.
  


-- 
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] SdkController app

2012-11-14 Thread colin
Hi,
 
Has anybody been able to get the SdkController app to work with the 
emulator?  I found an old thread about this and tried to revive it, but I 
don't think I will be getting a reply there - 
https://groups.google.com/d/topic/adt-dev/TyZiFZ_Ns5Y/discussion.
 
Given the video of it working on a Mac from Google 
IOhttp://androiddevelopment.info/google-io-2012-whats-new-in-android-developers-tools/,
 
I'm wondering if there is a problem with the Windows version of the 
emulator.
 

-- 
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: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

2012-09-18 Thread Alexei Colin
On Thursday, November 5, 2009 1:27:55 AM UTC-5, Andrew Pollock wrote:

  it turned out that 
 while I had the sun-java6-bin package installed, the alternatives 
 system was making /usr/bin/java point to the GNU Java bytecode 
 interpreter. Once I did a sudo update-alternatives --config java and 
 selected the Sun Java instead, everything started to work properly. 

This was exactly the reason in my case on Ubuntu 12.04 (I wish I saw your 
post earlier). Symptoms do not make the root cause obvious at all. Would be 
curious to see why exactly the fetch from the repositories fails under the 
GNU interpreter. 
 

-- 
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: Couldn't get connection factory client in android

2012-05-10 Thread Colin Cachia
This issue popped up for me aswell, recently.

The things I tried were:

* Generate new API key - Be sure that it is generated from the correct
Keystore that you sign your application with.
* Be sure that your project is based on Google APIs (Project 
Properties  Android)
* Also had a problem with incorrect GeoPoints which made my map gray
as you said. Debug correctly to ensure that Longitude and Latitude
values are being passed correctly.

On May 10, 2:18 am, Yogeshkumar Tiwari yogeshtiwari2...@gmail.com
wrote:
 Hi Android Champs,
            *  *                     * I got this error: 
 ERROR/MapActivity(258):
 Couldn't get connection factory client
 *                                i'm not able to see map only it shows gray
 square.
 i have tried so many things like generated a new api key and tri to run but
 problems remains the same.
 if any body have any idea so pls share.
 --
 With Regards:
 Yogesh Tiwari
 (Android Developer)

-- 
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: Access denied error while trying to install new API

2012-04-22 Thread Colin Warwick
Thanks, Uday (Dave)! Worked for me!

On Tuesday, January 3, 2012 3:15:06 PM UTC-5, Uday (Dave) wrote:

 Right click on the sdkmanager.exe file  select the option 'Run as 
 Administrator'. Your problem is solved. 

 -Dave 

 On Dec 30 2011, 11:09 pm, assefa asse...@gmail.com wrote: 
  Hi, 
  
   Not sure if this thread is still relevant but if it is, I had the 
  same issue on windows and I was able to solve it by running the 
  Android SDK Manager as Administrator. 
  
  regards, 
  
  On Dec 21, 5:15 am, Anil Jagtap anil.so...@gmail.com wrote: 
  
  
  
   This is just an try to figure out what is going on. 
   It looks like you are installing on Windows and the file which is 
   giving problem is for Linux. 
   On Linux I would have checked permissions for all the folder tree for 
   such an error. Have no slightest idea about file permissions on 
   Windows, can you check permissions on folders? 
   Cheers 
   -- 
   anil jagtap 
   Android Application Developer 
  
   On Dec 14, 4:26 pm, Uday (Dave) uday...@gmail.com wrote: 
  
Hi, I have installed the android sdk 16 on my Windows7 machine I 
 have 
installed the Android2.1 API initially without any glitch. But then 
again when I try to install the other APIs using the SDK manager, it 
gives me: 
  
Downloading SDK Platform Android 2.3.3, API 10, revision 2 
  
File not found: C:\Program Files (x86)\Android\android-sdk\temp 
\android-2.3.3_r02-linux.zip (Access is denied) 
  
Downloading Samples for SDK API 10, revision 1 
  
File not found: C:\Program Files (x86)\Android\android-sdk\temp 
\samples-2.3.3_r01-linux.zip (Access is denied) 
  
Skipping 'Google APIs by Google Inc., Android API 10, revision 2'; 
 it 
depends on 'SDK Platform Android 2.3.3, API 10, revision 2' which 
 was 
not installed. 
  
Done. Nothing was installed 
  
Thanks, 
  
Dave- Hide quoted text - 
  
  - Show quoted text -

-- 
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: Phone reboot on Home button long press

2011-09-22 Thread Colin Cachia
SOLVED - Problem was related to a large image being used as an icon
for the app

On Sep 19, 11:16 pm, Colin Cachia colin.cac...@gmail.com wrote:
 Developing my own app, however I have an issue which I cannot find any
 posts on. After running the app, long-pressing the home button on my
 phone (while in homescreen) results in a phone reboot. This issue only
 seems to happen when the debugged app is one of the latest used apps.
 Can something be done programmatically or otherwise?

-- 
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] Phone reboot on Home button long press

2011-09-19 Thread Colin Cachia
Developing my own app, however I have an issue which I cannot find any
posts on. After running the app, long-pressing the home button on my
phone (while in homescreen) results in a phone reboot. This issue only
seems to happen when the debugged app is one of the latest used apps.
Can something be done programmatically or otherwise?

-- 
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] How to load Facebook contact photos in my application

2011-09-07 Thread Colin
Hello -

I found a couple discussion on a bug that doesn't allow developers to
use Facebook photos in their apps:
(http://groups.google.com/group/android-developers/browse_thread/
thread/3024a3c78e3405ee?pli=1)
(http://stackoverflow.com/questions/2383580/android-how-do-i-load-a-
contact-photo)

Is there any update on this bug? Has anyone found a fix or workaround?

Take care,
Colin

-- 
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: PC as USB Host for Android 2.3.4

2011-07-06 Thread Colin M
It's my understanding that android-platform is for Android OS source code 
and platform development.  Do I have that wrong?  I am working with the 
Android USB Accessory feature, not modifying the platform.  My project 
requires that I work with OTS devices, so I may not even root devices, much 
less modify the platform.

The device is being put into accessory mode correctly, so yes, that is 
verified.  Also, if you look at the code in the link I provided, you can see 
that I've chosen the proper endpoint for doing bulk transfers on my 
particular device (based on a USB probe of my actual device, and have also 
tried other common endpoint addresses just in case I had the wrong idea).

I am now working with a USB probe and with wireshark on linux to capture the 
USB traffic to see if I can hunt down the issue, no luck so far.  I will 
share my results.

Thank you for your input.

-- 
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: PC as USB Host for Android 2.3.4

2011-07-06 Thread Colin M
In case anyone runs across this, the solution to get past this issue is 
posted in full on StackOverflow, however, the simple answer is close the 
device with libusb_close(handle) before reopening as an 'accessory'.  Just 
releasing the interface is not enough and libusb provides no error when 
leaving a connection to a device open that will then lock you out of I/O 
operations for a subsequent reconnection and interface claiming that succeed 
without errors.

The other thing was having to match up buffers on both sides (due to how the 
code in my sample app was set up) to see data come across.  It is only a 
sample and not a real nor optimal solution!

-- 
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] com.android.future.usb API docs?

2011-07-06 Thread Colin M
I'm going around in circles in the docs trying to get to the API docs that 
include the 2.3.4 USB stuff.  Google API doc page only has Map classes.  Do 
they not exist?

I'm trying to figure out how to have my app tell the device to go back to 
normal mode from accessory mode but the developer docs don't appear to 
mention that...

-- 
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] PC as USB Host for Android 2.3.4

2011-07-04 Thread Colin M
First, hello all!

Now my issue.  I'm trying to get basic comms over USB working between 
Android 2.3.4 devices (dev device is a Nexus One with 2.3.4 upgrade) and my 
PC has the USB Host (PC is an OSX box, but am also testing on an Ubuntu11 
box) using libusb-1.0.  I'm doing this in order to develop an communication 
API without needing actual accessories in hand, mostly.  I've detailed the 
issue in a StackOverflow post, no answers yet:

Any hints would be greatly appreciated.  Thanks!

http://stackoverflow.com/questions/6524891/android-adk-with-pc-as-usb-host-with-libusb-bulk-transfer-error

Colin

-- 
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] How to create a dpi 320 simulator

2011-03-28 Thread Colin
I create a simulator with dpi 320, however, when it runs, the DPI is
still 240? Any one know how to fix 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


[android-developers] override back button

2011-03-10 Thread Colin
Can someone help me understand how to stop the back button from
exiting out of my program?  I want it to just return to my main menu
or exit if pressed on the main menu but when I override the method it
still exits.  Here is what I currently have:

@Override
public boolean onKeyDown(int keyCode, KeyEvent event)  {
if (keyCode == KeyEvent.KEYCODE_BACK  
event.getRepeatCount()
== 0) {
if (animation.state != 1){
animation.state = 1;
return true;
}
else return false;
}

return super.onKeyDown(keyCode, event);
}

I have messed with it a little but my program is always still closes.

-- 
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: override back button

2011-03-10 Thread Colin
That is what I understood and was my intention, but it exits in all
cases.

On Mar 10, 3:16 pm, Dia lorydi3...@gmail.com wrote:
 Hello,

 Does your Back Button exit the application in both cases? When
 animation.state!=1 it should not do anything.  In the other case it should
 exit.

 From documentation:

    - If you handled the event, return true. If you want to allow the event
    to be handled by the next receiver, return false.

 Hope this helps.

 On Thu, Mar 10, 2011 at 9:54 PM, Colin colin...@gmail.com wrote:
  Can someone help me understand how to stop the back button from
  exiting out of my program?  I want it to just return to my main menu
  or exit if pressed on the main menu but when I override the method it
  still exits.  Here is what I currently have:

                 @Override
                 public boolean onKeyDown(int keyCode, KeyEvent event)  {
                     if (keyCode == KeyEvent.KEYCODE_BACK 
  event.getRepeatCount()
  == 0) {
                         if (animation.state != 1){
                                 animation.state = 1;
                                 return true;
                         }
                         else return false;
                     }

                     return super.onKeyDown(keyCode, event);
                 }

  I have messed with it a little but my program is always still closes.

  --
  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



-- 
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: override back button

2011-03-10 Thread Colin
Thanks, but how do I implement onBackPressed?  My thread extending
activity says there is no method to override.

On Mar 10, 4:50 pm, Justin Anderson magouyaw...@gmail.com wrote:
 Starting with Android 2.0 you also need to implement onBackPressed() in
 order to achieve 
 this...http://developer.android.com/reference/android/app/Activity.html#onBa...

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://sites.google.com/site/magouyaware

 On Thu, Mar 10, 2011 at 2:36 PM, TreKing treking...@gmail.com wrote:
  On Thu, Mar 10, 2011 at 1:54 PM, Colin colin...@gmail.com wrote:

   return super.onKeyDown(keyCode, event);

  The super method likely executes the default action for the given key
  press.
  The default action on the back key is to call finish() on the activity.

  -
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices

   --
  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



-- 
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: override back button

2011-03-10 Thread Colin
The super return would only be for a key besides down.  I believe
Justin is right with the onBackPressed(), I'm just not sure where or
how to do that.

On Mar 10, 8:10 pm, Miguel Morales therevolti...@gmail.com wrote:
 Well, I *think* you're using it wrong.
 Basically, onKeyDown allows you to override the default key behavior for
 whatever key is pressed.  So, if you return 'true' it means that you have
 handled the behavior.

 So, you have to provide your own code to navigate your activities/view if
 you are overriding.
 So, detect if you are in the main menu and that's the only time you'll
 return super.onKeyDown() (basically let it handle the keydown itself.)

 If it is pressed somewhere else, you have to return true and close the menu
 or whatever yourself.



 On Thu, Mar 10, 2011 at 5:02 PM, Colin colin...@gmail.com wrote:
  Thanks, but how do I implement onBackPressed?  My thread extending
  activity says there is no method to override.

  On Mar 10, 4:50 pm, Justin Anderson magouyaw...@gmail.com wrote:
   Starting with Android 2.0 you also need to implement onBackPressed() in
   order to achieve this...
 http://developer.android.com/reference/android/app/Activity.html#onBa...

   Thanks,
   Justin Anderson
   MagouyaWare Developerhttp://sites.google.com/site/magouyaware

   On Thu, Mar 10, 2011 at 2:36 PM, TreKing treking...@gmail.com wrote:
On Thu, Mar 10, 2011 at 1:54 PM, Colin colin...@gmail.com wrote:

 return super.onKeyDown(keyCode, event);

The super method likely executes the default action for the given key
press.
The default action on the back key is to call finish() on the activity.

  -
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

 --
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

  --
  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

 --
 ~ Jeremiah:9:23-24
 Android 2D MMORPG:http://solrpg.com/http://www.youtube.com/user/revoltingx

-- 
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: override back button

2011-03-10 Thread Colin
My target is 2.1, can anyone direct me to an example implementation of
onBackPressed?

On Mar 10, 8:30 pm, Miguel Morales therevolti...@gmail.com wrote:
 Well like he said you must be using 2.0+  what's your target sdk set to?
 Other than that, you're probably returning false which means your conditions
 aren't being met and you're not returning true.  You might want to add some
 logging or a breakpoint to make sure you even get to that statement.



 On Thu, Mar 10, 2011 at 5:27 PM, Colin colin...@gmail.com wrote:
  The super return would only be for a key besides down.  I believe
  Justin is right with the onBackPressed(), I'm just not sure where or
  how to do that.

  On Mar 10, 8:10 pm, Miguel Morales therevolti...@gmail.com wrote:
   Well, I *think* you're using it wrong.
   Basically, onKeyDown allows you to override the default key behavior for
   whatever key is pressed.  So, if you return 'true' it means that you have
   handled the behavior.

   So, you have to provide your own code to navigate your activities/view if
   you are overriding.
   So, detect if you are in the main menu and that's the only time you'll
   return super.onKeyDown() (basically let it handle the keydown itself.)

   If it is pressed somewhere else, you have to return true and close the
  menu
   or whatever yourself.

   On Thu, Mar 10, 2011 at 5:02 PM, Colin colin...@gmail.com wrote:
Thanks, but how do I implement onBackPressed?  My thread extending
activity says there is no method to override.

On Mar 10, 4:50 pm, Justin Anderson magouyaw...@gmail.com wrote:
 Starting with Android 2.0 you also need to implement onBackPressed()
  in
 order to achieve this...
   http://developer.android.com/reference/android/app/Activity.html#onBa.
  ..

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://sites.google.com/site/magouyaware

 On Thu, Mar 10, 2011 at 2:36 PM, TreKing treking...@gmail.com
  wrote:
  On Thu, Mar 10, 2011 at 1:54 PM, Colin colin...@gmail.com wrote:

   return super.onKeyDown(keyCode, event);

  The super method likely executes the default action for the given
  key
  press.
  The default action on the back key is to call finish() on the
  activity.

  -
  TreKing http://sites.google.com/site/rezmobileapps/treking -
  Chicago
  transit tracking app for Android-powered devices

   --
  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

--
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

   --
   ~ Jeremiah:9:23-24
   Android 2D MMORPG:
 http://solrpg.com/http://www.youtube.com/user/revoltingx

  --
  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

 --
 ~ Jeremiah:9:23-24
 Android 2D MMORPG:http://solrpg.com/http://www.youtube.com/user/revoltingx

-- 
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: override back button

2011-03-10 Thread Colin
Thanks.  I tried this but my class extending activity but it doesn't
have a method to Override.  Not sure what I am doing wrong or where
this would go.  The setup of my project came from this (http://
mobile.dzone.com/articles/beginning-android-game) if anyone can look.

On Mar 10, 11:12 pm, Justin Anderson magouyaw...@gmail.com wrote:
 @Override
 public void onBackPressed()
 {
     //Do whatever you need to in here...
     //To quit call super.onBackPressed() or call finish()

 }

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://sites.google.com/site/magouyaware

 On Thu, Mar 10, 2011 at 7:11 PM, Miguel Morales 
 therevolti...@gmail.comwrote:

  Ah, yeah then seems that onBackPressed needs to be called.  I've never used
  it myself so I can't be of much help there.

  On Thu, Mar 10, 2011 at 5:44 PM, Colin colin...@gmail.com wrote:

  My target is 2.1, can anyone direct me to an example implementation of
  onBackPressed?

  On Mar 10, 8:30 pm, Miguel Morales therevolti...@gmail.com wrote:
   Well like he said you must be using 2.0+  what's your target sdk set to?
   Other than that, you're probably returning false which means your
  conditions
   aren't being met and you're not returning true.  You might want to add
  some
   logging or a breakpoint to make sure you even get to that statement.

   On Thu, Mar 10, 2011 at 5:27 PM, Colin colin...@gmail.com wrote:
The super return would only be for a key besides down.  I believe
Justin is right with the onBackPressed(), I'm just not sure where or
how to do that.

On Mar 10, 8:10 pm, Miguel Morales therevolti...@gmail.com wrote:
 Well, I *think* you're using it wrong.
 Basically, onKeyDown allows you to override the default key behavior
  for
 whatever key is pressed.  So, if you return 'true' it means that you
  have
 handled the behavior.

 So, you have to provide your own code to navigate your
  activities/view if
 you are overriding.
 So, detect if you are in the main menu and that's the only time
  you'll
 return super.onKeyDown() (basically let it handle the keydown
  itself.)

 If it is pressed somewhere else, you have to return true and close
  the
menu
 or whatever yourself.

 On Thu, Mar 10, 2011 at 5:02 PM, Colin colin...@gmail.com wrote:
  Thanks, but how do I implement onBackPressed?  My thread extending
  activity says there is no method to override.

  On Mar 10, 4:50 pm, Justin Anderson magouyaw...@gmail.com
  wrote:
   Starting with Android 2.0 you also need to implement
  onBackPressed()
in
   order to achieve this...

 http://developer.android.com/reference/android/app/Activity.html#onBa.
..

   Thanks,
   Justin Anderson
   MagouyaWare Developerhttp://sites.google.com/site/magouyaware

   On Thu, Mar 10, 2011 at 2:36 PM, TreKing treking...@gmail.com
wrote:
On Thu, Mar 10, 2011 at 1:54 PM, Colin colin...@gmail.com
  wrote:

 return super.onKeyDown(keyCode, event);

The super method likely executes the default action for the
  given
key
press.
The default action on the back key is to call finish() on the
activity.

  -
TreKing http://sites.google.com/site/rezmobileapps/treking
  -
Chicago
transit tracking app for Android-powered devices

 --
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

  --
  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

 --
 ~ Jeremiah:9:23-24
 Android 2D MMORPG:
   http://solrpg.com/http://www.youtube.com/user/revoltingx

--
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

   --
   ~ Jeremiah:9:23-24
   Android 2D MMORPG:
 http://solrpg.com/http://www.youtube.com/user/revoltingx

  --
  You received this message because you are subscribed to the Google

[android-developers] Re: override back button

2011-03-10 Thread Colin
Yep, doesn't know what method to Override.

On Mar 10, 11:57 pm, Justin Anderson magouyaw...@gmail.com wrote:
 So you put the onBackPressed() method in the AndroidTutorial class?

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://sites.google.com/site/magouyaware

 On Thu, Mar 10, 2011 at 9:49 PM, Colin colin...@gmail.com wrote:
  Thanks.  I tried this but my class extending activity but it doesn't
  have a method to Override.  Not sure what I am doing wrong or where
  this would go.  The setup of my project came from this (http://
  mobile.dzone.com/articles/beginning-android-game) if anyone can look.

  On Mar 10, 11:12 pm, Justin Anderson magouyaw...@gmail.com wrote:
   @Override
   public void onBackPressed()
   {
       //Do whatever you need to in here...
       //To quit call super.onBackPressed() or call finish()

   }

   Thanks,
   Justin Anderson
   MagouyaWare Developerhttp://sites.google.com/site/magouyaware

   On Thu, Mar 10, 2011 at 7:11 PM, Miguel Morales therevolti...@gmail.com
  wrote:

Ah, yeah then seems that onBackPressed needs to be called.  I've never
  used
it myself so I can't be of much help there.

On Thu, Mar 10, 2011 at 5:44 PM, Colin colin...@gmail.com wrote:

My target is 2.1, can anyone direct me to an example implementation of
onBackPressed?

On Mar 10, 8:30 pm, Miguel Morales therevolti...@gmail.com wrote:
 Well like he said you must be using 2.0+  what's your target sdk set
  to?
 Other than that, you're probably returning false which means your
conditions
 aren't being met and you're not returning true.  You might want to
  add
some
 logging or a breakpoint to make sure you even get to that statement.

 On Thu, Mar 10, 2011 at 5:27 PM, Colin colin...@gmail.com wrote:
  The super return would only be for a key besides down.  I believe
  Justin is right with the onBackPressed(), I'm just not sure where
  or
  how to do that.

  On Mar 10, 8:10 pm, Miguel Morales therevolti...@gmail.com
  wrote:
   Well, I *think* you're using it wrong.
   Basically, onKeyDown allows you to override the default key
  behavior
for
   whatever key is pressed.  So, if you return 'true' it means that
  you
have
   handled the behavior.

   So, you have to provide your own code to navigate your
activities/view if
   you are overriding.
   So, detect if you are in the main menu and that's the only time
you'll
   return super.onKeyDown() (basically let it handle the keydown
itself.)

   If it is pressed somewhere else, you have to return true and
  close
the
  menu
   or whatever yourself.

   On Thu, Mar 10, 2011 at 5:02 PM, Colin colin...@gmail.com
  wrote:
Thanks, but how do I implement onBackPressed?  My thread
  extending
activity says there is no method to override.

On Mar 10, 4:50 pm, Justin Anderson magouyaw...@gmail.com
wrote:
 Starting with Android 2.0 you also need to implement
onBackPressed()
  in
 order to achieve this...

   http://developer.android.com/reference/android/app/Activity.html#onBa.
  ..

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://
  sites.google.com/site/magouyaware

 On Thu, Mar 10, 2011 at 2:36 PM, TreKing 
  treking...@gmail.com
  wrote:
  On Thu, Mar 10, 2011 at 1:54 PM, Colin 
  colin...@gmail.com
wrote:

   return super.onKeyDown(keyCode, event);

  The super method likely executes the default action for
  the
given
  key
  press.
  The default action on the back key is to call finish() on
  the
  activity.

  -
  TreKing 
 http://sites.google.com/site/rezmobileapps/treking
-
  Chicago
  transit tracking app for Android-powered devices

   --
  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

--
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

   --
   ~ Jeremiah:9:23-24
   Android 2D MMORPG:
 http://solrpg.com/http://www.youtube.com/user/revoltingx

[android-developers] resolutions and scaling

2011-03-09 Thread Colin
I've read some guide and tried for a while to understand how to set up
my game to scale to different resolutions but my Atrix always shows
more of the screen than smaller resolution emulators.  How do I make
sure that the smaller resolutions are scaling down or the Atrix is
scaling up so that I only have to design for one resolution?

-- 
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: Bring the app to foreground

2010-12-10 Thread Colin W
I don't believe that android allows this.
It is rather naughty of an app to force itself to the front.
It should put a notification into the status bar and let the user
decide - he/she may be dialling a number when it happens, very annoying!

-- 
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] Bug/Issue tracker a joke!

2010-06-07 Thread Colin
I find astounding, rude and arrogant the complete disregard with which
Google treats people attempting to access help on the tracker.

Thread after thread - even ones that are 18+ months old, with 400+
posts and nearly 1000 stars, have gone completely unanswered - look at
the Wifi/Proxy issue for instance, or the Gapless audio, or even the
3g-to-WiFi switching issues that has many hundreds of posts and only
towards the end is there even a luke-warm response from Google! But no
ownership or actual interest.

Most of the tickets are still, perversely, marked as New even after a
year of people begging, pleading, demanding solutions!! No owner
allocated.

I could understand if somehow the development resources available to
the world's fastest growing and probably most successful mobile OS
were limited - but given the fanfare, hype, etc from Google, that
seems unlikely. But the VERY LEAST someone could do is respond to
these poor bastards, and acknowledge their pain, even if it is just to
say we are too busy to address this right now.

But no, the response is, no response. Deafening silence. The rudeness
and arrogance is mindboggling!! Where the hell are your customer
service skills?

-- 
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.FONT_SCALE -- Does this do anything (Android 2.0)?

2009-11-13 Thread Colin Brash
Thank you, that makes a lot more sense!

Colin

-- 
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] android.provider.Settings.System.FONT_SCALE -- Does this do anything (Android 2.0)?

2009-11-12 Thread Colin Brash
I've been playing around on Android 2.0 trying to globally change font
sizes.  I call the following:

Settings.System.putString(getContentResolver(),
Settings.System.FONT_SCALE, scale);

This does change FONT_SCALE, but the changed value seems to have no
effect on the system.

What does this actually do (if anything)?

Thanks,
Colin

-- 
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] Developer devices available in other regions?

2009-06-09 Thread Colin Charles
Hi!

There is definitely interest in getting Android developer devices here in
Malaysia, but shipping to this country is apparently not available. About
400km south though, from the capital of Malaysia, I can reach Singapore, and
shipping there, is apparently not a problem. When do you reckon we'll see
shipping for Malaysia?

In the event that the reason developer devices aren't for sale, because you
can't find consumer devices, last Friday, the first consumer device
launched: the HTC Magic. I guess this is better than the G1, but it also
costs a lot more for the average developer to pick up (~USD370 more than the
developer device).

Any leads to this, will be greatly appreciated.

Thanks and Kind Regards
-c

--
Colin Charles, http://bytebot.net/blog/
First they ignore you, then they laugh at you, then they fight you, then
you win. -- Mohandas Gandhi

--~--~-~--~~~---~--~~
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] Developer devices available in other regions?

2009-06-09 Thread Colin Charles

Hi!

There is definitely interest in getting Android developer devices here
in Malaysia, but shipping to this country is apparently not available.
About 400km south though, from the capital of Malaysia, I can reach
Singapore, and shipping there, is apparently not a problem. When do
you reckon we'll see shipping for Malaysia?

In the event that the reason developer devices aren't for sale,
because you can't find consumer devices, last Friday, the first
consumer device launched: the HTC Magic. I guess this is better than
the G1, but it also costs a lot more for the average developer to pick
up (~USD370 more than the developer device).

Any leads to this, will be greatly appreciated.

Thanks and Kind Regards
-c

--~--~-~--~~~---~--~~
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: Developer devices available in other regions?

2009-06-09 Thread Colin Charles
It would be a lot better if Google did this officially. Limiting the device
to certain countries, seems, short-sighted at best.

On Wed, Jun 10, 2009 at 7:13 AM, Eric Wong (hdmp4.com) ericwon...@gmail.com
 wrote:


 Buy a 2nd hand G1 elsewhere, e.g. ebay.

 Eric


-- 
Colin Charles, http://bytebot.net/blog/
First they ignore you, then they laugh at you, then they fight you, then
you win. -- Mohandas Gandhi

--~--~-~--~~~---~--~~
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: Music EQ

2009-06-01 Thread Colin

U, no?

On Jun 1, 6:17 am, hina naz hinana...@gmail.com wrote:
 *visit my site and earn more money**  *

 *http://latesttechnologyinfo.com/*

 *  http://latesttechnologyinfo.com/*

 *  http://latesttechnologyinfo.com/*

 *  http://latesttechnologyinfo.com/*

 *  http://latesttechnologyinfo.com/*

 *  http://latesttechnologyinfo.com/ *

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



[android-developers] Music EQ

2009-05-31 Thread Colin

i was wondering if you guys had any plan on implementing an equalizer
for the android music player. if not, would you guys take it as an
open source submission ? i understand what kind of work it would take,
but it should be very doable.
--~--~-~--~~~---~--~~
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] Interested in making core revision to IM for Groupwise Messenger support (got permission from novell)

2009-04-20 Thread Colin

I'm planning to introduce protocol support for Groupwise Messenger to
android IM through a core revision. I have permission to use the
protocol from Novell (GPL compliant) and needed to confirm with google
devs that this would be ok, and I also had a few questions regarding
how to use the IM plugin interface in the android source.
--~--~-~--~~~---~--~~
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] (To Google devs)Using the IM plugin class

2009-03-27 Thread Colin

I would like to use the IM plugin class thats included in the Android
source, but it is not SDK friendly. I am happy to submit the revisions
required, but I don't really know what to change. It requires access
to the non-api android.im tree and UID sharing with android.uid.im.
I'm stumped, but I'd really like to implement this. Is it better to
just to submit an official revision?
--~--~-~--~~~---~--~~
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] Unreproduceable error on my market app. Can any devs test, possibly do a logcat to get the error?

2009-03-11 Thread Colin

The application is PinPoint Locations, it is available on the Market.
People keep getting force close but I cannot reproduce the same error!
Can anyone help?
--~--~-~--~~~---~--~~
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] Attn: Android Engineers. Feature request

2009-03-11 Thread Colin

There may be issues with this, but I have run into problems developing
for android that could easily be solved by this:

Maybe add an option in your manifest that stats that youd like to give
customers the option to send bug reports to the developer on
application crash. This way if the customer consents, the system can
just compose an email with the last hundred or so lines of the the log
(similar to 'logcat E:*' or whatever).
--~--~-~--~~~---~--~~
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: PreferenceActivity with blur behind?

2009-02-11 Thread Colin

Im also interested in learning how to do this... any ideas?

On Dec 21 2008, 7:25 pm, Ralf ralfo...@gmail.com wrote:
 I'm trying to use a PreferenceActivity with prefs inflated from XML
 and at the same time I'd like the window to blur whatever was behind
 (i.e. my previous activity where I invoked the settings from.) I tried
 something like this below but the background is always black (or
 whatever color I select) without any blur/transparency.

 Is it possible? what am I doing wrong?

 public class PrefsActivity extends PreferenceActivity {

     @Override
         protected void onCreate(Bundle savedInstanceState) {
         // Have the system blur any windows behind this one.
         getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
                 WindowManager.LayoutParams.FLAG_BLUR_BEHIND);

                 super.onCreate(savedInstanceState);

                 setTitle(R.string.prefs_title);
                 addPreferencesFromResource(R.xml.prefs);

             View content = findViewById(android.R.id.content);
             content.setBackgroundColor(0x7F00);

             getListView().setBackgroundColor(0x7F00);
             getListView().setCacheColorHint(0x7F00);
         }

 }

 R/

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---