package me.chayan.mediaplayerdemo;
import android.content.Context;
import android.content.res.AssetFileDescriptor;
import android.content.res.Resources;
import android.media.AudioFormat;
import android.media.AudioManager;
import android.media.AudioTrack;
import android.media.MediaPlayer;
It is a library that receives and returns the version of the application uploaded to the market. If it is different from the current version, you can write the code so that it can be updated after moving to the market.
We refine some methods on the Internet and distribute them in the form of a library. The original java source is also attached.
How to parse and fetch the Google Market website It takes a lot of data
- Download the BIOS update from Acer site
ZQ0_125.exe
- Run the downloaded file, you will get an error like
No battery
orLow battery
, Don't close the error dialogue (!) - Navigate to your current users temp directory (e.g. Users//AppData/Local/Temp), there should be somewhere a temporary directory containing the extracted files from the EXE file (for me it was
7zS8C43.tmp
) - Copy the temp directory somewhere (then you can then close the error dialogue, the temp files will be removed)
- Open the file
platform.ini
with a text editor and search for the keyAC_Adapter
- Change parameter
BatteryCheck
from1
to0
or just leave it empty (this disables battery check during BIOS update preparation!), save the file - Run
InsydeFlash.exe
in the same directory
It solved my issue and work beautifully..
You can download this file from the browser or from the console. The latter is shown below (note: the specific Node.js version might be different for you):
wget http://nodejs.org/dist/v14.15.0/node-v14.15.0-linux-x64.tar.gz
sudo tar -C /usr/local --strip-components 1 -xzf node-v14.15.0-linux-x64.tar.gz
You may find list of node version on http://nodejs.org/dist/
This is a gist used in the following blog posts:
This file contains hidden or 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
import 'package:flutter/material.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( | |
title: 'Flutter Demo', | |
theme: new ThemeData( |
This file contains hidden or 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
1. Create Custom TextView. | |
public class TextViewDrawable extends android.support.v7.widget.AppCompatTextView { | |
public TextViewDrawable(Context context, @Nullable AttributeSet attrs) { | |
super(context, attrs); | |
} | |
/** |
This file contains hidden or 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
//source: http://electronics.stackexchange.com/q/59615 | |
int AC_LOAD = 3; // Output to Opto Triac pin | |
int dimming = 128; // Dimming level (0-128) 0 = ON, 128 = OFF | |
void setup() | |
{ | |
pinMode(AC_LOAD, OUTPUT); // Set the AC Load as output | |
attachInterrupt(0, zero_crosss_int, RISING); // Choose the zero cross interrupt # from the table above | |
} |
This file contains hidden or 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
/* Counting Milliseconds with Timer1 | |
* --------------------------------- | |
* For more information see | |
* http://www.adnbr.co.uk/articles/counting-milliseconds | |
* | |
* 620 bytes - ATmega168 - 16MHz | |
*/ | |
// 16MHz Clock | |
#define F_CPU 16000000UL |