Error:Could not determine the class-path for interface
Last weekend, I started to migrate my old projects to the latest Android Studio. That is not a smooth process, first error I got is "Could not determine the class-path for interface com.android.builder.model.AndroidProject". I believe that caused by the old grade. I got a tip smart from Android Studio saying I should upgrade the version from 0.22 to 2.3.0. So I modified the classpath in the build.gradle file
Then I still got the same error. After I did some research on the internet. I found to upgrade the gradle. I need to change gradle-wrapper.properties too.
That is to get the latest package.
[Xamarin]Get the Screen Height and convert for Height Request
That is impossible to detect screen size in the Xamarin Form. You have to do in the native Android code.l suggest to do in MainActivity and then put in the static variable in the Forms PCL project like this:
Android.Util.DisplayMetrics displayMetrics = new Android.Util.DisplayMetrics();
Also, the unit of HeightRequest is device-independent units. But I found if you use HeightPixel divide by Density of the screen, then it will convert into the unit for HeightRequest or WidthRequest
Microsoft Surface Laptop
Last week, finally, I got a chance to see a Microsoft Surface Laptop in JB HiFi. This product is available in Australia! I got about one minute to try this laptop. Firstly, I found it looks like Surface Book, just only it cannot detach its screen to become a tablet. Secondly, it has a fabricskin keyboard. I found that is very comfortable. Also, the fabric cover made me feel warm when I type. Thirdly, the screen is sharp too.
Well, there is the usual downside again. The price tag is not cheap. The Core i7 with 8GB and 256SSD costs $2499.
In the end, it cost too much, I cannot have it!
LG V10 got Android 7
I have used my LG V10 for one and half year. In general, that is not bad. A few days ago, I got the latest update for Android OS. That is Android 7. I used Samsung before; I only got 2 OS updates. But LG sounds a better deal. My LG V10 came with Android 4.4, then I got Android 5.5 not long afterward. About a year ago, I got Android 6.0. Now, I got Android 7.0. I like it.
After the upgrade, my phone is still smooth. Moreover, I love the notification hub. The new way is more organized. Lastly, I found the icon sets are changed, the style got more flatten.
Samsung Galaxy S8 Phone
Last week, I was in JB HiFi. I saw a real Samsung s8. That looks fancy. The screen is big and occupied every space on phone surface to be a screen.No Physical keys at all. It looks good. Moreover, the screen is very sharp and beautiful. This kind of screen is a signature feature of Samsung. The curved edge of the screen looks too! But I don't know the usage of this. Also, it has Android 7.0. I believe that will be a good price. But the price tag is $1199 which is a bit of too much for me!