4xx / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

svg-edit in a apache cordova app #1233

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Highlighting the need for mobile apps 

I tried Svg Edit on Android using Apache Cordova.
included below is a link.

As mentioned in issue 526: Enable touch UI could be improved
but it seems somewhat near usable.

Apache cordova is a browser shell with additional optional javascript 
accessible plugins that provide a uniform interface across several devices like 
android, blackberry, ios, wp8 etc. Cordova at present uses a version (maybe 30) 
of the chromium browser.

you need jdk7, npm, google adt/sdk, other dependent dev tools
download svg-edit-2.7 somewhere,

npm install -g cordova
npm install -g plugman

cordova create SvgEditUbiq com.svgedit.SvgEditUbiq SvgEditUbiq
cd SvgEditUbiq
cordova platform add android
# make/export the device size png files from logo.svg to relevant folders 
# find platforms/android/res/ | egrep -i svgeditubiq.png
# platforms/android/res/drawable-hdpi/svgeditubiq.png
# platforms/android/res/drawable-xhdpi/svgeditubiq.png
# platforms/android/res/drawable-ldpi/svgeditubiq.png
# platforms/android/res/drawable-mdpi/svgeditubiq.png
# platforms/android/AndroidManifest.xml to change '@drawable/icon' to 
'@drawable/svgeditubiq'
cd www
mv index.html index.orig.html
cp -R /somewhere/svg-edit-2.7/* .
cp svg-editor.html index.html
( cd .. ; cordova build ; cordova emulate --target=AConfiguredDevice android )

# start adb-wifi on android
adb start-server
adb connect 192.168.x.x:5555
adb  -s 192.168.x,x:5555 install -r 
../platforms/android/ant-build/SVGEditUbiq-debug.apk

https://github.com/hgkamath/Svg-Edit-Ubiq
http://cordova.apache.org/

APK file
https://github.com/hgkamath/Svg-Edit-Ubiq/raw/master/platforms/android/ant-build
/SVGEditUbiq-debug.apk

Attched is a screenshot 

Original issue reported on code.google.com by hgkam...@gmail.com on 5 Aug 2014 at 12:49

Attachments: