Re: [mono-android] SQLite Close

2011-08-27 Thread was
Can anyone comment on this? I'm not sure which minimum Android OS version to
target at the moment: 2.1 or 2.2. If I could find out which sqlite
functionality was added in 2.2, that would help. Thanks.

Regards...Andrew

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/SQLite-Close-tp4731952p4740903.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] How to change shapes color dynamically?

2011-08-27 Thread Jonathan Pryor
On Aug 26, 2011, at 5:12 PM, chobo2 wrote:
> Sorry I am still confused. How do I take a shape and change it's color threw 
> code?

You should be able to use the code previously discussed, except use a 
GradientDrawable instead of a ShapeDrawable, e.g.:

var bgShape = (GradientDrawable) 
Resources.GetDrawable(Resource.Drawable.danger_box);
bgShape.SetColor (Resources.GetColor (Resource.Color.test));

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] DataContractJsonSerializer on MonoDroid

2011-08-27 Thread Jonathan Pryor
On Aug 26, 2011, at 10:27 PM, Nick Randolph wrote:
> Does anyone have a sample of this that works.

I don't have a sample, but I think I know the problem you're seeing. You cannot 
currently use DataContractJsonSerializer with types inheriting (directly or 
indirectly) from Java.Lang.Object, because DataContractJsonSerializer doesn't 
invoke the Java.Lang.Object constructor. (Consequently, the Java-side object is 
never allocated, and things go "weird" quickly.)

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] Adding an Audio file

2011-08-27 Thread Jonathan Pryor
On Aug 26, 2011, at 7:10 PM, shaked949 wrote:
> I know how to create button .. 
> but I don't know How to set an actions after the button is selected...
> if you have some links with methods.. (like when I press the button , new
> "page" is opened..or when i press the button ...the user can fill in details
> about him.. )

A view/the screen contents are controlled by an Activity. Thus, each screen you 
have should correspond to an activity.

The easiest way to open a new screen (Activity) is to use 
Context.StartActivity(). Thus, paraphrasing:

[Activity(MainLauncher=true, Label="My App")]
public class MainActivity : Activity {
public override void OnCreate (Bundle b)
{
base.OnCreate (b);
// ...
Button next = FindViewById(Resource.Id.next);
next.Click += (sender, e) {
StartActivity (typeof (NextActivity));
};
}
}

[Activity]
public class NextActivity : Activity {
// ...
}

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] SQLite Close

2011-08-27 Thread Jonathan Pryor
On Aug 27, 2011, at 5:29 AM, was wrote:
> Can anyone comment on this? I'm not sure which minimum Android OS version to
> target at the moment: 2.1 or 2.2. If I could find out which sqlite
> functionality was added in 2.2, that would help. Thanks.

The functionality needed to use Mono.Data.Sqlite was added in Android v2.2, at 
least on the emulators.

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] SQLite Close

2011-08-27 Thread gabriel.b...@gmail.com
So if I use Sqlite I need to target at least Andoird v2.2

2011/8/27 Jonathan Pryor 

> On Aug 27, 2011, at 5:29 AM, was wrote:
> > Can anyone comment on this? I'm not sure which minimum Android OS version
> to
> > target at the moment: 2.1 or 2.2. If I could find out which sqlite
> > functionality was added in 2.2, that would help. Thanks.
>
> The functionality needed to use Mono.Data.Sqlite was added in Android v2.2,
> at least on the emulators.
>
>  - Jon
>
> ___
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] SQLite Close

2011-08-27 Thread was
Works fine on my 2.1 device although Close() doesn't work as you found; I
just leave the connection open while the app is running as I access
different tables in the db all the time. However, I guess there may be other
SQLite functions which don't work in 2.1, but the basic ones I use to open,
read, write, update and query the database all work ok. They all work on the
emulator too.

Regards...Andrew

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/SQLite-Close-tp4731952p4741418.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[mono-android] Could not create the Android package

2011-08-27 Thread Stuart Johnson
I have been working fine all day, testing my application on the 
emulator.  I added a some new activities, icons, and re-factored some 
code, all  of which build fine, yet now I can no longer create an 
android package.

I have tried deleting the obj folder, restarting the emulator, 
restarting the PC, removing the changes I made. Have I missed something?



-- Build started: Project: MapAppDroid, Configuration: Debug Any CPU 
--
   MapAppDroid -> C:\Documents and Settings\User\My Documents\Visual 
