Re: [android-developers] Convert a view (layout) to a Bitmap

2012-11-18 Thread Piren
Holy fuck dude... you should really google his name...

On Saturday, November 17, 2012 10:18:27 PM UTC+2, Justin Buser wrote:
>
> I don't understand why I keep finding different posts by you 
> about forcing  layout passes.  The View instance this person is referring 
> would never go through a layout pass, regardless of the point at which his 
> code was executed for several reasons, most notably because it's never even 
> added to the display list. Additionally, even if it *was* added to the 
> Window correctly, calling layout() would not "force the layout", you would 
> call forceLayout() for that but even that would be pointless because the 
> View doesn't have a layout assigned to it or even have anything to layout 
> in the first place.
>
> The truly aggravating thing however is the fact that neither the question 
> itself, nor the *actual* answer ever have anything to do with "forcing 
> layouts". Do you understand that when other people come across 
> invalid/irrelevant information like this and believe it (if not because you 
> claim to be a developer then simply because they don't know any better) 
> then it's no longer a forgivable case of simply being wrong about 
> something. At that point you are responsible for every adverse reaction 
> your bad information results in. Every application crash/exception 
> thrown/hour lost/dead kitten/etc... that occurs when someone tries your 
> solution and it doesn't work is on your head.
>
> As a human being you should feel morally obligated to not present anything 
> as fact unless you are 100% confident that it is indeed so. At the very 
> least you should have first hand experience as it pertains to the 
> information you are providing and if not then test / verify it before hand. 
> Although each individual  failure in this may seem relatively 
> insignificant, the aggregate result will ultimately have a negative impact 
> on our evolutionary progress as a species. As far fetched as you may find 
> this to be the vast multitude of problems that threaten our very existence 
> are at some level caused by ignorance, as such it should not be taken 
> lightly at *any* level.
>
> On Monday, November 17, 2008 11:20:41 AM UTC-5, Romain Guy wrote:
>>
>> Hi, 
>>
>> If you do this in onCreate(), then the View didn't go through a layout 
>> pass yet, so its size is null (0 by 0 pixels.) You need to either wait 
>> for the first layout, or force the layout by calling layout() on the 
>> View. 
>>
>> On Mon, Nov 17, 2008 at 2:34 AM, Jose Cortes  wrote: 
>> > 
>> > Hello everybody. 
>> > 
>> > I am working with OpenGL and Android, and I was wondering if there is 
>> > any way to create a Bitmap or a Drawable using a view (layout). The 
>> > purpose is to use this Bitmap as Texture for an OpenGL figure. 
>> > 
>> > All I have untill now is: 
>> > 
>> > ** I create a new view from the context and the Id. 
>> > 
>> > View l = new View(context); 
>> > 
>> > l.findViewById(R.layout.main); 
>> > 
>> > ** I used DrawingCache...but dont know if it is well used: 
>> > 
>> > l.setDrawingCacheEnabled(true); 
>> > 
>> > Bitmap bmp = l.getDrawingCache(); 
>> > 
>> > this bmp is null... 
>> > 
>> > 
>> > Any idea? 
>> > 
>> > Thanks 
>> > > 
>> > 
>>
>>
>>
>> -- 
>> Romain Guy 
>> www.curious-creature.org 
>>
>

-- 
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: Tabs in Android Tab Host

2012-11-18 Thread Piren
There's no real limit. If the text doesn't fit, just provide your own view 
for the tabs themselves. I found early on that doing your own custom layout 
works much better anyway.


On Friday, November 16, 2012 10:16:59 PM UTC+2, Anand wrote:
>
> I have an application that uses custom tab layout with 5 tabs. I am having 
> problems displaying these tabs with text appropriately in some smaller 
> devices. Is the Google recommended limit for tabs in a tab host 4 tabs. 
>
> This is what this post in stackoverflow suggests
>
>
> http://stackoverflow.com/questions/7309324/maximum-number-of-tabs-color-of-line-under-tabs
>
> But is there any official documentation from google that says so?
>
>

-- 
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 can not display twitter page

2012-11-18 Thread Piren
Webviews support redirecting without an issue. 
other than the suggestions on StackOverflow, i'd also check SSL certificate 
exception (i recall getting one on android versions below 2.3.3)

To verify you could either use the proper handler to catch those or just 
open the link in your native browser and see if it asks you to authorize 
the certificate (if it does, it means it will cause the failure in the 
webview). 

On Friday, July 29, 2011 1:05:10 PM UTC+3, Ethan Gao wrote:
>
>I am developing an app with twitter sharing feature. User can 
> share information via twitter. After user click the twitter image in 
> app view, a webView is brought up with a twitter share url. But the 
> webview is always a blank page. 
> Only twitter url does not work, facebook url works very well. It 
> looks like webview does not support redirecting, right? 
>
> PS: I've set the javascript enable of webview, still do not work 
> for twitter share url.

-- 
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: Network error IOException while trying to Sync Data From SQL Server

2012-11-18 Thread Andrew Mackenzie
Have you tried the loop back address for the PC 10.0.2.2 from your Android 
device?

-- 
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 In App Billing opening in foreground

2012-11-18 Thread AlphaBeta
bump. Does anyone need additional information?

On Saturday, November 17, 2012 3:40:51 AM UTC-8, AlphaBeta wrote:
>
> Hi guys, I have in app billing working and it is copied from the Android 
> Sample.
> The problem is, I am opening the application from a screen class I created 
> but I have the context of the original context passed to the screen class. 
> When I request a purchase with in app billing it exits out to the 
> foreground. I have read the docs and made sure that launchMode is not 
> singletop and also that the launching of the pendingIntent is from an 
> activityContext and not an application context. What gives?
>
> I have tried implementing this on a separate activity and it opens fine on 
> that activity without exiting the application but once I implement it on 
> the class screen it exits to the foreground.
>
> I guess what I am trying to accomplish is for the game to resume instead 
> of the application finishing when in app billing purchases are done.
>
> Heres some code from my screen class
> http://pastebin.com/df1mupwH
>
>

-- 
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] Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag

