[mono-android] error with keytool

2012-08-10 Thread simpleweb
trying to prepare my first app for Google play. I used the following sample code keytool -genkey -v -keystore .keystore -alias -keyalg RSA -keysize 2048 -validity 1 getting error about specified file not found. I ran this in C:\Program Files\Java\jre7\bin where keytool.exe exist. what am I

Re: [mono-android] ADB Driver

2012-08-10 Thread Goncalo Oliveira
That would be a scenario to avoid, as it would void the warranty like Tom said, and would add an extra step to setting up the device, not allowing the client to buy the equipment directly. The tech support says that the device is supposed to work with Google's generic driver. I'm thinking that may

Re: [mono-android] IPC and Mono for Android

2012-08-10 Thread Renato Degelo
Thanks.. Seems like i have a lot of options instead of aidl.. i tought aidl is the only option. I will check it. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/IPC-and-Mono-for-Android-tp5711168p5711283.html Sent from the Mono for Android mailing list archive at

Re: [mono-android] GoogleMaps - Only a grid

2012-08-10 Thread Jonathan Pryor
On Aug 9, 2012, at 4:58 AM, MysteriX wrote: > Hello, iam working with Mono for Android as a evaulation version. > I try to use the MapView but all I see is a Mapview-Grid. Not sure what you mean by "Mapview-Grid". There's a Android.GoogleMaps.MapView class in Mono.Android.GoogleMaps.dll:

Re: [mono-android] Using webView.AddJavascriptInterface with MonoDroid

2012-08-10 Thread Jonathan Pryor
On Aug 10, 2012, at 1:05 AM, Craig Dunn wrote: > there's a recipe with code for that - so it should definitely work > http://docs.xamarin.com/android/recipes/Controls/WebView/Call_C%23_from_JavaScript > (which also links to > http://stackoverflow.com/questions/9745168/monodroid-javascript-call-ba

Re: [mono-android] Using webView.AddJavascriptInterface with MonoDroid

2012-08-10 Thread Jonathan Pryor
On Aug 3, 2012, at 6:53 AM, jose medrano wrote: > MONODROID CODE # > > protected override void OnCreate(Bundle bundle) > { >[...] >LinearLayout layout = > FindViewById(Resource.Id.MyLayout); >var webView = new WebView(this); >webView.SetWebChromeClient(new

Re: [mono-android] Two Layouts

2012-08-10 Thread Jonathan Pryor
On Aug 10, 2012, at 4:16 AM, MysteriX wrote: > i try to place a second layout in my project. I would suggest _not_ doing what you're doing. Instead of calling SetContentView() within your Click handler, you should instead call StartActivity() to a new Activity subclass which has its own SetCont

Re: [mono-android] Listview

2012-08-10 Thread Jonathan Pryor
On Aug 9, 2012, at 2:41 AM, Sayed Arian Kooshesh wrote: > The problem with the android docs is that people have used stackoverflow to > poison search engines so that if you search for anything android, stack comes > up instead of the docs. It's really sad and I've yelled at the owners of > stac

Re: [mono-android] ADB Driver

2012-08-10 Thread Tom Opgenorth
In in some instances rooting the device will void the warranty. On Thu, Aug 9, 2012 at 2:47 AM, Miljenko Cvjetko wrote: > Hi > > > On 2012.08.09 10:07, Sayed Arian Kooshesh wrote: >> >> this is an unrecommended answer, > > Would You be so kind and explain me this argument please? > >> but if you

[mono-android] outline in MD in MfA

2012-08-10 Thread Wally McClure
Where do I fine the outline view in MonoDevelop in Mono for Android? I know where it is in VS, but I can't seem to find it in MD. Am I missing something? Wally ___ Monodroid mailing list Monodroid@lists.ximia

Re: [mono-android] Understanding ArrayAdapter and Java.Lang.Object

2012-08-10 Thread subsembly
Thanks for your elaborate answer. My code to get the selected item now looks like this: Java.Lang.Object o = spinner.SelectedItem; string s = o.ToString(); o.Dispose(); Think this is the best was to do. For more complex list items I am already deriving from BaseAdapter. I will continue to use the

Re: [mono-android] Logging system

2012-08-10 Thread Sayed Arian Kooshesh
can you capture stdout and stderr and redirect them somewhere? On Thu, Aug 9, 2012 at 4:01 AM, Miljenko Cvjetko wrote: > Hi > > On 2012.08.09 10:49, g pe wrote: > > Pretty wise. But I am not sure if it can be avoided for code targeting > multiple platforms. > > The great thing is: it **can** be

Re: [mono-android] ADB Driver