Studio 2010\Projects\MapAppDroid\MapAppDroid\bin\Debug\MapAppDroid.dll
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.235]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build started 27/08/2011 17:00:24.
Project "C:\Documents and Settings\User\My Documents\Visual Studio 
2010\Projects\MapAppDroid\MapAppDroid\MapAppDroid.csproj" on node 1 
(SignAndroidPackage target(s)).
_GenerateAndroidAssetsDir:
Skipping target "_GenerateAndroidAssetsDir" because it has no outputs.
_ResolveMonoAndroidSdks:
   Looking for Android SDK..
 Key HKCU\SOFTWARE\Android SDK Tools\Path not found.
 Key HKLM\SOFTWARE\Android SDK Tools\Path found:
   Path contains adb.exe in \platform-tools (C:\Android\android-sdk).
   Looking for Java 6 SDK..
 Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion found.
 Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.6\JavaHome found:
   Path contains jarsigner.exe in \bin (C:\Program 
Files\Java\jdk1.6.0_26).
   MonoAndroid Tools: C:\Program Files\MSBuild\Novell\
   MonoAndroid Framework: C:\Program Files\Reference 
Assemblies\Microsoft\Framework\MonoAndroid\v2.2\;C:\Program 
Files\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\
   Android SDK: C:\Android\android-sdk\
   Java SDK: C:\Program Files\Java\jdk1.6.0_26\
_ValidateAndroidPackageProperties:
   GetAndroidPackageName Task
 ManifestFile: C:\Documents and Settings\User\My Documents\Visual 
Studio 2010\Projects\MapAppDroid\MapAppDroid\Properties\AndroidManifest.xml
 AssemblyName: MapAppDroid
 PackageName: MapAppDroid.MapAppDroid
_UpdateAndroidResgen:
Skipping target "_UpdateAndroidResgen" because all output files are 
up-to-date with respect to the input files.
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all 
output files are up-to-date with respect to the input files.
CoreCompile:
Skipping target "CoreCompile" because all output files are up-to-date 
with respect to the input files.
CopyFilesToOutputDirectory:
   MapAppDroid -> C:\Documents and Settings\User\My Documents\Visual 
Studio 2010\Projects\MapAppDroid\MapAppDroid\bin\Debug\MapAppDroid.dll
_ConvertDebuggingFiles:
Skipping target "_ConvertDebuggingFiles" because all output files are 
up-to-date with respect to the input files.
_CompileAndroidPackage:
   Mandroid Task
 Assemblies: C:\Documents and Settings\User\My Documents\Visual 
Studio 2010\Projects\MapAppDroid\MapAppDroid\bin\Debug\MapAppDroid.dll; 
C:\Program Files\Reference 
Assemblies\Microsoft\Framework\MonoAndroid\v2.2\Mono.Android.dll; 
C:\Program Files\Reference 
Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll; 
C:\Documents and Settings\User\My Documents\Visual Studio 
2010\Projects\MapAppDroid\MapAppDroid\protobuf-net.dll; C:\Program 
Files\Reference 
Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll; 
C:\Program Files\Reference 
Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll; C:\Program 
Files\Reference 
Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll; 
C:\Program Files\Reference 
Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.Linq.dll; 
C:\Documents and Settings\User\My Documents\Visual Studio 
2010\Projects\MapAppDroid\MapAppDroid\TurboDroidConnector.dll
 I18nAssemblies:
 BuildDirectory: C:\Documents and Settings\User\My Documents\Visual 
Studio 2010\Projects\MapAppDroid\MapAppDroid\obj\Debug\
 ReferenceAssembliesDirectory: C:\Program Files\Reference 
Assemblies\Microsoft\Framework\MonoAndroid\v2.2\;C:\Program 
Files\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\;;
 AndroidSdkDirectory: C:\Android\android-sdk\
 JavaSdkDirectory: C:\Program Files\Java\jdk1.6.0_26\
 AssetDirectory: C:\Documents and Settings\User\My Documents\Visual 
Studio 2010\Projects\MapAppDroid\MapAppDroid\obj\Debug\assets\
 AndroidSdkPlatform: 8
 MonoAndroidToolsDirectory: C:\Program Files\MSBuild\Novell\
 ResourceDirectory: C:\Documents and Settings\User\My 
Documents\Visual Studio 2010\Projects\MapAppDroid\MapAppDroid\obj\Debug\res\
 ManifestTemplate: C:\Documents and Settings\User\My 
Documents\Visual Studio 
2010\Projects\MapAppDroid\MapAppDroid\Properties\AndroidManifest.xml
 Package: MapAppDroid.MapAppDroid
 NativeLibrary:
 JavaSource:
 Debug: True
 UseSharedRuntime: True
 SupportedAbis: armeabi
 LinkMode: None

Re: [mono-android] Could not create the Android package

2011-08-27 Thread Greg Shackles
Tough to say exactly what's wrong from that log, but my guess is that it's
related to your application's resources. You mentioned adding icons, so I'd
suggest removing those (or maybe any other resources you added) from the
project and see if packaging works again.


- Greg

On Sat, Aug 27, 2011 at 12:10 PM, Stuart Johnson wrote:

