[Q] MiLocker theming question - Android Q&A, Help & Troubleshooting

Ok, ive found the thread on editing the chinese characters out of the xml file, i actually found it was easier to assign mtz to 7zip, then i can just open the lockscreen file without ever renaming it, and it automatically updates the mtz on close, works for me, but i actually have a couple of questions
found a couple themes that i really like and would like to edit them to fit my needs better, but to use the email id have to switch gmail currently use K-9, i cant figure out what information to switch out, also use mixzing but i believe this uses the stock media player or some other one, im new with android, and coding never really was a forte
ive attached the manifest xml as a rar file
Got it figured out, switched lockscreens, and just edited the code so now it also has a music control
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Thought it pointless to start a new thread for the same thing, so yet another question,
The following is a excerpt from the manifest.xml file for the lockscreen ive been modifying,
Code:
<!-- APP2 -->
<Unlocker name="app2" category="Apps">
<StartPoint x="148" y="#screen_height-211" w="70" h="70">
<NormalState>
<Image x="148" y="#screen_height-211" src="app_gmail.png"/>
</NormalState>
</StartPoint>
<EndPoint x="138" y="#screen_height-122" w="95" h="164">
<Intent action="android.intent.action.MAIN" package="com.miui.player" class="com.miui.player.drawerActivityGroup.MainActivityGroup"/>
<PressedState>
<Image x="31" y="#screen_height-198" src="app_phone.png"/>
<Image x="262" y="#screen_height-211" src="app_camera.png"/>
<Image x="379" y="#screen_height-198" src="app_msg.png"/>
<Image x="0" y="#screen_height-84" src="sense_panel.png">
<PositionAnimation>
<Position x="0" y="32" time="120"/>
<Position x="0" y="32" time="20000"/>
</PositionAnimation>
</Image>
<Image x="120" y="#screen_height-88" src="sense_ring_appready.png">
<PositionAnimation>
<Position x="-20" y="-72" time="120"/>
<Position x="-20" y="-72" time="20000"/>
</PositionAnimation>
</Image>
<Image x="185" y="#screen_height-75" src="app_gmail_on_ring.png">
<AlphaAnimation>
<Alpha a="0" time="0"/>
<Alpha a="0" time="120"/>
<Alpha a="255" time="260"/>
<Alpha a="255" time="20000"/>
</AlphaAnimation>
</Image>
<Text x="241" y="275" color="#FF000000" size="20" text=" " align="center" alpha="120">
<AlphaAnimation>
<Alpha a="0" time="0"/>
<Alpha a="255" time="180"/>
<Alpha a="255" time="20000"/>
</AlphaAnimation>
<PositionAnimation>
<Position x="0" y="12" time="180"/>
<Position x="0" y="12" time="20000"/>
</PositionAnimation>
</Text>
<Text x="240" y="274" color="#AAFFFFFF" size="20" text=" " align="center">
<AlphaAnimation>
<Alpha a="0" time="0"/>
<Alpha a="255" time="180"/>
<Alpha a="255" time="20000"/>
</AlphaAnimation>
<PositionAnimation>
<Position x="0" y="12" time="180"/>
<Position x="0" y="12" time="20000"/>
</PositionAnimation>
</Text>
<Text x="241" y="295" color="#FF000000" size="20" text=" " align="center" alpha="120">
<AlphaAnimation>
<Alpha a="0" time="0"/>
<Alpha a="255" time="180"/>
<Alpha a="255" time="20000"/>
</AlphaAnimation>
<PositionAnimation>
<Position x="0" y="12" time="180"/>
<Position x="0" y="12" time="20000"/>
</PositionAnimation>
</Text>
<Text x="240" y="294" color="#AAFFFFFF" size="20" text=" " align="center">
<AlphaAnimation>
<Alpha a="0" time="0"/>
<Alpha a="255" time="180"/>
<Alpha a="255" time="20000"/>
</AlphaAnimation>
<PositionAnimation>
<Position x="0" y="12" time="180"/>
<Position x="0" y="12" time="20000"/>
</PositionAnimation>
</Text>
</PressedState>
<ReachedState>
<Image x="31" y="#screen_height-198" src="app_phone.png"/>
<Image x="262" y="#screen_height-211" src="app_camera.png"/>
<Image x="379" y="#screen_height-198" src="app_msg.png"/>
<Image x="0" y="#screen_height-52" src="sense_panel.png"/>
<Image x="100" y="#screen_height-160" src="sense_ring_appready_appon.png"/>
<Image x="185" y="#screen_height-75" src="app_gmail_on_ring.png"/>
<Text x="241" y="275" color="#FF000000" size="20" text=" " align="center" alpha="120">
</Text>
<Text x="240" y="196" color="#AAFFFFFF" size="20" text=" " align="center">
</Text>
<Text x="241" y="295" color="#FF000000" size="20" text=" " align="center" alpha="120">
</Text>
<Text x="240" y="294" color="#AAFFFFFF" size="20" text=" " align="center">
</Text>
</ReachedState>
</EndPoint>
</Unlocker>
<!-- END APP2 -->
I believe the line that needs to be edited follows:
Code:
<Intent action="android.intent.action.MAIN" package="com.miui.player" class="com.miui.player.drawerActivityGroup.MainActivityGroup"/>
I cant seem to figure out what it needs to say in order for the lockscreen to show the Complete action Using Use by default for this action pop up
any body know what it should say instead?