2012-08-10 Thread Sayed Arian Kooshesh
this is an unrecommended answer, but if you lack options, you can root the phone and use wifi adb. On Thu, Aug 9, 2012 at 2:37 AM, Miljenko Cvjetko wrote: > Hi Goncalo > > > On 2012.08.08 14:50, Goncalo Oliveira wrote: > > Hello everyone, > > We have acquired a Unitech TB100 tablet (rugged devi

Re: [mono-android] Listview

2012-08-10 Thread Sayed Arian Kooshesh
The problem with the android docs is that people have used stackoverflow to poison search engines so that if you search for anything android, stack comes up instead of the docs. It's really sad and I've yelled at the owners of stack (with some success about it). The gig is, people post obviously fa

Re: [mono-android] Detecting and responding to image clicks in a list view item.

2012-08-10 Thread Sayed Arian Kooshesh
Use Getpositionforview or the equiv in mono. It's a member of http://developer.android.com/reference/android/widget/AdapterView.html#getPositionForView%28android.view.View%29 On Tue, Aug 7, 2012 at 1:39 AM, Steven Pack wrote: > > Hi all, long time no post. > > I have a listview. and the items ar

Re: [mono-android] sqlite optimisation

2012-08-10 Thread Sayed Arian Kooshesh
don't forget your using On Mon, Aug 6, 2012 at 3:50 AM, Sayed Arian Kooshesh wrote: > http://www.sqlite.org/lang_transaction.html > > On Mon, Aug 6, 2012 at 3:47 AM, John Murray wrote: > >> Whoa – brilliant Miha – you have inadvertently given me the answer >> >> Instead of just putting in **

Re: [mono-android] sqlite optimisation

2012-08-10 Thread Sayed Arian Kooshesh
http://www.sqlite.org/lang_transaction.html On Mon, Aug 6, 2012 at 3:47 AM, John Murray wrote: > Whoa – brilliant Miha – you have inadvertently given me the answer > > Instead of just putting in > > connection.BeginTransaction(); > > I need to create a var to hold the in

Re: [mono-android] IPC and Mono for Android

2012-08-10 Thread Sayed Arian Kooshesh
next question you should ask your self is, is this a faf? Can I drop the service and go with a broadcast recr instead? On Fri, Aug 3, 2012 at 2:33 PM, Sayed Arian Kooshesh wrote: > or alternatively, if you don't use any activities, (I'm not sure if a > service can register recvr) you can register

Re: [mono-android] IPC and Mono for Android

2012-08-10 Thread Sayed Arian Kooshesh
or alternatively, if you don't use any activities, (I'm not sure if a service can register recvr) you can register one in the manifest. You send to it via something like: Intent i = new Intent("filterIputinManifest"); ... (fill extras here) sendbroadcast(i); Not literal code but there are TONS o

Re: [mono-android] IPC and Mono for Android

2012-08-10 Thread Sayed Arian Kooshesh
yeah, you can use broadcast receivers. Use register receiver in your on start and unregister on stop. Similarly you put extras to pass around info. On Fri, Aug 3, 2012 at 2:30 PM, Renato Degelo wrote: > The problem is that i want access this Service from other applications. Is > it > possible wi

Re: [mono-android] IPC and Mono for Android

2012-08-10 Thread Sayed Arian Kooshesh
https://github.com/xamarin/monodroid-samples/blob/master/ApiDemo/App/LocalServiceActivities.cs#L64 also one good information sources to check before coming here is the list archives. On Fri, Aug 3, 2012 at 2:23 PM, Sayed Arian Kooshesh wrote: > http://developer.android.com/guide/components/bound

Re: [mono-android] IPC and Mono for Android

2012-08-10 Thread Sayed Arian Kooshesh
http://developer.android.com/guide/components/bound-services.html On Fri, Aug 3, 2012 at 2:22 PM, Sayed Arian Kooshesh wrote: > why don't you use a binder? I have an example in java and I pass > information back and forth both strings and ints (strings for json if I > need a complex object) > >

Re: [mono-android] IPC and Mono for Android

2012-08-10 Thread Sayed Arian Kooshesh
why don't you use a binder? I have an example in java and I pass information back and forth both strings and ints (strings for json if I need a complex object) On Fri, Aug 3, 2012 at 10:53 AM, Renato Degelo wrote: > aidl -- Extreme Knowledge is not something for which he programs a computer

Re: [mono-android] PostSharp 2.1 and Mono for Android

2012-08-10 Thread Sayed Arian Kooshesh
which mean (guessing) you are targeting v3? Perhaps you changed it 4? On Fri, Aug 3, 2012 at 3:43 AM, Sayed Arian Kooshesh wrote: > Look like, from the log, it was looking for 'mscorlib_3' and couldn't > find (till now) > > On Fri, Aug 3, 2012 at 3:04 AM, Matthew Leibowitz < > mattleibowm...@gmai

Re: [mono-android] PostSharp 2.1 and Mono for Android

2012-08-10 Thread Sayed Arian Kooshesh
Look like, from the log, it was looking for 'mscorlib_3' and couldn't find (till now) On Fri, Aug 3, 2012 at 3:04 AM, Matthew Leibowitz wrote: > Well, some weird news, all is now working. I did nothing except: > > I first tried updating PostSharp to version 2.1.7.6. This made no changes. > Then,

Re: [mono-android] How to handle garbage collection?

2012-08-10 Thread Sayed Arian Kooshesh
What a unique circumstance. There is a bug in 7 that leaks binders. Are you using a service in your app? On Fri, Aug 3, 2012 at 1:54 AM, Breyer, Christian wrote: > Our customers are currently using well over 100 phones running on API > Level 7. They bought those phones in order to use them for at

Re: [mono-android] Crash with Array.Resize()

2012-08-10 Thread Matthieu Laban
I've found my answer,,, It looks like we're running out of memory... -- Matt On Thu, Aug 9, 2012 at 9:02 PM, Matthieu Laban wrote: > Hello Guys, > > We're hitting a wall with a random issue that happens on multiple places > in our code. The app quits and all we get is a stack trace, the last cal

[mono-android] Two Layouts

2012-08-10 Thread MysteriX
Hello, i try to place a second layout in my project. But how do i access the button on the second Layout? i tried this: protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the