2012-11-18 Thread Francisco Marzoa

Hi,

I am getting many reports of crashes with this error condition:

android.util.AndroidRuntimeException: Calling startActivity() from 
outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. 
Is this really what you want?


The problem is that the reported stack does not made reference to any 
line on my own code:


0 android.util.AndroidRuntimeException: Calling startActivity() from 
outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. 
Is this really what you want?

1 at android.app.ContextImpl.startActivity(ContextImpl.java:618)
2 at android.content.ContextWrapper.startActivity(ContextWrapper.java:258)
3 at 
android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:236)

4 at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:331)
5 at android.os.Handler.dispatchMessage(Handler.java:99)
6 at android.os.Looper.loop(Looper.java:123)
7 at android.app.ActivityThread.main(ActivityThread.java:3652)
8 at java.lang.reflect.Method.invokeNative(Native Method)
9 at java.lang.reflect.Method.invoke(Method.java:507)
10 at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)

11 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
12 at dalvik.system.NativeStart.main(Native Method)

So I am having real troubles to find the source of the problem.

Does anyone have any idea on what methods called from my code may raise 
these kind of errors?


TIA

--
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] Compass Library

2012-11-18 Thread Ichsan
Dear All

I'm developing a compass application. I see that orientation sensor is 
deprecated, so I use magnetic sensor in combination with acceleration 
sensor (for devices which have ones).

I'm only interested in azimuth value. Some devices give me smooth value, 
but some give me very unstable value (jumping values).

Is there any compass library out there which simply gives me azimuth value 
without headache?

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

[android-developers] SGS3 max VM budget

2012-11-18 Thread Francisco Marzoa
Does anyone by chance know what is the maximum VM heap memory size for a 
SGS3?


