This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Activity(Theme = "@style/MyTheme.Splash", MainLauncher = true, NoHistory = true)] | |
public class SplashActivity : AppCompatActivity | |
{ | |
static readonly string TAG = "X:" + typeof(SplashActivity).Name; | |
public override void OnCreate(Bundle savedInstanceState, PersistableBundle persistentState) | |
{ | |
base.OnCreate(savedInstanceState, persistentState); | |
// Create your application here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RelativeLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/container" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<FrameLayout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StreamPlaybackService : INotifyPropertyChanged | |
{ | |
private readonly LibVLC _libVLC; | |
private MediaPlayer _appMediaPlayer; | |
public MediaPlayer AppMediaPlayer | |
{ | |
get | |
{ | |
return _appMediaPlayer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RadioItemAdapterViewHolder : Java.Lang.Object | |
{ | |
//adapter views to re-use | |
public TextView StationNameTxt; | |
public TextView StationLocationTxt; | |
public ImageView StationLogo; | |
public ImageView FavoriteImg; | |
public RadioItemAdapterViewHolder(View itemView) : base(itemView) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here is my todo list of MVP that I will be working on: | |
- [] Xamarin Android (not Forms) | |
- [] Blazor WebAssembly | |
- [] React native for Android | |
- [] Flutter | |
What was done | |
- [x] Xamarin Froms Android | |
https://medium.com/@damiendelaire/from-uwp-development-to-using-xamarin-forms-for-cross-platform-development-for-a-small-audio-6475a4ea3291 | |
- [x] Blazor WebAssembly preview 2019 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DatabaseService : IDatabaseService | |
{ | |
public string GetDatabasePath() | |
{ | |
string dbPath = ""; | |
if (Device.RuntimePlatform == Device.Android) | |
{ | |
dbPath= Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), AppConstants.DatabaseName); | |
} | |
else if (Device.RuntimePlatform == Device.iOS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace DailymotionUITest.v2 | |
{ | |
[TestClass] | |
public class Login_scenario : DailymotionSession |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DataService | |
{ | |
public async Task<string> MakeRequest(RequestBase req) | |
{ | |
if (req == null) | |
{ | |
throw new ArgumentNullException("req"); | |
} | |
//creating http message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// wrapper to serialize correctly when sending requests. | |
/// </summary> | |
public class RequestWrapper | |
{ | |
public string query { get; set; } | |
public string variables { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IFileIoReaderHelper | |
{ | |
string ReadFromDefaultFile(string fileName); | |
} | |
public class FileIOReaderHelper : IFileIoReaderHelper | |
{ | |
//Read the content from Json file | |
public string ReadFromDefaultFile(string fileName) | |
{ |
NewerOlder