mobile-development

Can not locate the sdcard file(not hard code) in android 6.0

不打扰是莪最后的温柔 提交于 2019-12-13 23:41:58
问题 Since android 6.0, the sdcard path is no longer "/storage/sdcard1/", "/storage/sdcard-ext/" or something. The path depends on the phone instead. If I use Nexus 5x AVD, the path is "/storage/1D15-3A1B/". When I use Nexus 6p AVD, the path is "/storage/4679-1802/". So how can I dynamically write the sdcard path in program to locate the file in external sdcard? Thank you! 回答1: Have a look at getExternalFilesDirs() . 回答2: It seems that I found the solution. I'm using the access storage framework.

Can testing with real adMob ads after the app's development results in adMob's policy violation?

白昼怎懂夜的黑 提交于 2019-12-13 20:29:10
问题 So my app have been successfully developed and I have had a good experience with the admob test ads. But then just now I tried to view how real ads look like on my app and I started testing with real ads(banners+Interstitial) with keeping in mind: not to click them! The impressions gets to be 6 and match rate 100%, will this cause me any trouble?? I am new to adMob but I did followed all policies correcty, though I don't know if self impressions are a big deal or not. Please reply. Thanks.

Flutter WebView Plugin - How To Handle Local Storage Variables

放肆的年华 提交于 2019-12-13 16:29:09
问题 Background: I am working on a mobile application in which I use a WebViewScaffold to load an online directory. This particular directory provides a guided tour on initial visit. Problem: Each time I navigate to the directory WebView, the tour starts from the beginning (which freezes the user until the tour is finished). How might I keep this from happening? When I open the directory in a browser, the status of the tour is saved in the browser's local storage variables. Is there a way to save

Error setting up Firebase in Xcode

丶灬走出姿态 提交于 2019-12-12 20:35:09
问题 I have tried to set up Firebase to work on Xcode using both the quick setup instructions and the manual alternate instructions on Firebase website. When I used CocoaPods and followed the instructions on the quick setup page, I was able to import Firebase, but I was not able to reference Firebase inside the class. I got the error: Cannot call value of non-function type 'module' xcode When I tried to set it up manually, I was not able to import or reference Fire base and I got the error: No

How to convert an app to be a system app in android +5.0 without rooting the device?

本小妞迷上赌 提交于 2019-12-11 05:29:23
问题 One of the biggest school has its own Android tablets which distributed among several branches and it's already with the students a long time ago. We need to develop an app and put it in the play store normally and all the students have to download the app but this time we need the app to run as a system app and take the full control of the devices ( without rooting the device ) we need to prevent some malware apps from installing, access the wifi, mic, and camera, etc so we make sure the

Change color of ToolBarItem in XAML

♀尐吖头ヾ 提交于 2019-12-10 14:55:50
问题 I've added a toolbaritem in my app, however i dont see a way to change its background and text color. <ContentPage.ToolbarItems> <ToolbarItem Text="About" Icon="ic_action_more_vert.png" Priority="0" Order="Secondary" Clicked="ToolbarItem_Clicked"/> <ToolbarItem Text="Settings" Icon="ic_action_more_vert.png" Priority="0" Order="Secondary"/> </ContentPage.ToolbarItems> This is what I'd like changed. The black menu with white text, want to change that bg color and text color. Any idea how to

Launch native apps from custom cordova app

半城伤御伤魂 提交于 2019-12-10 10:34:45
问题 I'm developing a mobile app with Cordova (in Intel XDK) which is a list of buttons that launches other apps. So far I've managed to launch phone app ( href="tel://" ), sms ( href="sms:// ) and google website in browser ( href="http://google.com" ). I've found a plugin for starting apps: https://github.com/lampaa/com.lampa.startapp but basing on guide provided there I can launch an app with code like this (example) : navigator.startApp.start([["app.com.name", "app.com.name.Activity"], [{

How to test with Web@Work from MobileIron in a development environment?

帅比萌擦擦* 提交于 2019-12-07 00:28:32
问题 I have a website that works perfectly in any browser. Now I want to use the Web@Work browser from MobileIron to use this website as a boorkmark to create a basic iOS application packaged thanks to MobileIron. The basic presentation of Web@Work is here: https://www.mobileiron.com/en/products/webwork I would like to find a way to develop with Web@Work locally, like that I would be able to track bugs easily. 回答1: Web@Work is a dual-mode app. This means that if it is installed on a device with

How to make swipe function on listview (react-native)?

坚强是说给别人听的谎言 提交于 2019-12-06 13:42:17
I have list of items. I am using ListView for it and I need to be able to delete any row by swiping left or right. Where can I start from here? If you prefer, follow this guide which uses React Native Swipeout . Otherwise, here's my SwipeList and SwipeListRow component. I partially use my library Cairn for styling, but it should be easily translated into a normal React Stylesheet if you care to do so: SwipeList.js import React from 'react'; import { Text, ListView } from 'react-native'; import styleContext from 'app/style'; const style = styleContext.extend({ listViewSection: { paddingVertical

How to detect Network operators programmatically on Android?

浪尽此生 提交于 2019-12-06 11:52:09
问题 Is it possible to identify currently attached mobile network and network operators programmatically on Android? If it is possible please provide code samples Thank you. 回答1: Try this, // Get System TELEPHONY service reference TelephonyManager tManager = (TelephonyManager) getBaseContext() .getSystemService(Context.TELEPHONY_SERVICE); // Get carrier name (Network Operator Name) String carrierName = tManager.getNetworkOperatorName(); // Get Phone model and manufacturer name String manufacturer