[mono-android] Attachments to E-mail?
Hello, Does anyone have a quick sample of adding an attachment to an e-mail message? I'm using IO.File.ReadAllBytes(MyFilepath) in the Input.ExtraSteam but it's not working. Any help is appreciated. Thank you, Neal ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] For those seeing MonoDroid revert to Evaluation
I don't know why it happens but in the middle of a programming session even MonoDroid will show the click to activate when deploying to the device. I close VS 2010 and then reopen it, sometimes this alone fixes it. Today it happened again. I clicked the "click to activate" and then clicked the Close X on the top right of the activation dialog, I did not fill it out. It then refreshed the device list and I am back to registered (I hope) again. Something is definitely wrong with the license system but hopefully this will help you restore back to activated state. Neal Culiner NC Software, Inc. http://nc-software.com/ ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] How to create a SharedPreferencesChangedListener?
Hello, I'd like to setup my PreferenceActivity so the Preference Summary shows the value set. I found samples online using the OnPause and OnResume to setup/remove a preference changed listener. I can't figure out how to do this in MonoDroid. Any help is greatly appreciated. Thank you. Neal ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Staying the course
Guess I'll keep coding with MonoDroid as it is a release product. Nothing saying I have to stop! I just hope Miguel & Co. do it right or they'll get sued by Attachmate just like the vBulletin/Xenforo situation. Would be nice if Attachmate could think of us, the customers, and do the right thing too. Neal ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Post on Attachmates Wall
Post on Attachmates Facebook Wall: http://www.facebook.com/#!/pages/Attachmate-Corporation/214130408611562 Ask nicely for them to help us, i.e. hand over MonoTouch and MonoDroid Let them hear from us and maybe we can help Miguel & Co. Neal ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] LaunchMode attribute of Activity not being set
Hello MonoDroiders: I recently asked about why my app doesn't resume where you left off like other apps. I use two attributes on my main activity (launcher=true) one is alwaysRetainTaskState = true and the other is launchMode. I later changed my app to use the splash screen concept shared here a week or two ago which now has me adding the launcher activity in the manifest directly. Things are working better by doing that and I discovered after some research that launchMode of "singleTask" doesn't work right and the suggest to use "singleInstance" resolves my problem, the app now resumes properly. The one person that suggested using the save/restore instance state, that is for the activity, not the app as a whole. So today I decided to try without using the splash implementation and again the app would NOT resume where you left off even with the proper attribues set (singleinstance, etc.). So it appears there is a bug in 1.1 with the LaunchMode attribute of the activity. I switched back to the splash implementation and the manual entry for the launcher activity in the manifest and all is fine again. FYI Neal Culiner NC Software, Inc. http://www.nc-software.com <http://www.nc-software.com/> ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Simple Scheduled Timer example?
Hello, Does anyone have sample code on how to use a simple scheduled timer? I need to run code but have a 250ms delay first to let the OS process the events. I want to show an Activity and then show the soft input pad 250ms later to allow the activity to be created. Thank you. Neal Culiner NC Software, Inc. http://www.nc-software.com <http://www.nc-software.com/> ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Shared development in Windows and Mac?
Hello, We may be taking on a project where we will team dev on an Android project. We will use VS 2010, they only have Mac's so they'll use MonoDevelop. Can an Android app be shared across platform like this? We'll use source code control of course to keep our files in sync, just want to see if we can stay with VS 2010 which is our preference over MonoDevelop. Thanks, Neal ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Reverts to Eval if device not connected
I probably should report this as a bug and will. However, for the gang, I'm using Windows/VS.NET for my Android dev environment. As I have a Droid X I use this for debugging, works fine for me. If I have the device unplugged and try to build such as I did yesterday in RELEASE and then try to create a package (.apk) then it comes up saying it's in Eval mode blah blah blah. I plug the device in again and now I can build. Is the activation tied to my device Strange! Neal Culiner NC Software, Inc. http://nc-software.com/ ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Testing International scenarios
Hello, I am in the US so that's what my Droid X is set to and therefore what I test against. I have a problem where my international users are able to first run the app and then something happens and it won't start again. I'm not sure why! It's the same code as my iPhone/iPad app so that has been internationally tested as the iOS emulator allows you to change country/region (or the device does). How can I test against international settings in Android? I don't see any capability to change the device or emulator to a specific country/locale. Any advice for proper internationalization testing? Thank you, Neal Culiner NC Software, Inc. http://nc-software.com/ ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Device ID is NOT unique in Android
Hello, I'm using the following code to get a UDID for Android: Android.Provider.Settings.Secure.GetString(ContentResolver, Android.Provider.Settings.Secure.AndroidId) Come to find out this is NOT unique and after querying my sync database I'm shocked at how many different devices use the same Device ID. Am I doing something wrong??? Or is Android simply not good at coming up with a simple UDID like iOS? I'm using Android OS 2.2 and later for my app. By the way, I hear iOS 5 is discouraging (ala compile error/warning) their UDID retrieval? Maybe we need to just abandon device recognition? Neal Culiner NC Software, Inc. <http://www.nc-software.com/> http://www.nc-software.com/ ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] VS.NET reports new version but downloads 401
I installed 4.0.3 via the manual download link yet when I open VS.NET 2010 it reports a new version is available and downloads 4.0.1. FYI Neal Culiner NC Software, Inc. <http://www.nc-software.com/> http://www.nc-software.com/ ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Nook apps
Anyone submitted their app to the Nook? What is the process? Restrictions? Any info to share? I submitted my MfA app to Amazon for the Kindle Fire, now I'd like to see if I can support the Nook. Thanks, Neal Culiner NC Software, Inc. <http://www.nc-software.com/> http://www.nc-software.com/ ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Barnes & Noble NOOK
Hello All, Figured I'd share my experiences with getting my app out for the NOOK which is now available: http://logbookpro.com/bn/nook This is probably the most painful and extensive application and submission process I've gone through as compared to Apple and Amazon. The Barnes & Noble NOOK developer account and app submission process is done in four steps: 1) Apply for a developer account - approval required before you can proceed 2) Submit your Bank/Tax information - they actually compare it with what is on file with the IRS - approval required before you can proceed 3) Submit the meta data for your app (everything except the apk file). They were more strict in what I could write, i.e. I had to remove the part that my app requires a cloud sync subscription to have the app share data with the PC even though it has nothing to do with the app 4) Finally the APK could be submitted and then approved The first two steps took WEEKS!!! The last two steps only took 2-3 days each. You have to include screenshots of the dimensions for the NOOK, I did that using their emulator config file. The Barnes & Noble developer portal is pretty nice, I especially like that they have the "plugin" for the Android emulator to allow you to test with their device image, size, etc. So be forewarned, it's a long process and four phases to go from start to published app. Pay attention to all the guidelines such as the app icon for the web site (300x300px) has to have a backcolor, cannot be transparent ( your .png is inspected ) etc. Thank you Xamarin!!! It's great to be able to have such a wide reach using the Mono* tools. Neal Culiner NC Software, Inc. <http://www.nc-software.com/> http://www.nc-software.com/ ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Consider physical deployment with the evaluation version
Have you tried the new x86 Android 4.0 images? It basically lets you develop Android apps in the same way the iOS simulator does: the apps are compiled for x86 for the emulator, and deploying would compile them for ARM. I don't know if Xamarin has already added support for the x86 target for Android, but if it hasn't, it really should. On Sat, Jun 16, 2012 at 4:13 PM, Paul Johnson wrote: > Hi, > > > I'm doubting I can make an impact but please listen to some feedback from >> someone who just started out with Mono for Android. >> >> Using Visual Studio to develop android applications is really a joy. >> Deploying on the emulator is another experience. >> Its really unworkable slow and it takes the fun out of using and >> experiencing the actual app. >> > > There are a lot of misconceptions over using the emulator. Unless you're > working on a decent processor with a shed load of memory, the emulator is > slow. There is no way around it - most emulators, irrespective of what they > do are slower than the actual device; it's the nature of the beast. > > Once the emulator is up though, it is much quicker. I tend just to keep > the emulator booted on my dev box. It saves time! > > > I understand that the evaluation version is designed so that the app >> cannot >> reach the marker place and be used for a commercial activity. >> If this is the only constraint that please rethink how it's currently >> done. >> >> There are other ways to prevent commercial deployment by for example >> crippling the app, putting a time limit on the execution, show a message >> box >> every x seconds,... >> > > All of which can be worked around. Face it, this has happened with lots of > commercial apps and within a day (typically) there is a patch somewhere > which allows for the nag to be removed. > > > My scenario is that I want to become productive on android, ios and WP >> but I >> first have to pass the learning curve. It will take a few months to get a >> good product and as a single enthousiast I cannot afford to spend 600 $. >> > > I'm sure this is not the case. The cheapest licence is for education which > works out to be $99, but a typical one is a bit more than this. > > > Once the app is finished and I am ready to deploy it to the market place I >> will be ready to buy the licenses. >> > > This is where the argument falls over. You're expecting Xamarin to work on > an honour system. Face it, if they said "everyone, it's free for download - > but you must promise to pay us when you go to market", I can tell you how > long they would last in business - probably slightly less than the time it > will take you to read this email! > > > Please reconsider this as it will make more developers use it to the point >> they have a working app. >> > > To be honest, you can get the working app going on the emulator and show > it around. Enough people like it buy the licence, charge $1 on the > marketplace and recoup the losses that way. It's the way of it. > > Microsoft do the same thing. Buy the product and what you do with it is up > to you and they have the same restricted system with the Express edition - > does most of what you want, but not everything. > > Me, I'll renew my licence in September with pleasure. The Xamarin crew > have been amazingly helpful and supportive and that alone makes it worth > the money :) > > PFJ > > P.S. If anyone wishes to bend what I'm saying or subvert it to their own > arguments, feel free to - you'll end up looking like a bit of a twit as > what I've said is here for the world to see rather than elsewhere... > > > __**_ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/**mailman/listinfo/monodroid<http://lists.ximian.com/mailman/listinfo/monodroid> > -- Neal Gompa (Conan Kudo [ニール・ゴンパ]) Quality Assurance, Platform Integration Enano CMS Project http://enanocms.org ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Minimum Android to Target (suggest use term Default)
I'm implementing features in Android OS 4 but still supporting back to OS 2.2. I have the in my AndroidManifest.xml and all seems fine so far. However, to get support for the newer features, as you know, I had to set the Minimum Android to Target to 4.0. I then saw that the package that was sent to my device and later an emulator was a higher package version. This leads me to believe I should use the max version in my project to code against and this will also send the latest package to the device to use. With this being said, I suggest we adopt the same thing MonoTouch adopted for the SDK version with the term "Default" which uses the latest available API installed on the machine or you can set it to a lower version as needed. This would ensure that we're always pushing the latest package and also ensuring compatibility with the latest OS version. I noticed I had a few conflicts with "using" statements when switching to a later API that I needed to use a fully qualified definition such as with clipboard integration using Android.Text specifically. What do you all think? Should we adopt "Default" for this setting like in MonoTouch? Neal Culiner NC Software, Inc. http://www.nc-software.com <http://www.nc-software.com/> ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Best way to determine if LocationManager exists?
Hello, Kindle Fire and NOOK do not have LocationManager available so I need to test for that just in case some other device also doesn't have it. I'm using the code below but it appears it is not returning null on KindleFire or NOOK: var lm = GetSystemService(LocationService) as Android.Locations.LocationManager; return lm != null; What is the recommended way to test for something such as LocationManager on a device to see if it in fact exists and is available? Thanks, Neal Culiner NC Software, Inc. http://www.nc-software.com ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] What are the supported in-app purchase markets?
I'd like to add in-app purchasing like I did in iOS. I have apps on all three android distributors: Google Play, Amazon, and Barnes & Noble. Before I venture down this path, what in-app vendors are supported in Mono for Android to implement in-app purchasing? Neal Culiner NC Software, Inc. http://www.nc-software.com <http://www.nc-software.com/> ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Mono for Android for Students?
Hello, I was wondering if Xamarin will still offer Student licenses[1]? The page still says we should email Novell. Since Novell no longer handles it, shouldn't that page be updated? [1]: http://android.xamarin.com/Store/Student -- Neal Gompa (Conan Kudo [ニール・ゴンパ]) Quality Assurance, Platform Integration Enano CMS Project http://enanocms.org ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
Re: [mono-android] Mono for Android 1.0.2 Available
How come there is still no Mono for Android release targeting Linux? On Tue, Aug 9, 2011 at 10:22 AM, Jonathan Pobst wrote: > Hey Everyone! > > We are proud to announce the first Xamarin release of Mono for Android! It > took us a while to relearn our release infrastructure, but now we are ready > to resume frequent updates! > > Some changes included in 1.0.2: > > - System.Data.Services.Client.dll is now included. > - System.IO.IsolatedStorage is now included. > - Bug fixes in Garbage Collection > - Various bug fixes > > Full notes: > http://android.xamarin.com/Releases/Mono_for_Android_1/Release_1.0.2 > > MonoDevelop users should be prompted to upgrade next time they open > MonoDevelop, or can use Help->Check for Updates. > > Visual Studio users should download the latest 'trial' version from > http://xamarin.com/trial and install it on top of their current version. > If you've already activated, the new one will be activated as well. > > Happy hacking! > Jonathan > > ___ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > > -- Neal Gompa (Conan Kudo [ニール・ゴンパ]) Quality Assurance, Platform Integration Enano CMS Project http://enanocms.org ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Don't force us to install MonoDevelop on Windows
Hello, Congrats on MfA 4! I'm a Windows / VS 2010 user and prefer not to install things I don't need. I don't use MD on my Windows machine. I would prefer the installer ask if I use VS 2010 or MD and not install the unnecessary items. Also, there is no update notification for prior users in VS 2010 so they need to be notified to download the installer and run it to get updated. Thanks, Neal Culiner NC Software, Inc. <http://www.nc-software.com/> http://www.nc-software.com/ ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Saving a log file and attaching to an e-mail
Hello MfA devs, I have a routine just like I use in MonoTouch (and works) that writes info such as exception to a log file. private static void WriteToLog(string msg) { #if DEBUG Android.Util.Log.Info("LOGBOOK PRO", msg); #endif using (System.IO.StreamWriter s = System.IO.File.AppendText(Utils.LogFilename)) { s.WriteLine(); s.WriteLine(msg); s.WriteLine(""); s.WriteLine(); } } } I am writing to: public readonly static string BaseDir = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); public readonly static string LogFilename = System.IO.Path.Combine(BaseDir, "log.txt"); And when a user submits a bug report (via e-mail) from the about area of the app I attach the file using the code as follows, but for whatever reason, I never get log files, either they are not being created OR attached, not sure which just yet. private void SendBugReport() { var recips = new string[] { "b...@nc-software.com" }; var intent = new Intent(Intent.ActionSend); intent .PutExtra(Intent.ExtraEmail, recips) .PutExtra(Intent.ExtraSubject, "Android App Bug Report") .PutExtra(Intent.ExtraText, String.Format("{0}\n\nSettings\n{1}\nDevice ID: {2}", MessageBody, App.Settings.ToString(),App.UDID)) .SetType("application/octet-stream"); if (File.Exists(Utils.LogFilename)) { Java.IO.File file = new Java.IO.File(Utils.LogFilename); intent.PutExtra(Intent.ExtraStream, Android.Net.Uri.FromFile(file)); } try { StartActivity(Intent.CreateChooser(intent, "Send E-mail Using...")); } catch (Exception ex) { Logger.LogException(ex.Message, ex, "ContactUs"); Toast.MakeText(this, "There are no e-mail clients installed.", ToastLength.Short).Show(); } } Anyone see anything wrong with what I'm doing? The intention is to write a log file to track exceptions and messages and then attach that file to the e-mail. If I can attach a second file I'd love to also send the database (SQLite) but I'm not sure if I can attach multiple attachments or not, or don't know how to. Thank you! Neal Culiner NC Software, Inc. <http://www.nc-software.com/> http://www.nc-software.com/ ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Supported architectures? armeabi-v7a
Should I have both armeabi and aremabi-v7a checked in the application properties? I can't find anything in the MD docs to advise me. Thx, Neal Culiner NC Software, Inc. <http://www.nc-software.com/> http://www.nc-software.com/ ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] armeabi-v7a..is it being included?
I checked this option (and the other one, basic armeabi) but did not see my .apk size grow so I'm not sure it's packaging both in 4.0.1. How do I know? Neal Culiner NC Software, Inc. <http://www.nc-software.com/> http://www.nc-software.com/ ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Calendar integration added in OS 4 ICS
I used the undocumented API's to build in Calendar integration in 2.2. Works great. ICS has its own API come to find out and of course the old undoc'd API I used doesn't work. Anyone worked with the new Calendar API and care to share? Greg or Wally want to create any samples for your lectures/books? Neal Culiner NC Software, Inc. http://www.nc-software.com <http://www.nc-software.com/> ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Android 4 powered tablets?
Hi MD gang, I think I'm going to need to pickup a ICS tablet for dev. I need to integrate things such as Calendar stuff that I don't think you can use/test on an emulator. Anyone know of a good tablet that is/will run Android 4.x? Neal Culiner NC Software, Inc. <http://www.nc-software.com/> http://www.nc-software.com/ ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
[mono-android] Kindle Fire feedback...the process and use
Hi all, I submitted my Android app to the Amazon Appstore as I think the Kindle Fire is going to be a great product at much less cost than an Android tablet and iPad. I bought a Kindle Fire and I'm quite impressed, certainly not as nice as an iPad but I enjoy it. Some feedback on the process: -I submitted my app to Amazon, surprisingly their image specs were a little different than Google's Market Place so that took a little bit of work -Pay attention to the FAQ area of the Amazon dev portal for restrictions on "permissions" i.e. things that won't work on Kindle Fire and therefore won't get your app approved -The app approval process is more inline with Apple. That really surprises me because I don't see any reason Amazon would find the need to review and approve an app that can be obtained via the Google Market. Sure, there's other things like Amazon integrations, but still, just makes it a more painful process -My app took about 3-4 business days to get approved -I was surprised to see my app once approved did not show as an option available for Kindle Fire. Well, if you re-read (aka read) the e-mail of your app approval it will show, in RED, that the Kindle Fire approval process is separate. About a week later my app showed available for Kindle Fire but I did not get any additional e-mails that the approval was complete. -You don't get e-mails at each stage like Apple's App Store which is a shame so you have to check things periodically -Lastly, and more importantly, my UI is a bit messed up on the Kindle Fire. While I did buy a Kindle Fire I actually submitted the app as soon as a customer brought the Kindle Fire to my attention as a platform to support. Input fields aren't tall enough, they truncate the text, some dialogs don't work the same, etc. I haven't tried setting up a VM for the specs Amazon provides so you can test in the Android Sim but I'll try that and of course I'll use my Kindle Fire, if it's allowed, to be a test device and test directly. So that pretty much outlines some Kindle Fire experiences thus far. I'm going to be curious if the VM will show the same issues as running the app on the KF, otherwise you may have to cough up $200 for another test device in your arsenal. FYI Neal Culiner NC Software, Inc. http://www.nc-software.com <http://www.nc-software.com/> ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid