tablet

How to detect between mobile & tablets in PHP

一世执手 提交于 2019-12-07 08:10:29
问题 I read on this thread: Simplest way to detect a mobile device on how to know if the browser is a mobile device. the general code is this: <?php include("Mobile_Detect.php"); include("demoData.php"); $detectIsMobile = new Mobile_Detect(); ?> The problem is that I want to treat tablets (iPad & xoom). I saw there that there is a isIpad() function that I have tested yet - but that still doesn't solve the difference between tablets and mobile phones. Any idea? thanks, Alon 回答1: Use <?php if(

Prevent tablet from sleeping while app is running

≡放荡痞女 提交于 2019-12-07 06:12:17
问题 I'm trying to write a Windows 8 tablet app that often can go multiple minutes between receiving input. The problem is, that if i don't keep touching the screen, the power saver will activate, and the screen will automatically go black, and it disrupts the user of the app. Is there a way that my app can prevent the power saver from activating, or at least extend the time it takes for the power saver to activate. 回答1: You should use DisplayRequest class to keep screen from turning off. Apps

landscape mode in tablet only

会有一股神秘感。 提交于 2019-12-07 01:32:43
问题 My app has to support landscape/portrait mode only for tablets, phones will only support portrait mode. What is the best way to implement this? Options that I am considering: a) using two apk files, one for phones and one for tablets. The one for phone will lock landscape mode in the manifest 2) using one apk file. Detect that device is a phone, lock landscape mode inside each activity. any advice will be appreciated. Regards 回答1: You can use a SuperClass for activities and implement this

Android app showing black borders overlapping the edges of UI - some kind of compatibility mode?

徘徊边缘 提交于 2019-12-07 01:02:30
问题 I've encountered a strange problem with an android app designed for phones when run on a tablet. The UI is scaled correctly to the device, but there's this big black border overlapping the edges, as if it's trying to show some sort of phone-sized version of the screen. Oddly, when using Android Studio's Layout Inspector to try and see what the black border is, it only shows the UI we want to have, with no sign of the black border: I've fiddled with a bunch of settings and tried googling for

android COSU single app - lock for browser and just one web-app on gadgets

时光毁灭记忆、已成空白 提交于 2019-12-06 12:33:56
I'm not experienced with Android. I want to setup some tablets in such a way, that the gadgets are locked to just one web-app. I think it should be somehow locked to a Browser (which in turn should open directly after the launch of the tablet with the login page of the web-app set as default) and the browser should be locked to a particular web-app/ set of urls. Can somebody recommend tools/ resources or solutions for my purpose? I am sure the task itself is not a big deal and I am searching for a solution to keep it as simple as possible without investing to much time to learn or to develop a

Android/ListView : Select first item after loading datas

笑着哭i 提交于 2019-12-06 11:51:40
EDIT I must tell you that my ListView is populate by an AsyncTask. The code below works fine when I do in onPostExecute method : synchronized (mListView) { if(mFeeds==null || mFeeds.size()==0){ Utils.Log("mFeeds empty"); _this.setListShown(false); }else{ Utils.Log("mFeeds Full"); _this.setListShown(true); mListView.setAdapter(new ListFeedsAdapter(mActivity,mFeeds)); mListView.notifyAll(); NewsFeedsDetailViewPagerFragment fragment = (NewsFeedsDetailViewPagerFragment) getFragmentManager() .findFragmentById(R.id.feeddetailViewPagerFragment); if(fragment!=null){ mListView.performItemClick(null, 0,

Windows RT .NET compatibility

徘徊边缘 提交于 2019-12-06 06:21:54
I just need to know if I need the same framework to develop an app for Windows 8 for Tablets (Windows RT) and PCs or the tablet one still uses .NET compact framework. The only type of applications that run on Windows RT (ie. the Tablet/ARM version of Windows 8) are Windows Store Apps. These are full-screen applications that run on top of the WinRT API. You can use a subset of .NET 4.5 on these devices, and use XAML to build your interface just like you would with WPF on the desktop. You can read more on MSDN - .NET for Windows Store apps overview . This article describes a lot of the changes

how to make style sheet for tablet and iphone

懵懂的女人 提交于 2019-12-06 04:04:26
I was thinking the link target on the stylesheet would make my css file only load when it loads on a tablet or iphone. But the elements I'm trying to hide are still there. Im currently using (media="handheld") <link rel="stylesheet" type="text/css" hrf="css/media.css" media="handheld" /> There are too many mobile device models out there to write stylesheets for; you'd be better off adjusting your CSS based on Screen Size . This is especially helpful for targeting Android Tablets which comes in different sizes. See this useful tutorial for further explanation: http://css-tricks.com/resolution

Change logo that appears in Android ActionBar programatically

自闭症网瘾萝莉.ら 提交于 2019-12-06 03:33:33
问题 Is there a way to change the logo that appears in the ActionBar inside an Activity instead of listing it in the Manifest? The reason I ask is I have an app for phones where I build a similar type of bar across the top with the launcher icon in the left corner similar to the ActionBar using an ImageView . I also allow the user to change that image to one on their phone or on the internet. I am currently making the app work for tablets and would like to just use the ActionBar instead but can't

My application is not listed for tablets

烂漫一生 提交于 2019-12-06 02:20:21
I have uploaded to play.google.com a new application: https://play.google.com/store/apps/details?id=development.nk.anguide The problem is that i can not install this application in a tablet. At optimization tips there is the following message: "Your APK needs to meet the following criteria: Any required hardware features are normally available on tablets." This is my manifest file: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="development.nk.anguide" android:versionCode="2" android:versionName="1.01" > <supports-screens