> I have been working fine all day, testing my application on the
> emulator.  I added a some new activities, icons, and re-factored some
> code, all  of which build fine, yet now I can no longer create an
> android package.
>
> I have tried deleting the obj folder, restarting the emulator,
> restarting the PC, removing the changes I made. Have I missed something?
>
>
>
> -- Build started: Project: MapAppDroid, Configuration: Debug Any CPU
> --
>   MapAppDroid -> C:\Documents and Settings\User\My Documents\Visual
> Studio 2010\Projects\MapAppDroid\MapAppDroid\bin\Debug\MapAppDroid.dll
> Microsoft (R) Build Engine Version 4.0.30319.1
> [Microsoft .NET Framework, Version 4.0.30319.235]
> Copyright (C) Microsoft Corporation 2007. All rights reserved.
>
> Build started 27/08/2011 17:00:24.
> Project "C:\Documents and Settings\User\My Documents\Visual Studio
> 2010\Projects\MapAppDroid\MapAppDroid\MapAppDroid.csproj" on node 1
> (SignAndroidPackage target(s)).
> _GenerateAndroidAssetsDir:
> Skipping target "_GenerateAndroidAssetsDir" because it has no outputs.
> _ResolveMonoAndroidSdks:
>   Looking for Android SDK..
> Key HKCU\SOFTWARE\Android SDK Tools\Path not found.
> Key HKLM\SOFTWARE\Android SDK Tools\Path found:
>   Path contains adb.exe in \platform-tools (C:\Android\android-sdk).
>   Looking for Java 6 SDK..
> Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion found.
> Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.6\JavaHome found:
>   Path contains jarsigner.exe in \bin (C:\Program
> Files\Java\jdk1.6.0_26).
>   MonoAndroid Tools: C:\Program Files\MSBuild\Novell\
>   MonoAndroid Framework: C:\Program Files\Reference
> Assemblies\Microsoft\Framework\MonoAndroid\v2.2\;C:\Program
> Files\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\
>   Android SDK: C:\Android\android-sdk\
>   Java SDK: C:\Program Files\Java\jdk1.6.0_26\
> _ValidateAndroidPackageProperties:
>   GetAndroidPackageName Task
> ManifestFile: C:\Documents and Settings\User\My Documents\Visual
> Studio 2010\Projects\MapAppDroid\MapAppDroid\Properties\AndroidManifest.xml
> AssemblyName: MapAppDroid
> PackageName: MapAppDroid.MapAppDroid
> _UpdateAndroidResgen:
> Skipping target "_UpdateAndroidResgen" because all output files are
> up-to-date with respect to the input files.
> GenerateTargetFrameworkMonikerAttribute:
> Skipping target "GenerateTargetFrameworkMonikerAttribute" because all
> output files are up-to-date with respect to the input files.
> CoreCompile:
> Skipping target "CoreCompile" because all output files are up-to-date
> with respect to the input files.
> CopyFilesToOutputDirectory:
>   MapAppDroid -> C:\Documents and Settings\User\My Documents\Visual
> Studio 2010\Projects\MapAppDroid\MapAppDroid\bin\Debug\MapAppDroid.dll
> _ConvertDebuggingFiles:
> Skipping target "_ConvertDebuggingFiles" because all output files are
> up-to-date with respect to the input files.
> _CompileAndroidPackage:
>   Mandroid Task
> Assemblies: C:\Documents and Settings\User\My Documents\Visual
> Studio 2010\Projects\MapAppDroid\MapAppDroid\bin\Debug\MapAppDroid.dll;
> C:\Program Files\Reference
> Assemblies\Microsoft\Framework\MonoAndroid\v2.2\Mono.Android.dll;
> C:\Program Files\Reference
> Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll;
> C:\Documents and Settings\User\My Documents\Visual Studio
> 2010\Projects\MapAppDroid\MapAppDroid\protobuf-net.dll; C:\Program
> Files\Reference
> Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll;
> C:\Program Files\Reference
> Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll; C:\Program
> Files\Reference
> Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll;
> C:\Program Files\Reference
> Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.Linq.dll;
> C:\Documents and Settings\User\My Documents\Visual Studio
> 2010\Projects\MapAppDroid\MapAppDroid\TurboDroidConnector.dll
> I18nAssemblies:
> BuildDirectory: C:\Documents and Settings\User\My Documents\Visual
> Studio 2010\Projects\MapAppDroid\MapAppDroid\obj\Debug\
> ReferenceAssembliesDirectory: C:\Program Files\Reference
> Assemblies\Microsoft\Framework\MonoAndroid\v2.2\;C:\Program
> Files\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\;;
> AndroidSdkDirectory: C:\Android\android-sdk\
> JavaSdkDirectory: C:\Program Files\Java\jdk1.6.0_26\
> AssetDirectory: C:\Documents and Settings\User\My Documents\Visual
> Studio 2010\Projects\MapAppDroid\MapAppDroid\obj\Debug\assets\
> AndroidSdkPlatform: 8
> MonoAndroidToolsDirectory: C:\Program Files\MSBuild\Novell\
> Resour

