Search found 65 matches
- Mon Feb 04, 2019 2:28 pm
- Forum: java j2ee jsp
- Topic: javascript audio playback example
- Replies: 0
- Views: 33288
javascript audio playback example
<html> <head> <script> var drake = { value: 3, name: 'Energy', artist: 'Drake', audio: 'https://sample-videos.com/audio/mp3/crowd-cheering.mp3', img: '<img style="width: 50%; margin-right: 25%; margin-left: 25%; margin-top: 10%;" src="http://www.getrichrapping.com/wp-content/uploads/...
- Wed Jan 16, 2019 5:53 pm
- Forum: cscope
- Topic: Highlight search
- Replies: 0
- Views: 28065
Highlight search
Open ~/.vimrc file (or create it if it didn't exist).
Add "set hlsearch" in the file.
Save the file.
Add "set hlsearch" in the file.
Save the file.
- Mon Sep 10, 2018 5:38 pm
- Forum: AOSP
- Topic: Add an APK to the AOSP build
- Replies: 0
- Views: 31022
Add an APK to the AOSP build
APKs and APPs with source code go to the same place; the package/app folder. Adding a new APK to the build in /system/app In the AOSP root add the folder: <aosp root>/package/app/< yourappfolder > Then inside this folder add: empty Android.mk < yourapp.apk > The android make file should have the ref...
- Mon Sep 10, 2018 5:32 pm
- Forum: AOSP
- Topic: Remont and change a built image
- Replies: 0
- Views: 25612
Remont and change a built image
<path-to-your-build-dir>/host/linux-x86/bin/simg2img system.img temp.img mkdir system_root sudo mount -t ext4 -o loop temp.img system_root At this point you can make whatever changes you'd like to the files in system_root, i.e. adding apks to system/app etc... When you're done just go back down to t...
- Sun Sep 09, 2018 9:35 am
- Forum: AOSP
- Topic: SELinux and Android
- Replies: 1
- Views: 26305
Disable and chek SELinux enforcment
Check the status of SELinux: adb shell getenforce Disable SELinux enforcement using adb: adb shell setenforce 0 Or at the kernel command line (during early device bring-up): androidboot.selinux=permissive androidboot.selinux=enforcing In BoardConfig.mk add: +CONFIG_CMDLINE="androidboot.selinux=...
- Wed Aug 29, 2018 12:03 pm
- Forum: adb
- Topic: Launch Application without knowning the Activity name
- Replies: 0
- Views: 18647
Launch Application without knowning the Activity name
adb shell monkey -p <PACKAGE_NAME> -v 1
- Tue Jun 12, 2018 9:45 am
- Forum: adb
- Topic: Check which Activity is in foreground ( on top )
- Replies: 0
- Views: 11431
Check which Activity is in foreground ( on top )
adb shell dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp'
- Tue Jun 05, 2018 10:04 pm
- Forum: java j2ee jsp
- Topic: JDBC for Tomcat
- Replies: 0
- Views: 24079
JDBC for Tomcat
Add <TOMCAT_HOME>/lib/mysql-connector-java-5.1.38-bin.jar Create Global Resource in Context <TOMCAT_HOME>/conf/context.xml <Context> ... <Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource" maxTotal="100" maxIdle="30" maxWaitMill...
- Sat Mar 31, 2018 8:03 am
- Forum: AOSP
- Topic: SELinux and Android
- Replies: 1
- Views: 26305
SELinux and Android
To check if you have failures under SELinux: adb root adb shell cat /proc/kmsg | grep -i avc ><36>[ 134.617184] (0)[230:logd.auditd]type=1400 audit(1522507474.770:24): avc: denied { create } for pid=2918 comm="reen.app.tablet" name="realm_6711365682213135548.cv" scontext=u:r:syst...
- Thu Feb 22, 2018 10:41 am
- Forum: Segmented video Streaming
- Topic: Download and merge TS fragments from m3u8 index
- Replies: 2
- Views: 42860
Re: Download and merge TS fragments from m3u8 index
If you have the index and it's called index_1_av.m3u8 Download all fragments: wget -I index_1_av.m3u8 merge the fragments: #!/bin/bash OUT_FILE=MyVideo.ts NUM_SEGMENTS=`ls -l *.ts | wc -l` echo "NUM SEGMENTS: $NUM_SEGMENTS" rm $OUT_FILE # Tested using bash version 4.1.5 #for ((i=1;i<=100;...