Re: [mono-android] Since 4.8.0/1 SIGSEGV on accessing IEditable from ITextWatcher's AfterTextChange

2013-08-27 Thread Goncalo Oliveira
I strongly agree with JLee here "code that runs stable once, should run stable in future (while nothing has changed in the environment)" Improvements and performance enhancements are always welcomed but they should not break existing code. Google breaks code all the time, it's true, and it's horr

Re: [mono-android] SIGSEGV on 4.8.0/4.8.1

2013-08-06 Thread Goncalo Oliveira
The only way I managed to downgrade was to uninstall everything; Xamarin.Android, Xamarin.iOS, Xamarin Studio and Xamarin universal installer. Then installed the earlier ones manually ( Xamarin.Android and Xamarin.iOS ). The thing is that if you work with both Android and iOS, you can't install the

Re: [mono-android] Since 4.8.0/1 SIGSEGV on accessing IEditable from ITextWatcher's AfterTextChange

2013-08-06 Thread Goncalo Oliveira
Seems like something similar to https://bugzilla.xamarin.com/show_bug.cgi?id=13521 On 6 August 2013 17:33, JLee wrote: > Hello, > > accessing IEditable paramter on AfterTextChange-Member of ITextWatcher > craches my app immediately: > I got this problem on several devices (S3, Note 2, One X) (

Re: [mono-android] Fwd: Android Google maps and Bitmap marker icon issue

2013-07-04 Thread Goncalo Oliveira
i iPad > > El 04/07/2013, a las 19:35, Goncalo Oliveira > escribió: > L > > Augustin, > > Thanks for replying. I actually did try to call Recycle and Dispose on the > bitmaps, also nulling instances and GC.Collect a bit. None of those worked. > And adding to the

Re: [mono-android] Fwd: Android Google maps and Bitmap marker icon issue

2013-07-04 Thread Goncalo Oliveira
so a GC.Collect can help. > > Hope it helps. > > Enviado desde mi iPad > > El 04/07/2013, a las 16:44, Goncalo Oliveira > escribió: > > Hi, > > I'm facing an issue with Google maps and custom bitmaps as marker icons > and I'm a little confused if I'

[mono-android] Fwd: Android Google maps and Bitmap marker icon issue

2013-07-04 Thread Goncalo Oliveira
Hi, I'm facing an issue with Google maps and custom bitmaps as marker icons and I'm a little confused if I'm doing the thing the wrong way or there's something wrong happening either with Google maps component or with the Xamarin - JVM bridge. 1. I'm placing a huge quantity of markers on the map.

Re: [mono-android] long polling - connection timeouts

2013-04-09 Thread Goncalo Oliveira
mmm it might be useful to dump the radio logs On 9 April 2013 15:26, Stephan Steiner wrote: > I think I may have used the wrong title thus giving the wrong impression of > what the problem is or isn't. > > I already have > > System.Net.ServicePointManager.DefaultConnectionLimit = 4; > > In my c

Re: [mono-android] long polling - connection timeouts

2013-04-09 Thread Goncalo Oliveira
Correct. you probably want to change the defaults System.Net.ServicePointManager.DefaultConnectionLimit = 4; On 6 April 2013 00:12, Sayed Arian Kooshesh wrote: > sounds like a problem with servicepointmanager. IT limits your connections > to a site to 2 and can cause a limitation in your conne

Re: [mono-android] debugger breakpoints 4.4.41

2012-12-19 Thread Goncalo Oliveira
John, You probably did this step already, but just in case. I also had the same problem when installing the new version. The only way I got it to work again was to clean the whole solution, uninstall shared runtime, mono framework and my application from the device and then running it again. Someo

Re: [mono-android] property getValue error (reflecting)

2012-12-19 Thread Goncalo Oliveira
e-mail piense bien si es necesario hacerlo. > El medioambiente es cosa de todos* > > ** ** > > ** ** > > *De:* monodroid-boun...@lists.ximian.com [mailto: > monodroid-boun...@lists.ximian.com] *En nombre de *Goncalo Oliveira > *Enviado el:* miércoles, 19 de diciembre de 20

Re: [mono-android] property getValue error (reflecting)

2012-12-19 Thread Goncalo Oliveira
You're getting the link shrinkage symptom... Release builds usually have Linking set to 'Sdk assemblies'. This strips 'unused' stuff to reduce the final package size. This can lead to reflection triggering exceptions for not finding a type or method or property. Try building a release with Linking

Re: [mono-android] Turning display on and off

2012-12-13 Thread Goncalo Oliveira
Well, that seems to be an undocumented flag... it's value seems to be 32, you can try a force cast. Check http://code.google.com/p/speakerproximity/source/browse/trunk/src/net/androcom/dev/speakerproximity/MyPhoneStateListener.javaline 53. like wakeLock = pm.NewWakeLock( (WakeLockFlags)32, "your_t