Related

[Q] MIUI lockscreen theme specific question

Hi people. I hope i'm in the right section of the forum, if not I agree you to beat me.
I just want to help a friend who actually use this theme for MIUI :
http://forums.miui.us/showthread.php?301-Theme-Ultimate-iPhone-theme-21-10-REVOLUTION-7-0
With this theme, on the lockscreen, we can toggle the normal slider to "Camera and music mode" by double tap the slider.
But there's a small bug, the guy who made this theme talk about that bug in this page (scrool down) :
http://forums.miui.us/showthread.php?301-Theme-Ultimate-iPhone-theme-21-10-REVOLUTION-7-0/page82
In fact, we can toggle the slider once to camera mode, but if we double tap the slider again to return on the normal slider, the slider desapear completly...
Here's the manifest.xml :
<Lockscreen version="1" frameRate="20">
<Wallpaper/>
<Image x="0" y="0" src="bg.png" category="Charging"/>
<Image x="0" y="0" src="bg.png" category="BatteryLow"/>
<Image x="0" y="0" src="bg.png" category="BatteryFull"/>
<Image name="time_bg" x="0" y="40" src="hs_time_bg.png" visibility="true"/>
<DateTime name="date" x="240" y="140" color="#FFFFFFFF" size="28" format="EEEEEEEE dd MMMMMMMMM" align="center" visibility="true"/>
<MusicControl x="20" y="90" name="music_control" visibility="false">
<Image name="music_album_cover" x="-50" y="110" w="512" h="512" />
<Image x="-20" y="110+138*min(#call_missed_count,1)-138*min(#sms_unread_count,1)*min(#call_missed_count,1)+138*min(#sms_unread_count,1)" src="info_bg.png" alpha="255"/>
<Image x="17" y="125+138*min(#call_missed_count,1)-138*min(#sms_unread_count,1)*min(#call_missed_count,1)+138*min(#sms_unread_count,1)" src="music.png" alpha="255"/>
<Text name="music_display" x="67" y="125+138*min(#call_missed_count,1)-138*min(#sms_unread_count,1)*min(#call_missed_count,1)+138*min(#sms_unread_count,1)" w="440" marqueeSpeed="30" size="18" color="#FFFFFF" alpha="255"/>
<Button name="music_prev" x="40" y ="50" w="108" h="84">
<Normal>
<Image src="music_previous_n.png" x="40" y="50" />
</Normal>
<Pressed>
<Image src="music_previous_p.png" x="40" y="50" />
</Pressed>
</Button>
<Button name="music_next" x="332" y ="50" w="108" h="84">
<Normal>
<Image src="music_next_n.png" x="332" y="50" />
</Normal>
<Pressed>
<Image src="music_next_p.png" x="332" y="50" />
</Pressed>
</Button>
<Button name="music_play" x="186" y ="50" w="108" h="84">
<Normal>
<Image src="music_play_n.png" x="186" y="50" />
</Normal>
<Pressed>
<Image src="music_play_p.png" x="186" y="50" />
</Pressed>
</Button>
<Button name="music_pause" x="186" y ="50" w="108" h="84">
<Normal>
<Image src="music_pause_n.png" x="186" y="50" />
</Normal>
<Pressed>
<Image src="music_pause_p.png" x="186" y="50" />
</Pressed>
</Button>
</MusicControl>
<Image x="0" y="0" src="status_bar.png"/>
<Time x="116" y="60" src="time.png"/>
<!-- Missed calls -->
<Image x="0" y="200" src="info_bg.png" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
<Image x="37" y="215" src="icon_phone.png" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
<Text x="87" y="220" color="#FFFFFFFF" size="18" format="Appels : %d" paras="#call_missed_count" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
<!-- Missed SMS-->
<Image x="0" y="269" src="info_bg.png" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
<Image x="37" y="284" src="icon_sms.png" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
<Text x="87" y="289" color="#FFFFFFFF" size="18" format="Messages : %d" paras="#sms_unread_count" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
<Image name="bbg" x="0" y="#screen_height-144" src="bottom_bg.png" visibility="true"/>
<Image name="bbg2" x="0" y="#screen_height-144" src="bottom_bg2.png" visibility="false"/>
<!--missed unlocers-->
<Unlocker name="unlocker_phone" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)">
<StartPoint x="30" y="215" w="35" h="35" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)">
<NormalState>
<Image x="37" y="215" src="unlock_phone.png" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)">
</Image>
</NormalState>
</StartPoint>
<EndPoint x="359" y="215" w="35" h="35" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)">
<Intent action="android.intent.action.VIEW" type="vnd.android.cursor.dir/calls" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
<PressedState>
<Image x="34" y="#screen_height-105" src="unlock_button.png"/>
<Image x="37" y="284" src="unlock_sms.png" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
</PressedState>
<Path x="0" y="215" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)">
<Position x="30" y="0" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
<Position x="359" y="0" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
</Path>
</EndPoint>
</Unlocker>
<Unlocker name="unlocker_sms" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)">
<StartPoint x="37" y="284" w="35" h="35" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)">
<NormalState>
<Image x="37" y="284" src="unlock_sms.png" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)">
</Image>
</NormalState>
</StartPoint>
<EndPoint x="359" y="284" w="35" h="35">
<Intent action="android.intent.action.MAIN" type="vnd.android-dir/mms-sms" category="android.intent.category.DEFAULT"/>
<PressedState>
<Image x="34" y="#screen_height-105" src="unlock_button.png"/>
<Image x="37" y="215" src="unlock_phone.png" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
</PressedState>
<Path x="0" y="284">
<Position x="37" y="0" />
<Position x="359" y="0" />
</Path>
</EndPoint>
</Unlocker>
<!-- Slide to unlock -->
<Image name="slideto" x="0" y="#screen_height-89" src="hs_path_bg.png" alpha="255-#unlocker.move_x/100*255" visibility="true"/>
<Image name="slideto2" x="-120" y="#screen_height-89" src="hs_path_light.png" alpha="255-#unlocker.move_x/100*255" visibility="true">
<PositionAnimation>
<Position x="460" y="0" time="2000"/>
</PositionAnimation>
<Mask name="slideto3" x="0" y="#screen_height-89" src="hs_path_mask.png" align="absolute" visibility="true"/>
</Image>
<!-- Slide to unlock -Camera -->
<Image name="slidetoc" x="0" y="#screen_height-89" src="hs_path_bg1.png" alpha="255-#unlocker.move_x/100*255" visibility="false"/>
<Image name="slideto2c" x="-120" y="#screen_height-89" src="hs_path_light.png" alpha="255-#unlocker.move_x/100*255" visibility="false">
<PositionAnimation>
<Position x="460" y="0" time="2000"/>
</PositionAnimation>
<Mask name="slideto3c" x="0" y="#screen_height-89" src="hs_path_mask1.png" align="absolute" visibility="false"/>
</Image>
<Image x="-30" y="330" src="batterylow.png" category="BatteryLow"/>
<!-- Charging-->
<Image x="-30" y="330" src="cartoon_sun.png" category="Charging">
</Image>
<!-- Charging-->
<Image x="-30" y="330" src="cartoon_sun.png" category="BatteryFull">
</Image>
<!-- Charging progress -->
<Image x="-30" y="330" category="Charging" alpha="200">
<SourcesAnimation>
<Source src="xj_charging_level_1.png" time="200"/>
<Source src="xj_charging_level_2.png" time="400"/>
<Source src="xj_charging_level_3.png" time="600"/>
<Source src="xj_charging_level_4.png" time="800"/>
<Source src="xj_charging_level_5.png" time="1000"/>
<Source src="xj_charging_level_6.png" time="1200"/>
<Source src="xj_charging_level_7.png" time="1400"/>
<Source src="xj_charging_level_8.png" time="2400"/>
</SourcesAnimation>
</Image>
<Image x="-30" y="330" src="cartoon_sunshine.png" category="BatteryFull">
<AlphaAnimation>
<Alpha a="200" time="0"/>
<Alpha a="255" time="2000"/>
<Alpha a="200" time="4000"/>
</AlphaAnimation>
</Image>
<!-- Charging-->
<Text x="170" y="#screen_height-200" category="Charging" color="#AAFFFFFF" size="24" format="Chargement %d%%" paras="#battery_level">
</Text>
<!-- Charging-->
<Text x="208" y="#screen_height-200" category="BatteryFull" color="#AAFFFFFF" size="24" text="Chargée">
</Text>
<!-- Music Unlocker-->
<Unlocker name="munlocker" visibility="false">
<StartPoint x="34" y="#screen_height-105" w="104" h="71">
<NormalState>
<Image x="34" y="#screen_height-105" src="unlock_button2.png" >
</Image>
</NormalState>
</StartPoint>
<EndPoint x="222" y="#screen_height-105" w="104" h="71" >
<Path x="0" y="#screen_height-105" >
<Position x="34" y="0" />
<Position x="222" y="0" />
</Path>
</EndPoint>
</Unlocker>
<!-- Main Unlocker-->
<Unlocker name="unlockere1">
<StartPoint x="34" y="#screen_height-105" w="104" h="71">
<NormalState>
<Image x="34" y="#screen_height-105" src="unlock_button.png">
</Image>
</NormalState>
</StartPoint>
<EndPoint x="341" y="#screen_height-105" w="104" h="71">
<NormalState>
<Image x="37" y="284" src="unlock_sms.png" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
<Image x="37" y="215" src="unlock_phone.png" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
</NormalState>
<Path x="0" y="#screen_height-105">
<Position x="34" y="0" />
<Position x="341" y="0" />
</Path>
</EndPoint>
</Unlocker>
<!-- Camera Unlocker-->
<Unlocker name="unlockerc" visibility="false">
<StartPoint x="341" y="#screen_height-105" w="104" h="71">
<NormalState>
<Image x="341" y="#screen_height-105" src="camera.png" alpha="10"/>
</NormalState>
<PressedState>
<Image x="341" y="#screen_height-105" src="camera.png"/>
<Image x="37" y="284" src="unlock_sms.png" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
<Image x="37" y="215" src="unlock_phone.png" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
</PressedState>
<ReachedState>
<Image x="341" y="#screen_height-105" src="camera.png"/>
<Image x="37" y="284" src="unlock_sms.png" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
<Image x="37" y="215" src="unlock_phone.png" alpha="255*min(#call_missed_count,1)+255*min(#sms_unread_count,1)"/>
</ReachedState>
</StartPoint>
<EndPoint x="341" y="#screen_height-105" w="96" h="96">
<Intent action="android.intent.action.MAIN" package="com.miui.camera" class="com.miui.camera.Camera"/>
<Path x="341" y="#screen_height-105">
<Position x="0" y="0" />
<Position x="0" y="1" />
</Path>
</EndPoint>
</Unlocker>
<Button x="34" y="#screen_height-105" w="104" h="71">
<Triggers>
<Trigger action="double" target="music_control" property="visibility" value="toggle"/>
<Trigger action="double" target="munlocker" property="visibility" value="toggle"/>
<Trigger action="double" target="unlockerc" property="visibility" value="toggle"/>
<Trigger action="double" target="slideto" property="visibility" value="toggle"/>
<Trigger action="double" target="slideto2" property="visibility" value="toggle"/>
<Trigger action="double" target="slideto3" property="visibility" value="toggle"/>
<Trigger action="double" target="slidetoc" property="visibility" value="toggle"/>
<Trigger action="double" target="slideto2c" property="visibility" value="toggle"/>
<Trigger action="double" target="slideto3c" property="visibility" value="toggle"/>
<Trigger action="double" target="bbg" property="visibility" value="toggle"/>
<Trigger action="double" target="bbg2" property="visibility" value="toggle"/>
<Trigger action="double" target="date" property="visibility" value="toggle"/>
</Triggers>
</Button>
</Lockscreen>
Click to expand...
Click to collapse
Really sorry if that's a noobish or annoying question, i'm good with photoshop, more less with codes lines.
Hope we can help us.
Thanks a lot.
Cheers.

