I want to create 5 thumbnails from a video (at 5 different moment in the video) to let the user choose the thumbnail.
I did some search and I didn't find the good way to do that.
Can someone help me?
Thanks
Create thumbnail from Video
Media.Plugin.CrossMedia TakePhotoAsync() in external class
Hello Guys and especially Hello @JamesMontemagno,
i have a question about the CrossMedia library to take photos in Xamarin.Forms.
To avoid duplicate code i wanted to outsource the code which takes the photo and return the taken photo as an MediaFile.
Heres what i tried to do:
ImageManager class:
public async Task TakePhoto()
{
// throw Alert if Camera isnt supported
if (!CrossMedia.Current.IsCameraAvailable || !CrossMedia.Current.IsTakePhotoSupported)
{
Acr.UserDialogs.UserDialogs.Instance.Alert("No Camera", "No Camera available.", "OK");
return null;
}
// take the photo asynchronous
MediaFile file = await CrossMedia.Current.TakePhotoAsync(
new StoreCameraMediaOptions
{
Directory = "asdf",
SaveToAlbum = true,
Name = "examplePhoto.jpg",
PhotoSize = PhotoSize.MaxWidthHeight,
MaxWidthHeight = 100,
});
return file;
}
and then call it from another class like this:
ImageManager imgManager = new ImageManager();
MediaFile file = imgManager.TakePhoto().Result;
What happens is that the camera app of the device opens and then rests in a blackscreen.
When i change the returntype of my TakePhoto()-Method to void, everything works fine.
Does somebody, or you James, know what to do?
Thank you very much, Gelatto
Navigation to custom label
Hi everyone!!! i have made custom label which have property of underline. now i want to add navigation property in that label. i don't know how to do it.
please help me.
Activate my subscription in Xamarin university
Hello,
I just purchased Xamarin University subscription but I can't activate my subscription in Xamarin University Portal. When I tried to claim my subscription using redemption code I got error "Already Redeemed"
I need your help to activate my subscription
which one is the best , crossplatform or xamarin android and xamarin ios alone?
now i am learning crossplatform. but i confused . i dont confident which one is best
Can I publish to app store an app that contains a web view that points to a website ?
I have a web application that requires scanning capabilities.
My client uses Scandit for barcode scanning in other native apps. The web application will need to be able to use the scandit xamarin sdk in order to scan barcodes. I manged to call c# code from javascript and viceversa in order to be able to use the scandit xamarin sdk. My concern is if apple will aprove this type of app(website inside webview and using a third party library to scan and bring the result back to website).
I do not know if this makes sense. Please let me know if you need more information
Design and create the IoT cross platform for Wireless Signal Transmitters
Hello, I want to send real-time embedded data from Wireless signal transmitters from ncd.io to test the DC voltage of panels used in machines, I trying to create the cross-platform app which will able to convert the data from ESP32 (connected with ZigBee IoT receiver router via UART protocol). I want to provide BLE as well as WIFI services in the application with which I have never worked before any suggestion to make this work will be much helpful.
Remoting to a Mac Mini / Best HDD for dev
Hi,
We're looking for options for multiple developers to work on XF/iOS apps. We also will be developing Android / UWP and are a company mostly focussed on .NET / Web services so MS-based development remains critical to us.
We're looking at Mac Minis as a way of multiple developers being able to work on Xamarin / iOS whilst retaining the ability for .NET/Web dev.
I've found using the simulator on Windows whilst connected remotely is always unreliable - although this was on a MacInCloud and also on a VM so may be down to resources but I'm yet to see it consistently work.
On that basis I want to use a Mac Mini which we'll remote to using VNC and develop directly in VS on Mac. Two questions:
1) Does this seem like a plausible option?
2) The Mac Minis on the Apple site have several HDD options; can anyone recommend which would be preferable over 256GB PCIe-based Flash Storage and a 1TB Fusion drive? I've heard build times can vary wildly depending on HDD type.
Thanks!
msbuild throws error message “imported project ”/usr/lib/mono/xbuild/Xamarin/Android/Xamarin.Android
I am trying to build xamarin applications in gitlab runner and i found below issue while building the apps with xbuild or msbuild. The error message is as shown below.
"/builds/Xamarin/ContinousIntegration_Sandbox/Second_Android.sln" (Build target) (1) -> "/builds/Xamarin/ContinousIntegration_Sandbox/Second_Android/Second_Android.csproj" (default target) (2) -> /builds/Xamarin/ContinousIntegration_Sandbox/Second_Android/Second_Android.csproj(105,3): error MSB4019: The imported project "/usr/lib/mono/xbuild/Xamarin/Android/Xamarin.Android.CSharp.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
ZipFile.ExtractToDirectory issue
I've created a backup and restore procedure for my application. When the backup is run, it will create a .zip file of the SQLite database in the same directory as the database.
When restoring the database, it will rename the database, changing it from EPOSDatabase.db3 to tempEPOS.db3
Then, it takes the selected file and extracts it to the same location, under the name EPOSDatabase.db3, before deleting the renamed temporary database.
string dbPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
if (File.Exists(dbPath + "/tempEPOS.db3"))
{
File.Delete(dbPath + "/tempEPOS.db3");
};
File.Move(dbPath + "/EPOSDatabase.db3", dbPath + "/tempEPOS.db3");
ZipFile.ExtractToDirectory(dbPath + "/" + fileToRestore, dbPath + "/EPOSDatabase.db3");
File.Delete(dbPath + "/tempEPOS.db3");
My issue is that when I then have code that opens the connection, for example when I open the system settings page after the restore has been carried out, I get an error: "Could not open database file: /data/user/0/com.companyname.ACPlus_MobileEPOS/files/EPOSDatabase.db3 (CannotOpen)"
As a further debug test, I added this code to the startup of the application:
string path = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
foreach (var file in Directory.GetFiles(path))
{
string strFile = Convert.ToString(file);
}
public readonly string dbPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "EPOSDatabase.db3");
var db = new SQLiteConnection(dbPath);
db.CreateTable<Category>();
db.CreateTable<SystemSettings>();
db.Close();
In the foreach loop, it only found the original .zip file that I was trying to restore from.
Then when it reaches the line
var db = new SQLiteConnection(dbPath);
it fails to create the database with the message ": Could not open database file: /data/user/0/com.companyname.ACPlus_MobileEPOS/files/EPOSDatabase.db3"
It seems like the file doesn't exist, so hasn't extracted properly, but if that was the case then why does it not just create a new database, rather than try to open it?
hosting xamarin webservie
I have read some articles about hosting and it said "Azure" and i want any free alternate for testing.
Is it possible to convert my Xamarin Forms (android part) project to Xamarin Android ?
Hii guys , I have a project in Xamarin Forms ,and I want to convert to Xamarin Android (the android part) , but I dont want to rewrite all the code ...Is there any tool to convert the code?
My ListView is not displayed
I'm trying to draw a screen which should show a ListView with some labels inside, I'm trying to define the XAML but I can not make it show, just everything I put in the ListView is not shown in any way.
The XAML is the following:
<ContentPage xmlns="..."
xmlns:x="..."
xmlns:local="clr-namespace:App2"
x:Class="App2.MainPage">
<StackLayout>
<Label Text="Label test" TextColor="Black" />
<ListView>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout>
<Label Text="Two label test" TextColor="Blue" />
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
I am new to Xamarin, I hope you can help me with this.
Xbox Arguments? how to set Idiom?
what is the correct idiom for xbox? it looks like desktop is not working. i tested my app on xbox and UI looks terrible. Using 3.2 there is default but this is not recognized OnIdiom. looks like only for OnPlatform
<Setter Property="HeightRequest">
<Setter.Value>
<OnIdiom x:TypeArguments="x:Double" Phone="48" Tablet="72" Desktop="96" />
</Setter.Value>
</Setter>
Xamarin Studio 6.3 and Visual Studio for Mac on same system
Hi All,
Can we have Xamarin Studio 6.3 and Visual Studio for Mac installed on same system? And does installing Visual Studio for Mac affects the Xamarin Studio 6.3 plugins/dependable libraries which is already running?
ZXing barcode scanner results
Hi, I'm a noob.
I'm trying get to work zxing barcode scanner.
I'm on Xamarin Forms and fire scanner via image tap gesture.
How can I be notified about scanned barcode in continuous mode?
I've got code like:
`public void ScanBarcode()
{
var scanner = new MobileBarcodeScanner();
scanner.UseCustomOverlay = false;
scanner.TopText = "Saome text";
scanner.BottomText = "Some text";
scanner.CancelButtonText = "Cancel";
var opt = new MobileBarcodeScanningOptions();
opt.DelayBetweenContinuousScans = 3000;
scanner.ScanContinuously(opt, HandleScanResult);
//scanner.Scan();
}
void HandleScanResult(ZXing.Result result)
{
string msg = "";
if (result != null && !string.IsNullOrEmpty(result.Text))
{
msg = "Scanned: " + result.Text;
DisplayAlert("Hi", msg, "OK");
}
else
{
msg = "Cancelled!";
DisplayAlert("Cancelled", msg, "OK");
}
}`
Doesn't get any notifications at all.
This bothers me for a while now
I know no big thing but somethings bothering me pretty much in this forum.
Didn't know where to put this but look at this:
Both on Chrome and Firefox.
Please fix this nonalignment.
Every time I open this forum I get to see this which really bothers my inner self
UFC 229 Live Stream
reddit.com/r/SquaredCircle/comments/9ls138/mma_watch_ufc_229_live_stream_free/
McGregor vs Khabib Live Online
UFC 229 live
[UFC 229 live stream](UFC 229 live stream "UFC 229 live stream")