Re: [mono-android] Turning display on and off

2012-12-13 Thread Goncalo Oliveira
gap: "Turning screen off, haven't tried in mono for android, but in java this works" powerService.goToSleep( SystemClock.uptimeMillis() + 1 ); On 13 December 2012 10:33, Goncalo Oliveira wrote: > Turning screen on you can use a wake lock > > wl = pm.NewWakeLock( Wa

Re: [mono-android] Turning display on and off

2012-12-13 Thread Goncalo Oliveira
Turning screen on you can use a wake lock wl = pm.NewWakeLock( WakeLockFlags.ScreenBright | WakeLockFlags.AcquireCausesWakeup, "your_tag_here" ); wl.Acquire( 5000 ); // I used the timeout version here, but the other also works Just make sure you have the required permissions Turning scree

Re: [mono-android] Multi-screen applications with alternating layouts

2012-12-12 Thread Goncalo Oliveira
Since you want to support API 8, why don't you stick with layout/layout-land/layout-large/layout-large-land? These work well with newer API levels. And so far, the designer has behaved correctly with those (leaving apart a few bugs). On 12 December 2012 06:12, Ronny Dahl wrote: > Hi Tom, >

Re: [mono-android] Garbage collector log "dumping"

2012-11-30 Thread Goncalo Oliveira
Thanks for the reply Jon. I've increased the DDMS logcat buffer and am using some "pretty" java regexes to "work around" this. Cheers On 30 November 2012 19:26, Jonathan Pryor wrote: > On Nov 30, 2012, at 12:49 PM, Goncalo Oliveira wrote: > > Since 4.4

[mono-android] Garbage collector log "dumping"

2012-11-30 Thread Goncalo Oliveira
Since 4.4.5 garbage collector is completely dumping the logs... Isn't there a way turn off some of the logs? Sure, I can filter them in the debug monitor, but because it's constantly dumping stuff, doesn't help much... -- Gonçalo Oliveira ___ Monodroid

Re: [mono-android] Could not create wake pipe

2012-11-30 Thread Goncalo Oliveira
I seems that I had a leak on handling database file, that was most likely causing this. After the fix, this seemed to go away. Thanks for the reply. On 29 November 2012 16:50, Goncalo Oliveira wrote: > Thanks for the reply Jonathan. > > I am using Android 2.3, so that matches. >

Re: [mono-android] Could not create wake pipe

2012-11-29 Thread Goncalo Oliveira
Thanks for the reply Jonathan. I am using Android 2.3, so that matches. I'll take a better look to see if I'm leaking any file handles... Thanks again On 29 November 2012 15:57, Jonathan Pryor wrote: > On Nov 29, 2012, at 5:06 AM, Goncalo Oliveira wrote: > > Yes, it is

Re: [mono-android] Could not create wake pipe

2012-11-29 Thread Goncalo Oliveira
Yes, it is my process. In the logcat bellow, it's process 10704. The device in question has very little memory, and it's always on the edge. http://pastebin.com/63H3qErk On 28 November 2012 20:35, Jonathan Pryor wrote: > On Nov 27, 2012, at 1:15 PM, Goncalo Oliveira wrote: &g

[mono-android] Could not create wake pipe

2012-11-27 Thread Goncalo Oliveira
I'm getting occasional errno 24, Could not create wake pipe. Can anyone pinpoint some reasons for this? Can an out-of-memory cause this? -- Gonçalo Oliveira ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.xi

Re: [mono-android] Wait x seconds

2012-11-27 Thread Goncalo Oliveira
That's because you're blocking in the UI thread with that sleep. If you want to do something like that you'll have to do a sleep in a background thread and then posting something back into the UI thread. Maybe timers can help you better (System.Timers.Timer or System.Threading.Timer). On 27 Novem

Re: [mono-android] Services and Broadcast Receivers

2012-11-20 Thread Goncalo Oliveira
My bad with the SafeUnregisterReceiver, it's an extension. here's the code... public static void SafeUnregisterReceiver( this ContextWrapper ctx, BroadcastReceiver receiver ) { if ( ( ctx != null ) && ( receiver != null ) ) { ctx.UnregisterRe

Re: [mono-android] Services and Broadcast Receivers

2012-11-16 Thread Goncalo Oliveira
I got a bit bothered with the need to have to create a broadcast receiver for every little thing, so I created a generic broadcast receiver with a delegate. It simplifies the process... You can grab the source here http://pastebin.com/yBa5LP6C The way to use it is very simple. >From the service,

Re: [mono-android] Could not create epoll instance. errno=24

2012-11-05 Thread Goncalo Oliveira
Thanks Jon, I'll try that. Goncalo Oliveira Sent from my Windows Phone From: Jonathan Pryor Sent: 05-11-2012 20:34 To: Discussions related to Mono for Android Subject: Re: [mono-android] Could not create epoll instance. errno=24 On Nov 5, 2012, at 9:51 AM, Goncalo Oliveira wrote: > Jon

Re: [mono-android] Could not create epoll instance. errno=24

2012-11-05 Thread Goncalo Oliveira
not create wake pipe. errno=%d. errno is 24 - #define EMFILE 24 /* Too many open files */. http://pastebin.com/NR06bWQD Like I said earlier, a GC.Collect() fixes it. Any ideas? On 5 November 2012 15:35, Goncalo Oliveira wrote: > In this case it was fixed with a GC.Collect() but I still do

Re: [mono-android] Could not create epoll instance. errno=24

2012-11-05 Thread Goncalo Oliveira
o: Discussions related to Mono for Android > Subject: Re: [mono-android] Could not create epoll instance. errno=24 > > On Nov 5, 2012, at 6:16 AM, Goncalo Oliveira wrote: > > Here's the logcat dump > > http://pastebin.com/WhVdbmRk > > The logcat dump doesn't i

Re: [mono-android] Could not create epoll instance. errno=24

2012-11-05 Thread Goncalo Oliveira
9. 11-05 11:08:08.642: I/ActivityManager(193): Process Frotcom.FMobile (pid 5613) has died. On 5 November 2012 14:46, Jonathan Pryor wrote: > On Nov 5, 2012, at 6:16 AM, Goncalo Oliveira wrote: > > Here's the logcat dump > > http://pastebin.com/WhVdbmRk > > The l

Re: [mono-android] Could not create epoll instance. errno=24

2012-11-05 Thread Goncalo Oliveira
intent.GetIntExtra( TrackingService.EXTRA_STATE, -1 ) == TrackingService.STATE_STOPPED ) ) { Finish(); } Cheers On 5 November 2012 11:16, Goncalo Oliveira wrote: > Hi all, > > I'm having a consistent crash on my app after it&#

[mono-android] FragmentActivity.OnRetainNonConfigurationInstance

2012-11-05 Thread Goncalo Oliveira
Error 2 onRetainNonConfigurationInstance() in fmobile.views.MainView cannot override onRetainNonConfigurationInstance() in android.support.v4.app.FragmentActivity; overridden method is final public java.lang.Object onRetainNonConfigurationInstance () C:\Projects\trunk\FrotcomMobile\Android\FMobile\

[mono-android] Could not create epoll instance. errno=24

2012-11-05 Thread Goncalo Oliveira
Hi all, I'm having a consistent crash on my app after it's running on a few minutes. I basically have a background service broadcasting gps locations to the activity, and displaying it's speed. The receiver is registered onStart and unregistered onStop. The activity is keeping the screen on, so th

[mono-android] Google maps API

2012-11-02 Thread Goncalo Oliveira
Hi all, I'm trying to create a custom OverlayItem with the ability to rotate the marker drawable by N degrees. The thing is, MfA implementation does not match Google API. There's no getter for the marker drawable - getMarker( int stateBitset ) - and the MMarker is always null. Maybe I'm missing so

Re: [mono-android] Activity/Service dilemma

2012-10-30 Thread Goncalo Oliveira
Thank you Jon. Cheers On 30 October 2012 02:05, Jonathan Pryor wrote: > That approach sounds good to our docs team. > > - Jon > > On Oct 29, 2012, at 2:43 PM, Goncalo Oliveira wrote: > > > Hi all, > > > > I'm having this dilemma on Activity/Service &q

[mono-android] Activity/Service dilemma

2012-10-29 Thread Goncalo Oliveira
Hi all, I'm having this dilemma on Activity/Service "binding" that I don't quite know what is the best way to achieve. Here's a common scenario... We have an activity named *LoginActivity*. This activity has two fields, username and password. The authentication operation consists in making a web

Re: [mono-android] [MonoTouch] Introducing the Xamarin Forums

2012-10-05 Thread Goncalo Oliveira
I totally agree with Wally on this. Cheers On 5 October 2012 14:11, Wally McClure wrote: > replacing the email list would result in my dropping out. web forums > always sound cool, "but you can get to them anywhere." I can get to my > email easily anywhere: laptop, desktop, on the road, iphone

Re: [mono-android] Push notifications for mono

2012-10-02 Thread Goncalo Oliveira
This solved my problem System.Net.ServicePointManager.DefaultConnectionLimit = 4; The default value is 2. http://msdn.microsoft.com/en-us/library/system.net.servicepointmanager.defaultconnectionlimit.aspx On 1 October 2012 20:40, Stephan Steiner wrote: > I've done some googling, the best I c

Re: [mono-android] Mono for Android 4.2.7 Beta Release Available

2012-09-28 Thread Goncalo Oliveira
That's excellent news! Cheers Goncalo Oliveira Sent from my Windows Phone From: Jonathan Pryor Sent: 28-09-2012 21:46 To: Discussions related to Mono for Android Subject: [mono-android] Mono for Android 4.2.7 Beta Release Available We are pleased to announce a Beta release of Mono or An

[mono-android] Fwd: Problem with callback mismatch

2012-09-28 Thread Goncalo Oliveira
Hello, I'm having some troubles with callback methods in async calls, most likely due to anonymous methods. >From the top. I'm using RestSharp for interacting with RESTful services. RestSharp does use a few anonymous methods in the async calls. I have two distinct service classes, each of them cr

[mono-android] Tachograph driver card reader

2012-09-24 Thread Goncalo Oliveira
Hi all, This is probably a long shot, but you never know. We're looking for a solution to read a tachograph driver card. It would be great if it could be used with Android, either by USB or by Bluetooth. So far I've found a few using Bluetooth but they're all too expensive. And the others, there's

Re: [mono-android] Push notifications for mono

2012-09-19 Thread Goncalo Oliveira
long polling works by making a request with no timeout. The webserver will only reply when there is something to deliver. Though It is convenient to have a 5 to 8 minute timeout as some mobile operators tend to drop idle connections. On 19 September 2012 16:11, mihaivader wrote: > Hmm .. how doe

[mono-android] Parental Control

2012-09-19 Thread Goncalo Oliveira
Hi all, First of all, this is not really a MfA question, more of an Android one, and for that I apologize if this is inconvenient. The problem is the following; I need to find a way to prevent users from running apps that are not on a "whitelist", unless they can provide a security code. To do th

Re: [mono-android] Push notifications for mono

2012-09-19 Thread Goncalo Oliveira
I've implemented push notifications by using a long polling strategy. On 19 September 2012 16:03, mihaivader wrote: > Hello, > > I've developed an app using both Monodroid (and Monotouch) and now I have > to > add push notifications for both of them. I am new to mobile app development > and to p

Re: [mono-android] Intentfilter & register for intents

2012-09-18 Thread Goncalo Oliveira
As long as you unregister when the service gets destroyed or stopped you're good. If you don't you'll leak the register. Goncalo Oliveira Sent from my Windows Phone From: Stephan Steiner Sent: 18-09-2012 19:22 To: monodroid@lists.ximian.com Subject: Re: [mono-android] Intentfilter

Re: [mono-android] Intentfilter & register for intents

2012-09-18 Thread Goncalo Oliveira
Service? On 18 September 2012 18:37, Stephan Steiner wrote: > Hi My application needs to detect network state changes. I implemented > that using the IntentFilter tag on a class derived from BroadcastReceiver. > It all works well (android doc isn't great at explaining how to work all > the extras

Re: [mono-android] Mono for Android 4.2.6 Beta Release Available

2012-09-18 Thread Goncalo Oliveira
This was not an issue on 4.2.4 https://bugzilla.xamarin.com/show_bug.cgi?id=7226 On 18 September 2012 14:51, Andrew Gaspar wrote: > Ha, just started using Mono and I thought that was odd. Glad to see it has > been resolved. Can somebody explain what the "designer break" is? > > Andrew Gaspar

Re: [mono-android] Mono for Android 4.2.6 Beta Release Available

2012-09-17 Thread Goncalo Oliveira
this is great news. What about the designer break? Any estimates? Cheers Goncalo Oliveira Sent from my Windows Phone From: Jonathan Pryor Sent: 17-09-2012 21:30 To: Discussions related to Mono for Android Subject: [mono-android] Mono for Android 4.2.6 Beta Release Available We are pleased to

[mono-android] Designer locks

2012-09-13 Thread Goncalo Oliveira
Hi, What's up with the visual studio designer locks in 4.2.5? I used to be able to select a screen and lock by screen size (normal, large, extra large) but now that possibility is gone. Also, if I fiddle a little bit, some of the locks disappear or get behind text or behind the gray bar... Cheers

[mono-android] Designer can't load custom controls

2012-09-13 Thread Goncalo Oliveira
Hi, I have a view named SquareLayout that inherits LinearLayout. When adding this view in the axml, the designer doesn't know what to do with it and throws an exception *The layout could not be loaded: com.android.layoutlib.bridge.MockView cannot be cast to android.View.ViewGroup* The same thing

Re: [mono-android] GPS applications

2012-09-06 Thread Goncalo Oliveira
*Also, is it easy to make an equivilent of a Tom Tom GPS application to guide* *you to places via a map?* for map see Xamarin's samples for GoogleMaps Careful with this. I believe that the Google license agreement forbids using Google maps for navigation software, even for paid licenses. On 6 Se

Re: [mono-android] Scrolling LinearLayout

2012-09-05 Thread Goncalo Oliveira
ScrollView http://developer.android.com/reference/android/widget/ScrollView.html On 5 September 2012 09:45, Александр wrote: > Hello. > > I've made linearlayout like this: > http://mono-for-android.1047100.n5.nabble.com/file/n5711700/Problem.png > > I can scrolling listview's, but can't scroll

[mono-android] Looking to hire

2012-08-29 Thread Goncalo Oliveira
Hello there,, We are hiring one individual to work with Monodroid (not exclusively) and possibly Monotouch. The work location is in Linda-a-Velha, Portugal. This is a full-time, permanent position. If anyone's interested please drop me an email. *Profile* · Some experience in Android

Re: [mono-android] Launching RunOnUiThread from a Thread in other class

2012-08-29 Thread Goncalo Oliveira
the Preview class inherits a view, so do a post instead Post( ) On 29 August 2012 13:27, antoniolopes wrote: > Afternoon all! > > Well, i basically have two classes( my main activity and another class - > ISurface for CameraPreview) like in the > > https://github.com/xamarin/monodroid-sa

[mono-android] Overflowing menu

2012-08-27 Thread Goncalo Oliveira
Hi there, Has anyone done something similar to an overflowing context menu? Like the one that Google Maps app uses. Has to work with API 10. Any guidelines on how to achieve this would be much appreciated. Cheers, -- Gonçalo Oliveira ___ Monodroid

Re: [mono-android] Orientation Change

2012-08-27 Thread Goncalo Oliveira
Add an attribute to the activity if you want to lock in a certain orientation. [Activity( Label = "My Activity", ScreenOrientation = Android.Content.PM.ScreenOrientation.Portrait )] public class MyActivity : Activity On 27 August 2012 15:28, MysteriX wrote: > And.. can you tell me how

Re: [mono-android] GPS

2012-08-24 Thread Goncalo Oliveira
I'm using a service to request the GPS updates, and then broadcasting the outcome. On 24 August 2012 16:37, Domanet wrote: > Thanks, > > Are you requesting the updates in a background thread? > > Else what is the effect on the main thread with all those GPS updates? > > I'm using a Galaxy and ge

Re: [mono-android] GPS

2012-08-24 Thread Goncalo Oliveira
I believe that you'll have to lower the time and keep GPS on all time. There are also great differences in hardware; for example, I am doing a gps fix every 60 seconds, and having different accuracy values on a Samsung Galaxy Note and a ZTE china something. Surprisingly, the average values for the

Re: [mono-android] Portable rest client

2012-08-23 Thread Goncalo Oliveira
i think that would be great. I'll try contacting him to see if he's open to it. Goncalo Oliveira Sent from my Windows Phone -- From: Matthew Leibowitz Sent: 23-08-2012 22:04 To: Discussions related to Mono for Android Subject: Re: [mono-android] Portable rest

Re: [mono-android] Portable rest client

2012-08-23 Thread Goncalo Oliveira
port the restsharp library into a portable > one? > On Aug 23, 2012 6:01 PM, "Goncalo Oliveira" wrote: > >> Yes, that's what I'm using. >> >> I guess my question was not correctly formed. >> I am currently using RestSharp yes, it's pretty

Re: [mono-android] Portable rest client

2012-08-23 Thread Goncalo Oliveira
7;t available as a portable library yet, unfortunately. Cheers On 21 August 2012 18:03, Sayed Arian Kooshesh wrote: > restsharp? Even has a mono-droid fork > > On Tue, Aug 21, 2012 at 11:30 AM, Goncalo Oliveira wrote: > >> Hi everyone, >> >> Has anyone foun

Re: [mono-android] for hire again

2012-08-23 Thread Goncalo Oliveira
If you lived in Portugal... On 19 August 2012 23:26, Sayed Arian Kooshesh wrote: > If anyone needs a c#/android expert send me a message! I go fast. > > -- > Extreme Knowledge is not something for which he programs a computer but > for which his computer is programming him. > > -Wozniak > > >

Re: [mono-android] App won't run when in release

2012-08-22 Thread Goncalo Oliveira
Probably you were caught by the linker. Reflection stuff is a liability. http://docs.xamarin.com/android/advanced_topics/linking On 22 August 2012 14:47, Francesco Colombo wrote: > Spot it! > > It was exactly what I was thinking. I've changed my code not using anymore > the Activator. Now I'm e

Re: [mono-android] Conditional Compilation Symbols

2012-08-22 Thread Goncalo Oliveira
Hi Jon, Specifically I meant both the compiler and the IDE. the .csproj does not define them TRACE;DEBUG;SQLITE_ENABLE_COLUMN_METADATA and yet this is correctly identified by the IDE #if __ANDROID__ int u = 1; u++; #endif Cheers On 21 August 2012 22:11, Jonathan Pryor

[mono-android] Portable rest client

2012-08-21 Thread Goncalo Oliveira
Hi everyone, Has anyone found a portable REST library for usage with the client? Cheers -- Gonçalo Oliveira ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid

Re: [mono-android] Conditional Compilation Symbols

2012-08-21 Thread Goncalo Oliveira
have attached an image how > it looks. > > > > On Tue, Aug 21, 2012 at 12:50 PM, Goncalo Oliveira > wrote: > > That doesn't look correct. I'm using the __ANDROID__ symbol and it is > > correctly recognized by VS2010. > > > > > > > > On

Re: [mono-android] Conditional Compilation Symbols

2012-08-21 Thread Goncalo Oliveira
That doesn't look correct. I'm using the __ANDROID__ symbol and it is correctly recognized by VS2010. On 21 August 2012 11:43, Tomasz Cielecki wrote: > Hey list, > > I've been looking at the docs for Conditional Compilation and the > Symbols, but for some reason it does not seem like any of th

Re: [mono-android] New Activity - Give it a string

2012-08-17 Thread Goncalo Oliveira
// first you retrieve the entry in the spinner. don't know what that is, but let's assume that it's an integer id int entryId = ... // something Intent intentActShow = new Intent( this, typeof( ActShowActivity ) ); intentActShow.PutExtra( "id", entryId ); // let's store the entry id on the intent

Re: [mono-android] New Activity - Give it a string

2012-08-17 Thread Goncalo Oliveira
use intent data like Intent myIntent = new Intent( ) myIntent.PutExtra( "id", 888 ); StartActivity( myIntent ); On 17 August 2012 12:20, MysteriX wrote: > Hello, > i want to call a new Activity. This Activity have to know which entry was > selected in a spinner in the Activity before.

[mono-android] Different style behavior

2012-08-17 Thread Goncalo Oliveira
Hello, I was trying to use different screen size styles to apply on text fields without the need to edit every single layout in every single variant. So, I added three styles in three different files under values, values-large and values-xlarge. 18sp

Re: [mono-android] Designer style property

2012-08-17 Thread Goncalo Oliveira
Setting textAppearance seems to do the trick. Though now I'm kind of confused. What's the difference? I'm sorry if this is more of an Android question and not so much on Xamarin. Cheers On 17 August 2012 09:44, Goncalo Oliveira wrote: > I was trying to use with themes in lay

[mono-android] Designer style property

2012-08-17 Thread Goncalo Oliveira
I was trying to use with themes in layouts and I'm a bit confused. Where's the style property? The TextView properties do not include this one. I can't do something like this with the designer? Am I missing something? -- Gonçalo Oliveira ___ Monodr

Re: [mono-android] Screen sizes and layouts

2012-08-16 Thread Goncalo Oliveira
> On Thu, Aug 16, 2012 at 7:09 PM, Goncalo Oliveira wrote: > >> Hi there, >> >> The application I'm developing needs to support several different sizes, >> from Normal to Extra Large. I'm using sp for text size and dp for >> everything else, as recommende

Re: [mono-android] Screen sizes and layouts

2012-08-16 Thread Goncalo Oliveira
android:text="Start Location Service" > > /> > > *Steve Sharrock* > Architecture/Design/Programming > www.sharkcode.com > > > -- > *From:* monodroid-boun...@lists.ximian.com [mailto: > monodroid-boun...@lists.ximian.com] *On B

[mono-android] Screen sizes and layouts

2012-08-16 Thread Goncalo Oliveira
Hi there, The application I'm developing needs to support several different sizes, from Normal to Extra Large. I'm using sp for text size and dp for everything else, as recommended in android's best practices. The thing is... In many places the only thing that changes is the text size, and I reall

Re: [mono-android] ListView.ItemClick

2012-08-16 Thread Goncalo Oliveira
sider to be very serious, but it has nothing to do with Xamarin guys. Most likely a bad OS build. Any other ideas, please do comment. Cheers. On 14 August 2012 18:49, Goncalo Oliveira wrote: > Hi there, > > > I have a ListView with a custom adapter (derived from ArrayAdapter)

Re: [mono-android] Release version errors

2012-08-16 Thread Goncalo Oliveira
is dynamic and target type could be an EditText or something else. How > exactly can I implement the falseflag method here? > > Cheers > > > > On 26 July 2012 03:55, Jonathan Pryor wrote: > >> On Jul 24, 2012, at 5:45 AM, Goncalo Oliveira wrote: >> > Let me

[mono-android] ListView.ItemClick

2012-08-14 Thread Goncalo Oliveira
Hi there, I have a ListView with a custom adapter (derived from ArrayAdapter). I hook up the ItemClick list.ItemClick -= Inbox_ItemClick; Then I load up some items into the adapter inboxAdapter.Add( new Document() { ... } ); and in the end inboxAdapter.NotifyDataSetChanged(); Now the weird

Re: [mono-android] Release version errors

2012-08-14 Thread Goncalo Oliveira
No other thoughts? On 14 August 2012 17:00, Goncalo Oliveira wrote: > Because the content is dynamic and so is the property getter. > > > On 14 August 2012 16:18, Jonathan Pryor wrote: > >> On Aug 14, 2012, at 6:15 AM, Goncalo Oliveira wrote: >> > The thing is...

Re: [mono-android] Release version errors

2012-08-14 Thread Goncalo Oliveira
Because the content is dynamic and so is the property getter. On 14 August 2012 16:18, Jonathan Pryor wrote: > On Aug 14, 2012, at 6:15 AM, Goncalo Oliveira wrote: > > The thing is... this is kind of unusable. The whole reason I'm using > reflection is because I don't k

Re: [mono-android] Release version errors

2012-08-14 Thread Goncalo Oliveira
in the apk, might as well turn off linking as the difference isn't much. Somehow it feels like none is a good solution. Isn't there any other way of doing this? Cheers, -- Gonçalo Oliveira On 14 August 2012 10:26, Goncalo Oliveira wrote: > I'm kind of lost here. I've fou

Re: [mono-android] Release version errors

2012-08-14 Thread Goncalo Oliveira
falseflag method here? Cheers On 26 July 2012 03:55, Jonathan Pryor wrote: > On Jul 24, 2012, at 5:45 AM, Goncalo Oliveira wrote: > > Let me see if I get this straight. I do have an additional project that > is referenced by the application. It's basica

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] ADB Driver

2012-08-09 Thread Goncalo Oliveira
providing this. Cheers On 9 August 2012 08:37, Miljenko Cvjetko wrote: > Hi Goncalo > > > On 2012.08.08 14:50, Goncalo Oliveira wrote: > > Hello everyone, > > We have acquired a Unitech TB100 tablet (rugged device) to do some > testing. Though, the ADB driver does

[mono-android] ADB Driver

2012-08-08 Thread Goncalo Oliveira
Hello everyone, We have acquired a Unitech TB100 tablet (rugged device) to do some testing. Though, the ADB driver does not seem to work with it. I can only use it as an MTP usb device. Tablet development settings are on and I even updated the google usb driver, but I can't seem to make it recogni

Re: [mono-android] sqlite optimisation

2012-08-06 Thread Goncalo Oliveira
I've been using CoolStorage as a replacement for core sqlite libraries. http://viciproject.com/wiki/projects/coolstorage/home On 6 August 2012 09:51, Miha Markic wrote: > FYI better if you put it into try/catch or using block, i.e.: > > using (SqliteTransaction trans = connection.BeginTra

Re: [mono-android] Low cost devices with embed 3G

2012-08-03 Thread Goncalo Oliveira
an Pryor wrote: > On Aug 3, 2012, at 10:48 AM, Goncalo Oliveira wrote: > > I'm searching for low cost tablets (7" screen) with embed 3G modem. > Something under $250 (preferably sold in Europe), ideally with Android 3.2 > or 4. > > Any suggestions? > > Best sugges

[mono-android] Low cost devices with embed 3G

2012-08-03 Thread Goncalo Oliveira
Hey guys, I'm searching for low cost tablets (7" screen) with embed 3G modem. Something under $250 (preferably sold in Europe), ideally with Android 3.2 or 4. Any suggestions? Cheers -- Gonçalo Oliveira ___ Monodroid mailing list Monodroid@lists.ximia

Re: [mono-android] Monodroid Crasher

2012-08-02 Thread Goncalo Oliveira
One thing that might be worth mentioning - or not - the base type for my custom provider implementation is System.MonoType. On 2 August 2012 14:40, Goncalo Oliveira wrote: > Has anyone used https://github.com/soundnRg/Crasher successfully? > > I have created an Applicat

[mono-android] Monodroid Crasher

2012-08-02 Thread Goncalo Oliveira
Has anyone used https://github.com/soundnRg/Crasher successfully? I have created an Application class [Application] [Crasher( UseCustomData = true, CustomDataProviders = new[] { typeof( FMobileDataReportProvider ) } )] [GoogleFormReporterSettings( "1QFCaT40v8_G4F0_UZMQ4t7i51l0mHJKkpmY

Re: [mono-android] Release version errors

2012-07-24 Thread Goncalo Oliveira
Any more thoughts on this? Cheers On 24 July 2012 10:45, Goncalo Oliveira wrote: > Thank you for the reply Jon. > It seems that the linker is indeed causing this. I rebuilt with no linking > and everything works fine. Problem is it generates a 22 mb file instead of > a 8 mb one. &g

Re: [mono-android] Release version errors

2012-07-24 Thread Goncalo Oliveira
05, Jonathan Pryor wrote: > On Jul 23, 2012, at 12:46 PM, Goncalo Oliveira wrote: > > So... maybe there's a guide somewhere on this? Common errors, things to > avoid, anything?... > > The most common source of errors is due to linking; a type/member that > yo

[mono-android] Release version errors

2012-07-23 Thread Goncalo Oliveira
Hi, I'm getting a lot of exceptions with the release version that I didn't have with the debug one. It's getting hard to trace them all, because even though I can get the stacktraces from ddms, I can't replicate them in the debug version, so it's kind of difficult to know what's wrong! So... mayb

Re: [mono-android] Best way to work offline?

2012-07-18 Thread Goncalo Oliveira
If the data from the server only grows you can just use an auto-identifier and download everything above the one you have in the device. If not you must come up with a more complete sync algorithm. Also I suggest you take a look at CoolStorage from Vici Project before using the sqlite core librari

Re: [mono-android] detect SD Card path?

2012-06-08 Thread Goncalo Oliveira
That is the closest option to "try" and find the external sd card... I just don't know how well it will behave with all the different hardware schemes out there. On 8 June 2012 07:22, moelski wrote: > Hi ! > > Maybe this is not the complete trick but I started with a posting in the > thread: > >

Re: [mono-android] Problem with reflection and nullables

2012-06-05 Thread Goncalo Oliveira
Nevermind, it is working correctly. The quick inspector isn't showing the correct value, but if I add something like "DateTime? j = p.Timmy" it is correct. On 5 June 2012 09:40, Goncalo Oliveira wrote: > Hi, > > > There seems to be an issue with reflection when

[mono-android] Problem with reflection and nullables

2012-06-05 Thread Goncalo Oliveira
Hi, There seems to be an issue with reflection when setting a nullable generic property value. public class DummyJoe { public DateTime? Timmy { get; set; } } DummyJoe p = new DummyJoe(); Type type = p.GetType();

Re: [mono-android] Splash activity orientation

2012-05-29 Thread Goncalo Oliveira
, still fits the requirement. Cheers On 29 May 2012 14:47, Goncalo Oliveira wrote: > I don't really know if this is a monodroid issue or just android's > behavior. > > I have a splash activity and I don't want it to rotate automatically if > you flip the screen, but

[mono-android] Splash activity orientation

2012-05-29 Thread Goncalo Oliveira
I don't really know if this is a monodroid issue or just android's behavior. I have a splash activity and I don't want it to rotate automatically if you flip the screen, but I do want it to start with the current orientation. To do this, I set the ScreenOrientation to ScreenOrientation.Behind. On

[mono-android] Thank you note

2012-05-29 Thread Goncalo Oliveira
This is not news, and I think that it is shared by everyone using monodroid, nonetheless here it goes. Version 4.2 is a great addition, and the whole bunch of features are a real treat for those developing for this platform. The whole team is doing an excellent job, and they fully deserve our appr

Re: [mono-android] VS designer id property

2012-05-29 Thread Goncalo Oliveira
, Lluis Sanchez Gual wrote: > I can't reproduce this problem. Do you have more detail about the > exception you are getting? If the exception is shown in a dialog it should > have a details section with the whole stack trace. > > El 28/05/2012, a las 13:10, Goncalo Oliveira escrib

Re: [mono-android] LinearLayout.AddView( View, ViewGroup.MarginLayoutParams ) fails

2012-05-29 Thread Goncalo Oliveira
gt; >> D/WifiCommon( 196): [wlan0] Issue cmd = 'DRIVER RSSI' > >> D/WifiStateTracker( 196): requestPolledInfo, newRssi=-66 > >> D/WifiCommon( 196): [wlan0] Issue cmd = 'DRIVER LINKSPEED' > >> D/WarningMessage( 323): TimerTask: ReadCodeTask.run()

  1   2   >