[Q] need help with my own APK

i would like an apk of my forum, i'm running a VBulletin.
all the help i need is put this HTML code in an APK for android
here's the HTML:
Code:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" dir="ltr" lang="en" id="vbulletin_html">
<head>
<meta charset="ISO-8859-1" />
<meta id="e_vb_meta_bburl" name="vb_meta_bburl" content="http://cheatgamerz.net" />
<base href="http://cheatgamerz.net/" />
<meta name="generator" content="vBulletin 4.1.11" />
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
<meta name="keywords" content="vbulletin,forum,bbs,discussion,bulletin board" />
<meta name="description" content="This is a discussion forum powered by vBulletin. To find out about vBulletin, go to http://www.vbulletin.com/ ." />
<script type="text/javascript" src="http://cheatgamerz.net/clientscript/jquery/jquery-1.6.4.min.js?v=4111"></script>
<script type="text/javascript">
<!--
var SESSIONURL = "";
var SECURITYTOKEN = "1334173656-98c757636220f6f346490a2c7cd9e0ad40de1173";
var IMGDIR_MISC = "images/misc";
var IMGDIR_BUTTON = "images/buttons";
var IMGDIR_MOBILE = "images/mobile";
var vb_disable_ajax = parseInt("0", 10);
var SIMPLEVERSION = "4111";
var BBURL = "http://cheatgamerz.net";
var LOGGEDIN = 3 > 0 ? true : false;
var THIS_SCRIPT = "index";
var RELPATH = "forum.php?styleid=2";
var USER_STYLEID = "10";
var MOBILE_STYLEID = "2";
var MOBILE_STYLEID_ADV = "2";
var USER_DEFAULT_STYLE_TYPE = "standard";
// -->
</script>
<script type="text/javascript" src="http://cheatgamerz.net/clientscript/vbulletin-mobile-init.js?v=4111"></script>
<script type="text/javascript" src="http://cheatgamerz.net/clientscript/jquery/jquery.mobile-1.0.vb.js?v=4111"></script>
<script type="text/javascript" src="http://cheatgamerz.net/clientscript/vbulletin-mobile.js?v=4111"></script>
<link rel="stylesheet" href="clientscript/jquery/jquery.mobile-1.0.min.css?v=4111" />
<link rel="stylesheet" type="text/css" href="css.php?styleid=2&langid=1&d=1334165634&td=ltr&sheet=bbcode.css,editor.css,popupmenu.css,reset-fonts.css,vbulletin.css,vbulletin-chrome.css,vbulletin-formcontrols.css," />
<title>Forums</title>
</head>
<body>
<div data-role="page" data-theme="d" id="page-home">
<div id="header">
<div id="header-left">
<img src="images/mobile/vbulletin-logo.png" alt="Forums - Powered by vBulletin" />
</div>
<div id="header-right">
<img src="images/mobile/gridmenu.png" />
<img src="images/mobile/search.png" />
</div>
</div>
<div id="navbar" class="navbar">
<ul class="breadcrumb" data-role="listview" data-theme="d">
<li data-theme="a">Navigation</li>
</ul>
</div>
<div data-role="content">
<ul data-role="listview" class="forumbits">
<li data-role="list-divider">
<h3>Main Category</h3>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_2" alt="" />
<h3>CheatGamerz News</h3>
<span class="ui-li-count">2</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_4" alt="" />
<h3>CheatGamerz General</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_36" alt="" />
<h3>CheatGamerz Events</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_37" alt="" />
<h3>Introduce Yourself</h3>
<span class="ui-li-count">3</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_38" alt="" />
<h3>PRE-VIP Questions</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_new-16.png" class="forumicon ui-li-icon" id="forum_statusicon_5" alt="" />
<h3>Staff Request</h3>
<span class="ui-li-count">2</span>
</li>
<li data-role="list-divider">
<h3>First Person Shooter Hacks</h3>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_18" alt="" />
<h3>Crossfire Hacks</h3>
<p>Crossfire Hacks</p>
<span class="ui-li-count">2</span>
</li>
<li data-role="list-divider">
<h3>Other</h3>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_30" alt="" />
<h3>Coders Lounge</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_31" alt="" />
<h3>HTML</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_32" alt="" />
<h3>C++ /C Programming</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_33" alt="" />
<h3>Visual Basic Programming</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_34" alt="" />
<h3>C# Programming</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_35" alt="" />
<h3>Programming Tutorials</h3>
<span class="ui-li-count">0</span>
</li>
<li data-role="list-divider">
<h3>SmartPhones Hacks</h3>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_40" alt="" />
<h3>Android Hacks</h3>
<span class="ui-li-count">0</span>
</li>
</ul>
</div>
<div id="footer">
<ul id="footer_links">
<li class="first">Log Out</li>
<li>Full Site</li>
<li class="last">Top</li>
</ul>
<div id="footer_copyright" class="shade footer_copyright">
<!-- Do not remove this copyright notice -->
Powered by vBulletin® Version 4.1.11 <br />Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
<!-- Do not remove this copyright notice -->
</div>
<div id="footer_morecopyright" class="shade footer_morecopyright">
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
<img src="http://cheatgamerz.net/cron.php?rand=1334173656" alt="" width="1" height="1" border="0" />
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
NavTabs provided by vBNavTabs (Pro) v1.1.1 - vBulletin Mods & Addons. Copyright © 2012 DragonByte Technologies Ltd.<br />Content Slider provided by vBSlider v1.0.6 - vBulletin Mods & Addons. Copyright © 2012 DragonByte Technologies Ltd.
</div>
</div>
</div><!-- data-role="page" -->
</body>
</html>
thanks for helping
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
Deleted .
NEDD YOUR HELP
Sent from my GT-S7562 using XDA Premium 4 mobile app

