mobile

Using both XML and Coded views in Android

天涯浪子 提交于 2020-02-04 23:06:13
问题 I am trying to use both a coded views and an xml views at the same time in the Android OS. I want the xml layout to hold the basic layout and setup, while I will use coded views to create more dynamic parts. Here's my setup, I receive no compiling errors but the app crashes when ran. The Java: import android.app.Activity; import android.os.Bundle; import android.widget.LinearLayout; import android.widget.TextView; public class TopImages extends Activity { /** Called when the activity is first

Using both XML and Coded views in Android

喜欢而已 提交于 2020-02-04 23:05:48
问题 I am trying to use both a coded views and an xml views at the same time in the Android OS. I want the xml layout to hold the basic layout and setup, while I will use coded views to create more dynamic parts. Here's my setup, I receive no compiling errors but the app crashes when ran. The Java: import android.app.Activity; import android.os.Bundle; import android.widget.LinearLayout; import android.widget.TextView; public class TopImages extends Activity { /** Called when the activity is first

Opening inspect (pressing F12) on Chrome via Selenium

ε祈祈猫儿з 提交于 2020-02-04 11:05:27
问题 I am able to open Chrome via Selenium, but am unable to simulate a key press (specifically F12, since I want to open Inspect and eventually use the mobile browser Like so) While I'm able to do it manually i.e, open Chrome and press F12, I want to be able to automate this part using Selenium. My current code looks like this - from selenium import webdriver import time from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys options =

Opening inspect (pressing F12) on Chrome via Selenium

做~自己de王妃 提交于 2020-02-04 11:02:33
问题 I am able to open Chrome via Selenium, but am unable to simulate a key press (specifically F12, since I want to open Inspect and eventually use the mobile browser Like so) While I'm able to do it manually i.e, open Chrome and press F12, I want to be able to automate this part using Selenium. My current code looks like this - from selenium import webdriver import time from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys options =

Is it better to start with Sencha Touch 2, or Sencha Touch 1.x?

拈花ヽ惹草 提交于 2020-02-01 04:35:48
问题 I've recently built a demo application using PhoneGap, and I chose to try JQuery Mobile as a UI framework. It was... okay. I'd like to try out Sencha Touch now and see if I like it better. As of now (mid-December '11), it appears that Sencha Touch 2 has been released as a preview, and has significant improvements in performance (which is a key ingredient for me). However, it's missing some features, and doesn't seem to have many demos / tutorials yet on the Sencha website. In the valuable

How to realize a persistent queue on Android

廉价感情. 提交于 2020-02-01 03:25:06
问题 My application needs a data structure similar to a queue: put data in it, receive data from it, FIFO-like. With data I mean simple strings for now, later on perhaps more complex objects. The thing is that the queue and its content should be persistent, regardless of what Android is doing. If the application gets closed and reopened (or even Android reboots), the queue should have the same state and data it had before the application was closed. I think the queue has to use some kind of

Mobile Safari scroll momentum not working

给你一囗甜甜゛ 提交于 2020-01-31 05:16:24
问题 I'm having a bit of an issue with a responsive site at the moment. All but one of the pages don't get the scroll momentum you would normally get from using the Internet on your phone. I'm not sure if this is restricted to mobile safari or other mobile browsers, I've only just started the responsive work on this site. But, does anyone know why some pages might not have scroll momentum? Some of the pages are quite heavy with images and a little jQuery, but I wouldn't think there's enough to

Is there a kind of Firebug or JavaScript console debug for Android? [closed]

牧云@^-^@ 提交于 2020-01-28 13:21:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I'm developing a website for mobile. It works on Firefox desktop. It works on iPhone, but when I press a buton on Android 2.x (and maybe lower). my JavaScript code crashes or what else... Can I get access to the logger or JavaScript console for those devices? The better should be a kind of Firebug application.

jQuery Mobile_表单元素

人盡茶涼 提交于 2020-01-26 15:57:50
<!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css"> <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> <script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script> </head> <body> <div data-role="page"> <div data-role="header" style="text-align:center">header</div> <div data-role="content"> <form method="post" action="#"> <div data-role="fieldcontain"> <label for="fname">姓名:</label> <input type="text" id="fname" name="fname" placeholder=

Titanium index.html

自闭症网瘾萝莉.ら 提交于 2020-01-26 04:08:29
问题 ive just installed titanium and the android sdk for development. In my project i have an index.html but its not loading that when i do a build, it keeps loading a 'welcome to titanium' html page which for the life of me i just can't find anywhere to see where its being loaded from. How the heck do i set my index.html to be the one that is loaded when the app first loads? I have tried adding index2.html (index2 as a test) but its still loading this welcome to titanium url even when i make a