Thanks in advance,

--
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: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag

2012-11-18 Thread skink


Francisco Marzoa wrote:
> Hi,
>
> I am getting many reports of crashes with this error condition:
>
> android.util.AndroidRuntimeException: Calling startActivity() from
> outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag.
> Is this really what you want?
>
> The problem is that the reported stack does not made reference to any
> line on my own code:
>
> 0 android.util.AndroidRuntimeException: Calling startActivity() from
> outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag.
> Is this really what you want?
> 1 at android.app.ContextImpl.startActivity(ContextImpl.java:618)
> 2 at android.content.ContextWrapper.startActivity(ContextWrapper.java:258)
> 3 at
> android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:236)
> 4 at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:331)
> 5 at android.os.Handler.dispatchMessage(Handler.java:99)
> 6 at android.os.Looper.loop(Looper.java:123)
> 7 at android.app.ActivityThread.main(ActivityThread.java:3652)
> 8 at java.lang.reflect.Method.invokeNative(Native Method)
> 9 at java.lang.reflect.Method.invoke(Method.java:507)
> 10 at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
> 11 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
> 12 at dalvik.system.NativeStart.main(Native Method)
>
> So I am having real troubles to find the source of the problem.
>
> Does anyone have any idea on what methods called from my code may raise
> these kind of errors?
>
> TIA

just  a wild guess but its similar to this
http://stackoverflow.com/questions/6481178/androidruntimeexception-when-a-hyperlink-is-clicked-in-dialog-shown-on-first-run

pskink

-- 
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: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag

2012-11-18 Thread Piren


It actually says it right there: 3 at 
android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:236)

The user is clicking a hyperlink in a webview which is attached to the 
Application Context. Figure out which webview it is, set a webViewClient and 
override shouldOverrideUrlLoading to open the hyperlink properly.


On Sunday, November 18, 2012 12:23:52 PM UTC+2, Fran wrote:
>
>  Hi,
>
> I am getting many reports of crashes with this error condition:
>
> android.util.AndroidRuntimeException: Calling startActivity() from outside 
> of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this 
> really what you want?
>
> The problem is that the reported stack does not made reference to any line 
> on my own code:
>
> 0 android.util.AndroidRuntimeException: Calling startActivity() from 
> outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is 
> this really what you want?
> 1 at android.app.ContextImpl.startActivity(ContextImpl.java:618)
> 2 at android.content.ContextWrapper.startActivity(ContextWrapper.java:258)
> 3 at 
> android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:236)
> 4 at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:331)
> 5 at android.os.Handler.dispatchMessage(Handler.java:99)
> 6 at android.os.Looper.loop(Looper.java:123)
> 7 at android.app.ActivityThread.main(ActivityThread.java:3652)
> 8 at java.lang.reflect.Method.invokeNative(Native Method)
> 9 at java.lang.reflect.Method.invoke(Method.java:507)
> 10 at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
> 11 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
> 12 at dalvik.system.NativeStart.main(Native Method)
>
> So I am having real troubles to find the source of the problem.
>
> Does anyone have any idea on what methods called from my code may raise 
> these kind of errors?
>
> TIA
>
>  

-- 
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] adt-bundle-windows download from developer.android.com

2012-11-18 Thread Sunghun
Please check your window is 32bit and the bundle is 64bit. 

-- 
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: 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\tools>emulator -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 
> IO,
>  
> 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] ADB.EXE Disappeared

2012-11-18 Thread Kevin Brooks
This problem has come up again.  I had it under my Linux side of my 
computer and never could get it fixed.  So I switched to the Windows 
side of my computer, installed Eclipse and the Android SDK. Everything 
was working fine until yesterday.  When I came into my office, my 
computer had crashed during the night.  After getting it back up and 
running, I started Eclipse and I received a message that Eclipse "Could 
not find C:/Program Files (x86)/Android/android-sdk/platform-tools/adb.exe"