[Q] need help with my own apk

i would like an apk of my forum, i'm running a VBulletin.
all the help i need is put this HTML code in an APK for android
here's the HTML:
Code:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" dir="ltr" lang="en" id="vbulletin_html">
<head>
<meta charset="ISO-8859-1" />
<meta id="e_vb_meta_bburl" name="vb_meta_bburl" content="http://cheatgamerz.net" />
<base href="http://cheatgamerz.net/" />
<meta name="generator" content="vBulletin 4.1.11" />
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
<meta name="keywords" content="vbulletin,forum,bbs,discussion,bulletin board" />
<meta name="description" content="This is a discussion forum powered by vBulletin. To find out about vBulletin, go to http://www.vbulletin.com/ ." />
<script type="text/javascript" src="http://cheatgamerz.net/clientscript/jquery/jquery-1.6.4.min.js?v=4111"></script>
<script type="text/javascript">
<!--
var SESSIONURL = "";
var SECURITYTOKEN = "1334173656-98c757636220f6f346490a2c7cd9e0ad40de1173";
var IMGDIR_MISC = "images/misc";
var IMGDIR_BUTTON = "images/buttons";
var IMGDIR_MOBILE = "images/mobile";
var vb_disable_ajax = parseInt("0", 10);
var SIMPLEVERSION = "4111";
var BBURL = "http://cheatgamerz.net";
var LOGGEDIN = 3 > 0 ? true : false;
var THIS_SCRIPT = "index";
var RELPATH = "forum.php?styleid=2";
var USER_STYLEID = "10";
var MOBILE_STYLEID = "2";
var MOBILE_STYLEID_ADV = "2";
var USER_DEFAULT_STYLE_TYPE = "standard";
// -->
</script>
<script type="text/javascript" src="http://cheatgamerz.net/clientscript/vbulletin-mobile-init.js?v=4111"></script>
<script type="text/javascript" src="http://cheatgamerz.net/clientscript/jquery/jquery.mobile-1.0.vb.js?v=4111"></script>
<script type="text/javascript" src="http://cheatgamerz.net/clientscript/vbulletin-mobile.js?v=4111"></script>
<link rel="stylesheet" href="clientscript/jquery/jquery.mobile-1.0.min.css?v=4111" />
<link rel="stylesheet" type="text/css" href="css.php?styleid=2&langid=1&d=1334165634&td=ltr&sheet=bbcode.css,editor.css,popupmenu.css,reset-fonts.css,vbulletin.css,vbulletin-chrome.css,vbulletin-formcontrols.css," />
<title>Forums</title>
</head>
<body>
<div data-role="page" data-theme="d" id="page-home">
<div id="header">
<div id="header-left">
<img src="images/mobile/vbulletin-logo.png" alt="Forums - Powered by vBulletin" />
</div>
<div id="header-right">
<img src="images/mobile/gridmenu.png" />
<img src="images/mobile/search.png" />
</div>
</div>
<div id="navbar" class="navbar">
<ul class="breadcrumb" data-role="listview" data-theme="d">
<li data-theme="a">Navigation</li>
</ul>
</div>
<div data-role="content">
<ul data-role="listview" class="forumbits">
<li data-role="list-divider">
<h3>Main Category</h3>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_2" alt="" />
<h3>CheatGamerz News</h3>
<span class="ui-li-count">2</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_4" alt="" />
<h3>CheatGamerz General</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_36" alt="" />
<h3>CheatGamerz Events</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_37" alt="" />
<h3>Introduce Yourself</h3>
<span class="ui-li-count">3</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_38" alt="" />
<h3>PRE-VIP Questions</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_new-16.png" class="forumicon ui-li-icon" id="forum_statusicon_5" alt="" />
<h3>Staff Request</h3>
<span class="ui-li-count">2</span>
</li>
<li data-role="list-divider">
<h3>First Person Shooter Hacks</h3>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_18" alt="" />
<h3>Crossfire Hacks</h3>
<p>Crossfire Hacks</p>
<span class="ui-li-count">2</span>
</li>
<li data-role="list-divider">
<h3>Other</h3>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_30" alt="" />
<h3>Coders Lounge</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_31" alt="" />
<h3>HTML</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_32" alt="" />
<h3>C++ /C Programming</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_33" alt="" />
<h3>Visual Basic Programming</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_34" alt="" />
<h3>C# Programming</h3>
<span class="ui-li-count">0</span>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_35" alt="" />
<h3>Programming Tutorials</h3>
<span class="ui-li-count">0</span>
</li>
<li data-role="list-divider">
<h3>SmartPhones Hacks</h3>
</li>
<li class="forumbit_post L2">
<img src="images/statusicon/forum_old-16.png" class="forumicon ui-li-icon" id="forum_statusicon_40" alt="" />
<h3>Android Hacks</h3>
<span class="ui-li-count">0</span>
</li>
</ul>
</div>
<div id="footer">
<ul id="footer_links">
<li class="first">Log Out</li>
<li>Full Site</li>
<li class="last">Top</li>
</ul>
<div id="footer_copyright" class="shade footer_copyright">
<!-- Do not remove this copyright notice -->
Powered by vBulletin® Version 4.1.11 <br />Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
<!-- Do not remove this copyright notice -->
</div>
<div id="footer_morecopyright" class="shade footer_morecopyright">
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
<img src="http://cheatgamerz.net/cron.php?rand=1334173656" alt="" width="1" height="1" border="0" />
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
NavTabs provided by vBNavTabs (Pro) v1.1.1 - vBulletin Mods & Addons. Copyright © 2012 DragonByte Technologies Ltd.<br />Content Slider provided by vBSlider v1.0.6 - vBulletin Mods & Addons. Copyright © 2012 DragonByte Technologies Ltd.
</div>
</div>
</div><!-- data-role="page" -->
</body>
</html>
thanks for helping

