How to Reskin Android App Video To Gif
Table of Contents
A.
How to build project
B.
App Use Tutorial
C.
How to customize
D.
JNI function Interface
A) How to build project
1. Extract Zip file.
2. Open Andorid Project and import this
project.
3. Build and run.
B) App Use Tutorial
1 Main screen
1.1
User can select video from camera or gallery and go to Work Screen.
1.2
User can go to Video List.
2 Work Screen
2.1
User can play video.
2.2
User can trim video's range using range seek bar.
2.3
User can click "Video To Gif" button.
3 Gallery Screen
3.1
User can play GIF files.
3.2
User can remove GIF file.
3,3
User can share GIF file.
C) How to customize project
1. UI
User
can change package name and replace UI images in res/drawable.
2. Set output path
User
can change the output path in Uils.java
public
static final String OUT_FOLDER_PATH = "/sdcard/your_path";
User
can replace UI images in res/drawable.
User
can use So files to create GIF and So files are in
project/app/src/main/jniLibs.
3. Use So files
Also
user can use So in user's project
and So files are in
project/app/src/main/jniLibs.
How to
use so files?
Copy So
files from path "project/app/src/main/jniLibs" and paste to
"your project /app/src/main/jniLibs"
And then
add following statement to build.gradle
file.
dependencies {
compile fileTree(include: ['*.jar', '*.so'], dir: 'libs')
........
........
}
Last step, user have to add
following JNI functions in work activity.
1. private static native int naMainGIF( String pVideoFileName, String pOutPath, int pNumOfFrames, int nSS, int nSE);
2. private static native int naProgress();
D) JNI function interface
1. private static native int naMainGIF( String
pVideoFileName, String pOutPath,
int pNumOfFrames, int nSS, int nSE);
pVideoFileName:
Source file path to convert.
pOutPath:
Output path
pNumOfFrames: Duration of video
nSS: Start cut pos
nSE: End cut pos
2. private static native
int naProgress();
This
function return the percent value of convert processing.
Admin Mau tanya Untuk APk Reskin kaya gini APakah aman ketika di publish di Playstore???
ReplyDelete