When I go to the directory, sure enough adb.exe is not there.  I have 
done a search of the entire hard drive and it doesn't exist anywhere.  I 
have tried to re-install the Android SDK with no luck. Does anyone have 
any suggestions how I can start over from scratch and possibly fix the 
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


Re: [android-developers] ADB.EXE Disappeared

2012-11-18 Thread Mark Murphy
That should come from "Android SDK Platform-tools", in the Tools area
of the SDK Manager.

On Sun, Nov 18, 2012 at 9:40 AM, Kevin Brooks  wrote:
> This problem has come up again.  I had it under my Linux side of my computer
> and never could get it fixed.  So I switched to the Windows side of my
> computer, installed Eclipse and the Android SDK. Everything was working fine
> until yesterday.  When I came into my office, my computer had crashed during
> the night.  After getting it back up and running, I started Eclipse and I
> received a message that Eclipse "Could not find C:/Program Files
> (x86)/Android/android-sdk/platform-tools/adb.exe"
>
> When I go to the directory, sure enough adb.exe is not there.  I have done a
> search of the entire hard drive and it doesn't exist anywhere.  I have tried
> to re-install the Android SDK with no luck. Does anyone have any suggestions
> how I can start over from scratch and possibly fix the 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] ADB.EXE Disappeared

2012-11-18 Thread Mark Murphy
You will also find it in the ADT bundle (which ships with the latest
platform-tools).

On Sun, Nov 18, 2012 at 9:52 AM, Mark Murphy  wrote:
> That should come from "Android SDK Platform-tools", in the Tools area
> of the SDK Manager.
>
> On Sun, Nov 18, 2012 at 9:40 AM, Kevin Brooks  wrote:
>> This problem has come up again.  I had it under my Linux side of my computer
>> and never could get it fixed.  So I switched to the Windows side of my
>> computer, installed Eclipse and the Android SDK. Everything was working fine
>> until yesterday.  When I came into my office, my computer had crashed during
>> the night.  After getting it back up and running, I started Eclipse and I
>> received a message that Eclipse "Could not find C:/Program Files
>> (x86)/Android/android-sdk/platform-tools/adb.exe"
>>
>> When I go to the directory, sure enough adb.exe is not there.  I have done a
>> search of the entire hard drive and it doesn't exist anywhere.  I have tried
>> to re-install the Android SDK with no luck. Does anyone have any suggestions
>> how I can start over from scratch and possibly fix the 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
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 4.3 Available!



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] Automated apps testing

2012-11-18 Thread Jack Harvard
Hi,

I would like to automate the tests of launching the app in the simulator and 
run the App till finish, then exit the simulator. Wondering what's the best way 
to detect whether the App has finish its run, I can think of comparing the 
frames perhaps?

Thanks,
J

-- 
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] Automated apps testing

2012-11-18 Thread Mark Murphy
You know when your tests are done when the tests complete, assuming
that you are using the standard JUnit test harness.

On Sun, Nov 18, 2012 at 11:59 AM, Jack Harvard  wrote:
> Hi,
>
> I would like to automate the tests of launching the app in the simulator and 
> run the App till finish, then exit the simulator. Wondering what's the best 
> way to detect whether the App has finish its run, I can think of comparing 
> the frames perhaps?
>
> Thanks,
> J
>
> --
> 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
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] Sobel camera

2012-11-18 Thread Jim Graham
On Fri, Nov 16, 2012 at 05:52:15AM -0800, srikanth wrote:
> please guide me how to make sobel camera in android application 

Wrong e-mail list.  Try android-ope...@googlegroups.com.  But first,
look at the OpenCV samples BEFORE you ask on the OpenCV/Android list.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)  | "> There it was, right in the title bar:
spooky1...@gmail.com  |  > Microsoft Operations POS."
< Running Mac OS X Lion > | 
ICBM / Hurricane: | "Never before has a TLA been so appropriately
   30.44406N 86.59909W|  mis-parsed." (alt.sysadmin.recovery)

