sencha-touch-2

Insert the data in phonegap database table?

允我心安 提交于 2019-12-05 07:54:25
问题 In my application, i want to insert the value in the table. i have created the databse in onDeviceReady() method in the index.html file. <!DOCTYPE html> <!-- Auto Generated with Sencha Architect --> <!-- Modifications to this file will be overwritten. --> <html> <head> <meta name="generator" content="HTML Tidy, see www.w3.org"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Teritree</title> <script type="text/javascript" id="phonegap" src= "cordova-2.0.0.js"> <

Disable store load mask in Sencha 2

倖福魔咒の 提交于 2019-12-05 06:49:18
The Sencha store is automatically adding a ajax loader mask when populating the store, but I want to hide it since I have made a more generic mask which is shown every time the app does a ajax request. How can I hide the store load mask? Tried to look in the documentation, but didnt find any appropriate field/method there: See attachement: olegtaranenko The property exists: loadingText , which you have set to null. { xtype: 'list', store: 'Store', loadingText: null, // for ST 2.3.0 set it to false .... } Cheers, Oleg Olegtaranenko: Your solution does remove the loadmask, but setting the

Sencha Touch 2 event: painted vs show?

别等时光非礼了梦想. 提交于 2019-12-05 05:09:19
问题 I have a question regarding the show event. in my application I'm handling the painted event of my panel like this: Ext.define('mvcTest.controller.Test', { extend: 'Ext.app.Controller', config: { refs: { panel: '#testpanel' }, control:{ panel: { painted: 'onPainted' } } }, onPainted: function(){ alert('painted'); } }); the docu say's, that there is also a "show" event, but it get not fired at all: Ext.define('mvcTest.controller.Test', { extend: 'Ext.app.Controller', config: { refs: { panel: '

Sencha touch 2 + Apple push notifications + Ext.device.Push

烂漫一生 提交于 2019-12-05 03:50:28
问题 I recently started developing with Sencha Touch 2, at the moment i'm creating an app that needs support for Apple Push Notifications. So I've created the neccesary certificates at the Apple developer center and used them to package the application with the Sencha Touch SDK tools. All went well and I'm able to run this app on my device. In the app I added a button to receive the device token. When I tap the button it executes the following code: Ext.device.Push.register({ type: Ext.device.Push

Android - Can I set first priority to GPS to get current location in google map?

旧街凉风 提交于 2019-12-05 02:58:09
问题 I want to configure location settings such a way that first priority to get current location using GPS, If GPS is not available than get network provider's location otherwise not. Currently I am getting netwrok provider's settings only. I have set android menifest as below: <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />

How to remove particular view from navigation stack in sencha touch?

孤者浪人 提交于 2019-12-05 01:33:02
问题 I'm pushing views like this this.up('navView').push({xtype: 'myView'}) How can I remove particular view, which is in the middle of navigation stack? At least I should get rid of this warning [WARN][Ext.Component#constructor] Registering a component with a id (listxyz) which has already been used. Please ensure the existing component has been destroyed (Ext.Component#destroy(). 回答1: Before pushing a view check weather the view already exists, and destroy it if its already there, so you wont

Cordova install on Linux

那年仲夏 提交于 2019-12-04 21:13:55
问题 Does anyone know how to install Cordova on Ubuntu/xUbuntu? My attempts at executing npm install cordova as directed from the link and other sources don't work. I get the following long error message: root@li141-82:/var/www/mysite# npm install cordova npm http GET https://registry.npmjs.org/cordova npm ERR! Error: failed to fetch from registry: cordova npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12 npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js

Disabling email,number detection in android WebView

时光怂恿深爱的人放手 提交于 2019-12-04 20:55:45
I'm developing an app with phonegap+sencha touch2+android. I've one panel showing various content that contains emails, some numbers in textual form. As it's a WebView when I tap on number, andorids default MailCompose Activity starts, when I tap on number Dialer Activity starts. How can I disable this from happening. Is there some config I'm missing from android side before loading url or web settings for WebView. Or something from Phonegap because when I saw log cat it shows following line - DroidGap.startActivityForResult(intent,-1) You should be able to add the following to the <head> of

Sencha Touch - Redirect to another view

点点圈 提交于 2019-12-04 19:17:08
I am building a Sencha Touch application and struggling with redirecting or changing another view after login. After login i need to take it to Home Page. But my below code in Login Controller's authenticateUser()not working . Tried with Ext.Viewport.push(homePanel) , Ext.Viewport.setActiveItem(homePanel) also. But nothing works. LoginView Ext.define("Mobile.view.LoginView", { extend: "Ext.form.FormPanel", alias: "widget.mylogin", id: 'loginFormPanel', config: { name: 'loginform', frame: true, url: 'login/Authenticate', title: 'Login', items: [ { xtype: 'fieldset', itemId: 'LoginFieldset',

Using Marker to Spot a particular address in a Map (Sencha Touch 2) Sencha Map

非 Y 不嫁゛ 提交于 2019-12-04 18:50:40
Am trying to build an app which gives a user direction once he or she clicks on the address. the structure of my App goes this way: i have manage to compile all the address i want in a list form, meaning the user can click on the address and it will load the second page. view the picture below: The picture above shows my current app and my current stage of development which am stuck there, when the app loads it show the Page A and when you click on any of the address, it goes to page B. Page be of my App should be a Map with a Marker showing the exact location of the address in the map and if