Develop Calculator application for Lite-Wearable in Harmony OS

Article Introduction
In this article, I have explained to develop a calculator application for Huawei Lite Wearable device using Huawei DevEco Studio and using JS language in Harmony OS. Calculator here performs basic arithmetic operations which can be installed in wearable watch.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Huawei Lite Wearable
Requirements
1) DevEco IDE
2) Lite wearable watch (Can use simulator also)
New Project (Lite Wearable)
After installation of DevEco Studio, make new project.
Select Lite Wearable in Device and select Empty Feature Ability in Template.
After the project is created, its directory as shown in below displayed image.
hml files describe the page layout.
css files describe the page style.
js files process the interactions between pages and users.
The app.js file manages global JavaScript logics and application lifecycle.
The pages directory stores all component pages.
The common directory stores public resource files, such as media resources and .js files.
Integration process
Design the UI
Step 1: Add background image.
As the first step, we can create a UI that contains keypads with all number keys, operator keys and result display text box.
Create and add the background image for calculator screen using stack component.
index.html
Code:
<stack class="stack">
<image src='/common/watchbackground.png' class="background"></image>
</stack>
index.css
Code:
.stack {
width: 454px;
height: 454px;
justify-content: center;
}
Step 2: Add keys UI in the keypad
Create and add rows of the keys for keypad. Numbers 0-9, “.” And equal key for calculating operation.
Code:
<div class="calcRow">
<text class="numberBtn" value="7" onclick="handleNumber(7)"></text>
<text class="numberBtn" value="8" onclick="handleNumber(8)"></text>
<text class="numberBtn" value="9" onclick="handleNumber(9)"></text>
<text class="equalBtn" value=" "></text>
</div>
<div class="calcRow">
<text class="numberBtn" value="4" onclick="handleNumber(4)"></text>
<text class="numberBtn" value="5" onclick="handleNumber(5)"></text>
<text class="numberBtn" value="6" onclick="handleNumber(6)"></text>
<text class="equalBtn" value="=" onclick="handlecalculate"></text>
</div>
<div class="calcRow">
<text class="numberBtn" value="1" onclick="handleNumber(1)"></text>
<text class="numberBtn" value="2" onclick="handleNumber(2)"></text>
<text class="numberBtn" value="3" onclick="handleNumber(3)"></text>
<text class="equalBtn" value=" "></text>
</div>
Code:
.calcRow {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 454px;
height: 50px;
background-color: transparent;
}
.equalBtn {
display: flex;
text-align: center;
width: 75px;
height: 50px;
border-width: 0px;
border-color: #414343;
color: #414343;
background-color: #f87d4f;
}.numberBtn {
display: flex;
text-align: center;
width: 75px;
height: 50px;
border-width: 1px;
color: #414343;
background-color: #ffffff;
border-color: #414343;
border-radius: 5px;
}
For more, you can check https://forums.developer.huawei.com/forumPortal/en/topic/0201459032942010032
John Wo said:
Article Introduction
In this article, I have explained to develop a calculator application for Huawei Lite Wearable device using Huawei DevEco Studio and using JS language in Harmony OS. Calculator here performs basic arithmetic operations which can be installed in wearable watch.
Huawei Lite Wearable
Requirements
1) DevEco IDE
2) Lite wearable watch (Can use simulator also)
New Project (Lite Wearable)
After installation of DevEco Studio, make new project.
Select Lite Wearable in Device and select Empty Feature Ability in Template.
After the project is created, its directory as shown in below displayed image.
hml files describe the page layout.
css files describe the page style.
js files process the interactions between pages and users.
The app.js file manages global JavaScript logics and application lifecycle.
The pages directory stores all component pages.
The common directory stores public resource files, such as media resources and .js files.
Integration process
Design the UI
Step 1: Add background image.
As the first step, we can create a UI that contains keypads with all number keys, operator keys and result display text box.
Create and add the background image for calculator screen using stack component.
index.html
Code:
<stack class="stack">
<image src='/common/watchbackground.png' class="background"></image>
</stack>
index.css
Code:
.stack {
width: 454px;
height: 454px;
justify-content: center;
}
Step 2: Add keys UI in the keypad
Create and add rows of the keys for keypad. Numbers 0-9, “.” And equal key for calculating operation.
Code:
<div class="calcRow">
<text class="numberBtn" value="7" onclick="handleNumber(7)"></text>
<text class="numberBtn" value="8" onclick="handleNumber(8)"></text>
<text class="numberBtn" value="9" onclick="handleNumber(9)"></text>
<text class="equalBtn" value=" "></text>
</div>
<div class="calcRow">
<text class="numberBtn" value="4" onclick="handleNumber(4)"></text>
<text class="numberBtn" value="5" onclick="handleNumber(5)"></text>
<text class="numberBtn" value="6" onclick="handleNumber(6)"></text>
<text class="equalBtn" value="=" onclick="handlecalculate"></text>
</div>
<div class="calcRow">
<text class="numberBtn" value="1" onclick="handleNumber(1)"></text>
<text class="numberBtn" value="2" onclick="handleNumber(2)"></text>
<text class="numberBtn" value="3" onclick="handleNumber(3)"></text>
<text class="equalBtn" value=" "></text>
</div>
Code:
.calcRow {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 454px;
height: 50px;
background-color: transparent;
}
.equalBtn {
display: flex;
text-align: center;
width: 75px;
height: 50px;
border-width: 0px;
border-color: #414343;
color: #414343;
background-color: #f87d4f;
}.numberBtn {
display: flex;
text-align: center;
width: 75px;
height: 50px;
border-width: 1px;
color: #414343;
background-color: #ffffff;
border-color: #414343;
border-radius: 5px;
}
For more, you can check https://forums.developer.huawei.com/forumPortal/en/topic/0201459032942010032
Click to expand...
Click to collapse
can we use java language for Lite variable