Android Apps Listing at http://www.jstrack.org/barcodes.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] How do I fix this error

2012-11-18 Thread Kevin Brooks

I am getting the following error.

DescriptionResourcePathLocationType
The project was not built due to "A resource exists with a different 
case: '/AlcoholTracker/bin/classes/com/DBIndustries'.". Fix the problem, 
then try refreshing this project and building it since it may be 
inconsistentAlcoholTrackerUnknownJava Problem



Any ideas how to fix this one?

--
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 do I fix this error

2012-11-18 Thread Lew
Bear35805 wrote:

> I am getting the following error. 
>
> DescriptionResourcePathLocationType 
> The project was not built due to "A resource exists with a different 
> case: '/AlcoholTracker/bin/classes/com/DBIndustries'.". Fix the problem, 
> then try refreshing this project and building it since it may be 
> inconsistentAlcoholTrackerUnknownJava Problem 
>
>
> Any ideas how to fix this one? 
>

Well, the error message tells you that the file is named in a different 
case. Doesn't 
that hint to you to spell it in the same case?

-- 
Lew
 

-- 
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] Problem Searching the Array in a Spinner

2012-11-18 Thread Mark Phillips
I have a spinner defined as:



In strings.xml I have

oC
oF
oK


I want to set the index of the spinner by searching for one of the string
values in the array temperature_units. When I look at the ArrayAdapter in
the debugger, it says that the array has three elements: oF, oC, and oK. I
tried this code:

s = (Spinner) v.findViewById(R.id.spinner_temperature);
s.setSelection(((ArrayAdapter)s.getAdapter()).getPosition(data[choice][RocketModelsData.TEMPERATURE_UNITS]));

where data[choice][RocketModelsData.TEMPERATURE_UNITS] returns a string
contained in the array.

but the spinner is not set to the expected value..

I broke down the statements into pieces, and tried to search on
permutations of the strings in the array using this:

s = (Spinner) v.findViewById(R.id.spinner_temperature);
ArrayAdapter sAdapter = (ArrayAdapter) s.getAdapter();
int g0 = sAdapter.getPosition("F");
int g1 = sAdapter.getPosition("oF");
int g2 = sAdapter.getPosition("oF");

All three values, g0, g1, and g2 are -1, so the search failed.

If I remove the superscript formatting from the array, the search works
just fine for F, C, and K or oF, oC, and oK.

Any suggestions on how to set the value of the spinner index by searching
the strings in the spinner array? My layout is cramped, so I can't change
the array elements, for example, to "degrees C"; ie removing the
superscript formatting.

Thanks,

Mark

P.S. Is there a way to read the array from the strings.xml file, and then
make a shadow array that would have the oF strings? I could get
the index from searching that array.

-- 
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] "You need to enter a valid Youtube address."

2012-11-18 Thread Keith Wiley
I realize this issue is not really about Android development, but ever 
since the Android Market Forum went away, I have not been sure where 
developers should discuss Google Play Store administration problems.  If 
you know a better place than this group, please politely inform me, I would 
appreciate the clarification.

Otherwise, here goes...

I'm trying to set up a new app and it won't let me enter a promo video URL. 
I keep getting an error "*You need to enter a valid Youtube address.*", 
which is staggeringly unspecific feedback.  Isn't a proper youtube URL of 
the form *https://www.youtube.com/watch?v=XXX*?  I don't know what 
else to try.

Any ideas?

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

[android-developers] Android - Add Sasl Authentication with k9mail

2012-11-18 Thread Karthik

>
> I am developing an android email client application with sasl 
> authentication. For this I am using k9-mail email client open source. 

 

> Now I want to add sasl authentication with this k9-mail. Is it possible? 
> If yes give me some samples regarding this would be great.

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