언어 설정

Menu
Sites
Language
Use the Web Device API on emulator

I am new to tizen, I have just installed the latest IDE.

I have opened the sample systemInfo and run on the emulator. 

When i click the either of the button, it says "Exception: tizen is not defined".

 

It seems i fail to access the device api.

Anything i need to do before using the device api ?

I have tried to set the privilege etc but it doesn't work.

 

Anyone can give me some direction ? 

 

Thanks

 

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/systemInfo" version="0.1.7" viewmodes="maximized">
    <tizen:application id="nzH1jZofk8.systemInfo" package="nzH1jZofk8" required_version="2.2"/>
    <content src="index.html"/>
     <feature name="http://tizen.org/api/tizen"/>
    <feature name="http://tizen.org/api/application"/>
    <feature name="http://tizen.org/api/application.kill"/>
    <feature name="http://tizen.org/api/application.launch"/>
    <feature name="http://tizen.org/api/application.read"/>
    <feature name="http://tizen.org/api/alarm"/>
    <feature name="http://tizen.org/api/alarm.read"/>
    <feature name="http://tizen.org/api/alarm.write"/>
    <feature name="http://tizen.org/feature/screen.size.normal.720.1280"/>
    <icon src="icon.png"/>
    <name>systemInfo</name>
    <tizen:privilege name="http://tizen.org/privilege/application.launch"/>
    <tizen:privilege name="http://tizen.org/privilege/alarm"/>
    <tizen:privilege name="http://tizen.org/privilege/notification"/>
    <tizen:privilege name="http://tizen.org/privilege/application.read"/>
    <tizen:privilege name="http://tizen.org/privilege/application.info"/>
    <tizen:setting screen-orientation="portrait" context-menu="enable" background-support="disable" encryption="disable" install-location="auto" hwkey-event="enable"/>
</widget>

 

Responses

7 댓글
Alex Dem

Hi,
I suppose that you should check that you have included

<script src="tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.js"></script>
<script src="tizen-web-ui-fw/latest/js/tizen-web-ui-fw.js"></script>

in html or you could create Web project based File-> New->Tizen Web project->Tizen Web UI Framework, if you want to use device api.
Alexey.

thomas lee

I have just checked, the following code is already included in the index.html.

Does it matter?

    <script src="tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
    <script src="tizen-web-ui-fw/latest/js/tizen-web-ui-fw.min.js"
			data-framework-viewport-scale="false"
			data-framework-theme="tizen-white"></script>javascript:void(0)

 

My project is just sample apps which inside the IDE.

Here is the source code.

https://www.sendspace.com/file/19mrt5

 

I saw someone said changing workspace will solve the problem and I tried but it doesn't apply to my case.

Thanks

Alex Dem

Hi,
I have checked provided Web app on Tizen devices - it is ok.
I have temporary problem to launch web apps on emulator.
Alexey.

thomas lee

Thanks

Can you access the system info by clicking the item ?

May be it is my device problems?

I have also installed the tizen emulator for TV, i am not sure if there are conflicts.

 

Let me try to uninstall and install again.

 

Alex Dem

Yes, I am able to click on every item (Storage, Battery, CPU etc) and observe results.
I have checked on M0(GT-I9300),  M1(SM-Z9005) , M2(SM-Z910F).
I have tried install/uninstall. It works ok.
I am working on sdk 2.2.1 (for win7 32 bit) installed on pc with xp.
Alexey.

Alex Dem

Hi,
just fyi: I was able to launch your sample with or without any privileges in config.xml on Emulator (regular Emulator from Tizen SDK).
Alexey.

thomas lee

I have tried to uninstall and install again, it doesn't work either.

When i press those few button, it says tizen is not defined.

I am using win7 64 bit.