Re: [mono-android] Could not create the Android package

2011-08-27 Thread Stuart Johnson
I have removed everything I can think of that I have added.  I changed 
the case of some objects, could that be it?  I noticed that if I change 
the filename case of something in the resourses folder, it fails to 
change in the Resource.Designer file unless I change the name too.



On 27/08/11 17:15, Greg Shackles wrote:
Tough to say exactly what's wrong from that log, but my guess is that 
it's related to your application's resources. You mentioned adding 
icons, so I'd suggest removing those (or maybe any other resources you 
added) from the project and see if packaging works again.



- Greg

On Sat, Aug 27, 2011 at 12:10 PM, Stuart Johnson 
mailto:stu...@logicethos.com>> wrote:


I have been working fine all day, testing my application on the
emulator.  I added a some new activities, icons, and re-factored some
code, all  of which build fine, yet now I can no longer create an
android package.

I have tried deleting the obj folder, restarting the emulator,
restarting the PC, removing the changes I made. Have I missed
something?



-- Build started: Project: MapAppDroid, Configuration: Debug
Any CPU
--
  MapAppDroid -> C:\Documents and Settings\User\My Documents\Visual
Studio 2010\Projects\MapAppDroid\MapAppDroid\bin\Debug\MapAppDroid.dll
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.235]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build started 27/08/2011 17:00:24.
Project "C:\Documents and Settings\User\My Documents\Visual Studio
2010\Projects\MapAppDroid\MapAppDroid\MapAppDroid.csproj" on node 1
(SignAndroidPackage target(s)).
_GenerateAndroidAssetsDir:
Skipping target "_GenerateAndroidAssetsDir" because it has no outputs.
_ResolveMonoAndroidSdks:
  Looking for Android SDK..
Key HKCU\SOFTWARE\Android SDK Tools\Path not found.
Key HKLM\SOFTWARE\Android SDK Tools\Path found:
  Path contains adb.exe in \platform-tools
(C:\Android\android-sdk).
  Looking for Java 6 SDK..
Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion
found.
Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.6\JavaHome
found:
  Path contains jarsigner.exe in \bin (C:\Program
Files\Java\jdk1.6.0_26).
  MonoAndroid Tools: C:\Program Files\MSBuild\Novell\
  MonoAndroid Framework: C:\Program Files\Reference
Assemblies\Microsoft\Framework\MonoAndroid\v2.2\;C:\Program
Files\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\
  Android SDK: C:\Android\android-sdk\
  Java SDK: C:\Program Files\Java\jdk1.6.0_26\
_ValidateAndroidPackageProperties:
  GetAndroidPackageName Task
ManifestFile: C:\Documents and Settings\User\My Documents\Visual
Studio
2010\Projects\MapAppDroid\MapAppDroid\Properties\AndroidManifest.xml
AssemblyName: MapAppDroid
PackageName: MapAppDroid.MapAppDroid
_UpdateAndroidResgen:
Skipping target "_UpdateAndroidResgen" because all output files are
up-to-date with respect to the input files.
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all
output files are up-to-date with respect to the input files.
CoreCompile:
Skipping target "CoreCompile" because all output files are up-to-date
with respect to the input files.
CopyFilesToOutputDirectory:
  MapAppDroid -> C:\Documents and Settings\User\My Documents\Visual
Studio 2010\Projects\MapAppDroid\MapAppDroid\bin\Debug\MapAppDroid.dll
_ConvertDebuggingFiles:
Skipping target "_ConvertDebuggingFiles" because all output files are
up-to-date with respect to the input files.
_CompileAndroidPackage:
  Mandroid Task
Assemblies: C:\Documents and Settings\User\My Documents\Visual
Studio
2010\Projects\MapAppDroid\MapAppDroid\bin\Debug\MapAppDroid.dll;
C:\Program Files\Reference
Assemblies\Microsoft\Framework\MonoAndroid\v2.2\Mono.Android.dll;
C:\Program Files\Reference
Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll;
C:\Documents and Settings\User\My Documents\Visual Studio
2010\Projects\MapAppDroid\MapAppDroid\protobuf-net.dll; C:\Program
Files\Reference
Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll;
C:\Program Files\Reference
Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll; C:\Program
Files\Reference
Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll;
C:\Program Files\Reference
Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.Linq.dll;
C:\Documents and Settings\User\My Documents\Visual Studio
2010\Projects\MapAppDroid\MapAppDroid\TurboDroidConnector.dll
I18nAssemblies:
BuildDirectory: C:\Documents and Settings\User\My Documents\Visual
Studio 2010\Projects\MapAppDroid\MapAppDroid\obj\Debug\