2015年8月30日日曜日

UI Design

http://www.oracle.com/webfolder/ux/middleware/alta_icon_mobile_design_guide/navigation_icons-navigation_bar.html

http://www.oracle.com/webfolder/ux/mobile/component/button.html

http://bip-lab-adf.blogspot.jp/2013/10/different-shapes-of-button-in-oracle-adf.html

How to change ICON color:
http://www.iconworkshop.cn/xiazai.html

Android DDMS can not find device
1.>> adb nodaemon server
cannot bind 'tcp:5037'

>> netstat -ano
>> tasklist|findstr or taskkill /f /pid

2.>>netstat -a -n -o |findstr "5037"
输出结果:  
TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       5096  
TCP    127.0.0.1:5037         127.0.0.1:51577        ESTABLISHED     5096  
TCP    127.0.0.1:51577        127.0.0.1:5037         ESTABLISHED     43242. 
>>tasklist /v | findstr 5096
>>tadb.exe
>>taskkill /f -pid XXX

2015年8月16日日曜日

Push Notification Doc

Baidu Push Notification Service
http://push.baidu.com/doc/ios/api

Google Push Notification Service
https://docs.pushio.com/API_&_cURL_Information/Platform_Specific_Payloads/GCM_%28Google_Cloud_Messaging%29

Apple Push Notification Service
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html

APNS specific schema  
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html#//apple_ref/doc/uid/TP40008194-CH100-SW1

Invoking custom Javascript from AMX pages

https://blogs.oracle.com/mobile/entry/invoking_custom_javascript_from_an
Integrating Cordova Plugin with Oracle MAF - Android Calendar Plugin
https://blogs.oracle.com/mobile/entry/integrating_cordova_plugin_with_oracle

2015年8月3日月曜日

SQLite in Oracle MAF

Read more about SQLite in MAF here https://docs.oracle.com/middleware/mobile200/mobile/develop-oepe/oepe-maf-sqlite-db.htm
http://waslleysouza.com.br/en/2015/02/maf-2-0-using-local-database/

Use case
Follow topic show you a couple of things in this post.

1.Create a .db by using a .sql script (when your application starts).
2.How to manage the connection of your SQLite DB.
3.Security regarding the .db
4.Doing operations on your DB (SELECT, INSERT, DELETE and UPDATE)

http://adf4beginners.com/2013/03/adf-mobile-sqlite-in-adf-mobile/

2015年1月9日金曜日

Issue: Install iamsuite on Windows Server 2012

Error info:
Configure Security Store:execute the following command
oracle_common\common\bin\wlst.cmd
@ $ORACLE_HOME\common\tools\configureSecurityStore.py -d
@ $DOMAIN_HOME -c IAM -m create -p <OPSS_SCHEMA_PASSWORD>

Failed to get environment, environ will be empty: (0, u'Failed to execute
comman
d ([\'sh\', \'-c\', \'env\']): java.io.IOException: Cannot run program "sh":
Cre
ateProcess error=2, \x8Ew\x92\u80B3\x82\uA0BD\x83t\x83@\x83')
Problem invoking WLST - Traceback (innermost last):
  File
"C:\Users\Administrator\Desktop\Alice_setup\AliceMdw\Oracle_IDM1\common\t
@ ools\configureSecurityStore.py", line 42, in ?
  File
"C:\Users\ADMINI~1\Desktop\ALICE_~1\AliceMdw\WLSERV~1.3\common\wlst\modul
es\jython-modules.jar\Lib/javaos$py.class", line 256, in __getitem__
  File
"C:\Users\ADMINI~1\Desktop\ALICE_~1\AliceMdw\WLSERV~1.3\common\wlst\modul
es\jython-modules.jar\Lib/UserDict$py.class", line 14, in __getitem__
  File
"C:\Users\ADMINI~1\Desktop\ALICE_~1\AliceMdw\WLSERV~1.3\common\wlst\modul
es\jython-modules.jar\Lib/javaos$py.class", line 256, in __getitem__
  File
"C:\Users\ADMINI~1\Desktop\ALICE_~1\AliceMdw\WLSERV~1.3\common\wlst\modul
es\jython-modules.jar\Lib/UserDict$py.class", line 14, in __getitem__
KeyError: COMMON_COMPONENTS_HOME 


Workaround:
To solve this, we need to patch the jython-modules.jar. we need to go to C:\Oracle\Middleware\wlserver_10.3\common\wlst\modules and add in javashell.py "Windows Server 2012".

For example:
_osTypeMap = (
( "nt", ( 'nt', 'Windows NT', 'Windows NT 4.0', 'WindowsNT',
'Windows 2000', 'Windows 2003', 'Windows XP', 'Windows CE',
'Windows Vista', 'Windows Server 2008', 'Windows 7', 'Windows Server 2012' )),
( "dos", ( 'dos', 'Windows 95', 'Windows 98', 'Windows ME' )),
( "mac", ( 'mac', 'MacOS', 'Darwin' )),
( "None", ( 'None', )),