Click here to Skip to main content
16,016,814 members
Home / Discussions / Android
   

Android

 
Questionpython Pin
Member 1453431517-Jul-19 23:25
Member 1453431517-Jul-19 23:25 
AnswerRe: python Pin
Richard MacCutchan18-Jul-19 0:37
mveRichard MacCutchan18-Jul-19 0:37 
AnswerRe: python Pin
Afzaal Ahmad Zeeshan18-Jul-19 0:56
professionalAfzaal Ahmad Zeeshan18-Jul-19 0:56 
QuestionQR camera scan with android phone using C# Pin
A.Shoman15-Jul-19 21:04
A.Shoman15-Jul-19 21:04 
AnswerRe: QR camera scan with android phone using C# Pin
Richard MacCutchan15-Jul-19 21:15
mveRichard MacCutchan15-Jul-19 21:15 
Questiondownload sound file in android webview Pin
Member 1450174330-Jun-19 23:00
Member 1450174330-Jun-19 23:00 
QuestionRe: download sound file in android webview Pin
David Crow3-Jul-19 4:11
David Crow3-Jul-19 4:11 
AnswerRe: download sound file in android webview Pin
Member 145017433-Jul-19 4:27
Member 145017433-Jul-19 4:27 
my html script is :






تسجيل الصوت

الايعازات


بدء
ايقاف





-->


and my js script is :


'use strict'

var log = console.log.bind(console),
id = val => document.getElementById(val),
ul = id('ul'),
gUMbtn = id('gUMbtn'),
start = id('start'),
stop = id('stop'),

stream,
recorder,
counter = 1,
chunks,
media;


gUMbtn.onclick = e => {
var mv = id('mediaVideo'),
mediaOptions = {
audio: {
tag: 'audio',
type: 'audio/mpeg',
ext: '.mp3',
gUM: { audio: true }
}
};
media = mv.checked ? mediaOptions.video : mediaOptions.audio;
navigator.mediaDevices.getUserMedia(media.gUM).then(_stream => {
stream = _stream;
id('gUMArea').style.display = 'none';
id('btns').style.display = 'inherit';
start.removeAttribute('disabled');
recorder = new MediaRecorder(stream);
recorder.ondataavailable = e => {
chunks.push(e.data);
if (recorder.state == 'inactive') makeLink();
};
log('got media successfully');
}).catch(log);
}

start.onclick = e => {
start.disabled = true;
stop.removeAttribute('disabled');
chunks = [];
recorder.start();
}


stop.onclick = e => {
stop.disabled = true;
recorder.stop();
start.removeAttribute('disabled');
}



function makeLink() {
var blob = new Blob(chunks, { type: media.type })

, url = window.URL.createObjectURL(blob)

, li = document.createElement('li')
, mt = document.createElement(media.tag)
, hf = document.createElement('a')

;
mt.controls = true;
mt.src = url;
hf.href = url;
hf.download = `SRV_${counter++}${media.ext}`;

hf.innerHTML = `donwload ${hf.download}`;

li.appendChild(mt);
li.appendChild(hf);
ul.appendChild(li);
}
QuestionCan't make charge with stripe in android Fire base Pin
Saboor880220-Jun-19 6:21
Saboor880220-Jun-19 6:21 
SuggestionRe: Can't make charge with stripe in android Fire base Pin
David Crow21-Jun-19 3:08
David Crow21-Jun-19 3:08 
QuestionAll record from SQLite DB is not inserting properly by using PHP and Android. Loop is not working. Pin
PRASANTA KUMAR BISWAS5-May-19 19:33
PRASANTA KUMAR BISWAS5-May-19 19:33 
SuggestionRe: I am unable to send SQLite data(multiple record) to SQL server 2005 database by using PHP and Android Pin
Richard MacCutchan5-May-19 21:55
mveRichard MacCutchan5-May-19 21:55 
GeneralRe: I am unable to send SQLite data(multiple record) to SQL server 2005 database by using PHP and Android Pin
PRASANTA KUMAR BISWAS5-May-19 23:41
PRASANTA KUMAR BISWAS5-May-19 23:41 
GeneralRe: I am unable to send SQLite data(multiple record) to SQL server 2005 database by using PHP and Android Pin
Richard MacCutchan5-May-19 23:51
mveRichard MacCutchan5-May-19 23:51 
SuggestionRe: All record from SQLite DB is not inserting properly by using PHP and Android. Loop is not working. Pin
Richard Deeming8-May-19 1:34
mveRichard Deeming8-May-19 1:34 
Questionno database data after depolyment Pin
Wiep Corbier29-Apr-19 21:54
Wiep Corbier29-Apr-19 21:54 
AnswerRe: no database data after depolyment Pin
Richard MacCutchan29-Apr-19 22:43
mveRichard MacCutchan29-Apr-19 22:43 
GeneralRe: no database data after depolyment Pin
Wiep Corbier29-Apr-19 23:16
Wiep Corbier29-Apr-19 23:16 
GeneralRe: no database data after depolyment Pin
Wiep Corbier30-Apr-19 7:29
Wiep Corbier30-Apr-19 7:29 
GeneralRe: no database data after depolyment Pin
Mycroft Holmes30-Apr-19 12:31
professionalMycroft Holmes30-Apr-19 12:31 
GeneralRe: no database data after depolyment Pin
Wiep Corbier1-May-19 8:10
Wiep Corbier1-May-19 8:10 
Questionandroid Pin
Alazar yikunuamlak11-Apr-19 19:04
Alazar yikunuamlak11-Apr-19 19:04 
AnswerRe: android Pin
Richard MacCutchan11-Apr-19 20:31
mveRichard MacCutchan11-Apr-19 20:31 
QuestionHow to get URL from a browser(Chrome, Firefox…) while sharing highlighted text on react native app? Pin
Member 1418193013-Mar-19 22:56
Member 1418193013-Mar-19 22:56 
AnswerRe: payment for add some control code into an existing apk, opticalelec at yandex.com Pin
Eddy Vluggen2-Mar-19 0:36
professionalEddy Vluggen2-Mar-19 0:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.