Obtaining Device Information in Harmony OS Lite wearable

Introduction
Harmony OS is a future-proof distributed operating system open to you as part of the initiatives for the all-scenario strategy, adaptable to mobile office, fitness and health, social communication, and media entertainment, to name a few. Unlike a legacy operating system that runs on a standalone device, Harmony OS is built on a distributed architecture designed based on a set of system capabilities. It can run on a wide range of device forms, including smartphones, tablets, wearables, smart TVs and head units.
In this article, we will create simple lite wearable JS application to obtain device information.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Requirements
1) DevEco IDE
2) Lite wearable simulator
Implementation
First page, index.hml contains <swiper> container that enables the switch of child components.
Code:
<swiper class="container" index="{{index}}">
<div class="swiper-item item1">
<text class="title">BRAND</text>
<text class="subtitle">{{brand}}</text>
<div class="seperator" ></div>
<text class="title">MANUFACTURER</text>
<text class="subtitle">{{manufacturer}}</text>
<div class="seperator" ></div>
<text class="title">MODEL</text>
<text class="subtitle">{{model}}</text>
</div>
<div class="swiper-item item2">
<text class="title">PRODUCT</text>
<text class="subtitle">{{product}}</text>
<div class="seperator" ></div>
<text class="title">LANGUAGE</text>
<text class="subtitle">{{language}}</text>
<div class="seperator" ></div>
<text class="title">REGION</text>
<text class="subtitle">{{region}}</text>
</div>
<div class="swiper-item item3">
<text class="title">SCREEN SHAPE</text>
<text class="subtitle">{{shape}}</text>
<div class="seperator" ></div>
<text class="title">SCREEN DENSITY</text>
<text class="subtitle">{{screendensity}}</text>
<div class="seperator" ></div>
<text class="title">DIMENSION</text>
<text class="subtitle">{{dimension}}</text>
</div>
</swiper>
index.css has style defined for the page.
Code:
.container {
left: 0px;
top: 0px;
width: 454px;
height: 454px;
}
.swiper-item {
width: 454px;
height: 454px;
flex-direction: column;
justify-content: center;
align-items: center;
}
.item1 {
background-color: #007dff;
}
.item2 {
background-color: #cc0000;
}
.item3 {
background-color: #41ba41;
}
.title {
font-size:30px;
justify-content: center;
}
.subtitle {
font-size:30px;
color: lightgrey;
margin: 15px;
justify-content: center;
}
.seperator {
height: 1px;
width: 454px;
margin-bottom: 5px;
margin-top: 5px;
background-color: white;
}
To obtain the device information, we will call device.info()
Code:
device.getInfo({
success: function(data) {
console.log('success get device info brand:' + data.brand);
_this.brand = data.brand;
_this.manufacturer = data.manufacturer;
_this.model = data.model;
_this.language = data.language;
_this.product = data.product;
_this.region = data.region;
_this.screendensity = data.screenDensity;
_this.shape = data.screenShape;
_this.dimension = data.windowWidth + ' X ' + data.windowHeight;
},
fail: function(data, code) {
console.log('fail get device info code:'+ code + ', data: ' + data);
},
});
Code Snippet of index.js
Code:
import device from '@system.device';
export default {
data: {
brand: '--',
manufacturer: '--',
language: '--',
model: '--',
product: '--',
region: '--',
dimension: '--',
screendensity: 0,
shape : '--'
}
,
onInit(){
let _this = this;
device.getInfo({
success: function(data) {
console.log('success get device info brand:' + data.brand);
_this.brand = data.brand;
_this.manufacturer = data.manufacturer;
_this.model = data.model;
_this.language = data.language;
_this.product = data.product;
_this.region = data.region;
_this.screendensity = data.screenDensity;
_this.shape = data.screenShape;
_this.dimension = data.windowWidth + ' X ' + data.windowHeight;
},
fail: function(data, code) {
console.log('fail get device info code:'+ code + ', data: ' + data);
},
});
}
}
Tips and Tricks
Not all the information can be obtained on simulator. Hence it is recommended to use physical Harmony OS wearable watch.
Conclusion
In this article, we learnt how easily we can obtain wearable device information such as brand, product, device dimension, density, etc.
References
Harmony OS JS API :
Document
developer.harmonyos.com
Harmony Official document -
Document
developer.harmonyos.com
Very useful

Categories

Resources