Skip to content

Commit 3fe3d8f

Browse files
committed
SDL activity exported, add screenshots
1 parent b1165f7 commit 3fe3d8f

File tree

7 files changed

+45
-36
lines changed

7 files changed

+45
-36
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,33 +67,37 @@
6767
<category android:name="android.intent.category.DEFAULT" />
6868
</intent-filter>
6969
</activity>
70+
7071
<activity android:name="com.jecelyin.editor.v2.settings.EditorSettingsActivity" />
7172
<activity android:name="com.duy.file.explorer.FileExplorerActivity" />
72-
7373
<activity android:name=".ui.examples.ExampleActivity" />
7474
<activity android:name=".compiler.CompilerSettingActivity" />
7575

7676
<activity
77-
android:name="com.pdaxrom.cctools.CCToolsActivity"
77+
android:name=".console.TermActivity"
7878
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
79-
android:label="@string/app_name"
79+
android:exported="true"
80+
android:label="@string/console_name"
8081
android:windowSoftInputMode="adjustResize" />
8182

83+
8284
<activity
83-
android:name=".console.TermActivity"
85+
android:name="com.pdaxrom.cctools.CCToolsActivity"
8486
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
85-
android:label="@string/console_name"
87+
android:label="@string/app_name"
8688
android:windowSoftInputMode="adjustResize" />
8789

8890
<activity
8991
android:name="com.pdaxrom.cctools.BuildActivity"
9092
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
9193
android:label="@string/buildwindow_name"
9294
android:windowSoftInputMode="adjustResize" />
95+
9396
<activity
9497
android:name="com.pdaxrom.utils.FileDialog"
9598
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
9699
android:label="@string/filebrowser_name" />
100+
97101
<activity android:name="com.pdaxrom.cctools.LauncherNativeActivity">
98102
<intent-filter>
99103
<action android:name="com.pdaXrom.cctools.action.RUN" />

editor.txt

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
1-
Chào các bạn
2-
Phiên bản mới của CPP-N-IDE (1.1.2) đã hỗ trợ "make", hỗ trợ thêm các "options" khi compile. Trong tương lai mình sẽ hỗ trợ cả "GitHub, Svn" và nhiều tính năng đặc biệt khác.
3-
4-
Các bạn có thể test thử hoặc góp ý, mình sẽ dần hoàn thiện ứng dụng.
5-
Ứng dụng này không quảng cáo, mình làm vì cộng đồng.
6-
7-
CPP N-IDE - Ứng dụng lập trình C/C++ trên Android
8-
Ứng dụng giúp các bạn có thể học và viết chương trình C/C++ trên chính chiếc điện thoại của mình.
9-
10-
Link tải https://play.google.com/store/apps/details?id=com.duy.c.cpp.compiler
11-
12-
Các tính năng chính
13-
- Trình biên dịch C/C++ GNU
14-
- Terminal emulator
15-
- Trình quản lý lỗi, phân tích cú pháp,..
16-
- Compiler output
17-
- Tô sáng cú pháp
18-
- các ví dụ C/C++ từ https://www.programiz.com/cpp-programming/examples
19-
- Quản lý file
20-
- Multi Tab: bạn có thể mở các tệp khác nhau trong các tab khác nhau để quản lý việc chỉnh sửa nhiều tệp cùng lúc một cách dễ dàng.
21-
- Thanh công cụ: bạn có thể nhanh chóng tạo tệp mới, mở, lưu, lưu dưới dạng, hoàn tác / làm lại, chèn một số biểu tượng thường được sử dụng, quay lại vị trí chỉnh sửa cuối cùng, v.v.
22-
- Danh sách các tệp đã mở gần đây
23-
- Tìm kiếm, thay thế hoặc thay thế tất cả
24-
- Thay đổi kiểu chữ và cỡ chữ
25-
- Hiển thị số dòng
26-
- Hiển thị các ký tự khoảng trống (tab, ngắt dòng)
27-
- Word wrap
28-
- Khóa hướng màn hình tự động, ngang hoặc dọc
29-
- Tự động thụt lề
30-
- Chủ đề tối / sáng
1+
#
2+
# SDL application Makefile
3+
# type without args to build
4+
# type run to execute
5+
# type clean to clean sources
6+
# type log to check application log
7+
#
8+
9+
TARGET = draw2
10+
11+
all: $(TARGET)
12+
13+
CFLAGS = -Os -Wall -DANDROID -I${EXTERNAL_STORAGE}/CCPlusPlusNIDE/SDL/include
14+
15+
LDFLAGS = -shared ${EXTERNAL_STORAGE}/CCPlusPlusNIDE/SDL/lib/SDL_android_main.o -L${EXTERNAL_STORAGE}/CCPlusPlusNIDE/SDL/lib -lSDL2 -lGLESv1_CM -llog -lm
16+
17+
SDLRUN = am start $(shell am 2>&1| grep -q '\-\-user' && echo '--user 0') -n com.duy.c.cpp.compiler.sdlplugin/.sdlpluginActivity -e sdlmain
18+
19+
OBJS = $(TARGET).o
20+
21+
$(TARGET): $(OBJS)
22+
$(CC) -o lib$@.so $^ $(LDFLAGS)
23+
24+
clean:
25+
rm -f $(OBJS) lib$(TARGET).so
26+
27+
run: $(TARGET)
28+
$(SDLRUN) $(PWD)/lib$(TARGET).so
29+
30+
log:
31+
logcat -d | grep SDL
32+
ls -la /system/bin/am
33+
am start -n com.duy.c.cpp.compiler.sdlplugin/.sdlpluginActivity
34+
am start -n com.duy.c.cpp.compiler/com.duy.ccppcompiler.ui.InstallActivity
476 KB
Loading

sdlplugin/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<activity
1717
android:name=".sdlpluginActivity"
1818
android:configChanges="orientation|keyboard|keyboardHidden|screenSize"
19+
android:exported="true"
1920
android:label="@string/app_name">
2021

2122
<intent-filter>

sdlplugin/Examples.rar

427 KB
Binary file not shown.

sdlplugin/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ android {
2727
versionCode 4
2828
versionName "1.0.4"
2929
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
30-
multiDexEnabled true
3130
ndk {
3231
abiFilters 'armeabi-v7a', 'x86'
3332
}

sdlplugin/install.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
adb uninstall com.duy.c.cpp.compiler.sdlplugin
22
adb install -r ./build/outputs/apk/release/sdlplugin-release.apk
33
adb shell am start -n "com.duy.c.cpp.compiler.sdlplugin/com.duy.c.cpp.compiler.sdlplugin.sdlpluginActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
4+
exit

0 commit comments

Comments
 (0)