bundle

Passing Integer Between Activities and Intents in Android Is Always Resulting in Zero / Null

笑着哭i 提交于 2019-12-29 04:55:05
问题 I'm attempting to pass two integers from my Main Page activity (a latitude and longitude) to a second activity that contains an instance of Google Maps that will place a marker at the lat and long provided. My conundrum is that when I retrieve the bundle in the Map_Page activity the integers I passed are always 0, which is the default when they are Null. Does anyone see anything glaringly wrong? I have the following stored in a button click OnClick method. Bundle dataBundle = new Bundle();

windows系统Android真机开发react native(踩坑)

萝らか妹 提交于 2019-12-28 06:50:59
登陆react native官网 https://reactnative.cn/docs/getting-started.html 根据官网的提示“我们建议直接使用搜索引擎搜索下载 Node 、Python2 和 Java SE Development Kit (JDK) ” 一直按照官网的步骤走,把上面这些东西装上,但Android studio装上不知道有什么用,我用Android studio打开项目没检测到项目,新手,不太清楚。不过我还是把它装上了,建议装上,后面万一有用呢。 按照官网的指示,走到这一步,react-native init AwesomeProject也没什么问题,我是翻墙的,建议翻墙。 然后我用的真机来调试,用的是Android4.3的机器,数据线连上电脑,输入adb devices List of devices attached 下面有东西的话说明连上了,这里我没连手机。 进入到刚才创建的那个项目目录里,运行react-native run-android, 失败,忘记截图了,错误是 Unable to load script.Make sure you are either running a Metro server or that your bundle 'index.android.bundle' is packaged correctly

ASP.NET Bundling - Bundle not updating after included file has changed (returns 304 not modified)

假如想象 提交于 2019-12-28 03:31:06
问题 I am trying out ASP.NET Bundling with ASP.NET MVC 4 application. The situation is that I want to make a CDN style service, which has JS and CSS files to which you can address from other sites with this type address: http://www.mycdn.com/scripts/plugin/js, which bundles and minifies all included .js files. My bundle config for one file looks like this: bundles.Add(new ScriptBundle("~/Scripts/plugin/pluginjs").Include("~/Scripts/plugin/jquery.plugin.js")); However, when I do this, the bundles

搭建React Native开发环境遇到的几个问题

廉价感情. 提交于 2019-12-28 00:14:47
根据http://blog.csdn.net/itpinpai/article/details/50809068这篇文章初步搭建React Native 开发环境, 遇到几个问题 首先端口可能被占用了, 访问8081时提示无法访问 解决方法: 在运行react-native start时添加参数--port 8899, 或者在package.json中修改"scripts"中参数, 添加端口号, 或者修改项目下的node_modules\react-native\local-cli\server\server.js下的方法_server的default 端口值 adb devices找不到连接设备 解决方法: 使用Genymotion时, 首先sdk中的 platform-tools 需要加入环境变量, 然后在Genymotion中,点击Setting,选择ADB选项卡,点击Use custom Android SDK tools,浏览本地SDK的位置,点击OK,就可以了,启动虚拟机后, 在cmd中输入adb devices可以查看. 红屏问题"Could not get BatchedBridge, make sure your bundle is packaged correctly" 解决方法: 主要就只遇到这一个问题, 更改ip和port没有解决了, 后来在package

浏览器支持ES6的import和export

别说谁变了你拦得住时间么 提交于 2019-12-28 00:05:32
原文: https://blog.csdn.net/u012863664/article/details/72813941 第一步:写了一个导出模块 export.js var name = "林玖" var age = 18 var say = function(){ console.log('你好啊!') } // 批量导出 export {name,age,say} 第二步:写了一个导入模块 import.js,导入了export中的属性和方法 import {name,age,say} from './export.js' console.log(name) console.log(age) say() 然后想在浏览器运行一下,但是不行哦 第三步:下载node.js和webpack 下载node.js可以通过官网: http://nodejs.cn/download/ 然后打开node自带的命令行,输入如下命令全局安装webpack工具 npm install -g webpack 接着通过命令行工具定位到你的工程文件的根目录下, 再次安装webpack到你的工程中 npm install webpack 第四步:编写webpack.config.js var webpack = require("webpack") var path = require('path')

webpack+babel+react

天涯浪子 提交于 2019-12-27 15:18:11
参考文章,转载自 : https://blog.csdn.net/weixin_38017243/article/details/83009907 一:配置webpack 1.创建文件夹 npm init    //生成package.json文件 2.安装webpack: npm install webpack --save 打开webpack.config.js文件,添加: module.exports = {   context:__dirname+"/app", //源文件目录   entry:{     app:"./index.js" //在源文件目录下去找index.js 文件作为打包的入口文件   },   output:{     path:__dirname+"/dist", //生成的文件存放目录     filename:"[name].bundle.js" //生成的文件 name 表示entry下面的app   } } 在package.json文件添加指令: { "name": "webpack_babel_react", "version": "1.0.0", "description": "", "main": "webpack.config.js", "scripts": { "test": "echo \"Error: no test

初学者记录

柔情痞子 提交于 2019-12-27 01:13:05
Dayone_Dialog package com . example . day01_dialog ; import android . content . DialogInterface ; import android . support . v7 . app . AlertDialog ; import android . support . v7 . app . AppCompatActivity ; import android . os . Bundle ; import android . widget . Toast ; //普通对话框 public class MainActivity01 extends AppCompatActivity { @Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R . layout . activity_main01 ) ; //1.构建者 final AlertDialog . Builder builder = new AlertDialog . Builder ( this ) ; //2.设置属性 builder .

webpack的安装及使用

泪湿孤枕 提交于 2019-12-27 00:47:27
一、webpack介绍 “Webpack 是一个开源的前端打包工具。Webpack 提供了前端开发缺乏的模块化开发方式,将各种静态资源视为模块,并从它生成优化过的代码。 Webpack 可以从终端、或是更改 webpack.config.js 来设置各项功能。 要使用 Webpack 前须先安装 Node.js。” 如果没有安装node.js,可以前往 官网 下载安装,根据自己电脑的类型选择不同的版本下载。 二、安装 要安装最新版本或特定版本,请运行以下命令之一: npm install -- save - dev webpack //或cnpm install --save-dev webpack npm install -- save - dev webpack@ < version > //或cnpm install --save-dev webpack 出现如下图内容即代表安装成功,同时在项目中也会生成 package.json 文件。 但到这里还没有结束,因为官网中提示说如果安装的是webpack 4+版本的话,还需要安装webpack-cli(如同是一个建议的客户端) 所以,我们要继续来安装webpack-cli,在终端执行下面的指令即可: npm install -- save - dev webpack - cli //或cnpm install --save

Starting a Bundle on Knopflerfish embedded into Android doesn't work

人走茶凉 提交于 2019-12-25 10:58:50
问题 I am embedding Knopflerfish framework into an android application to start and stop bundles dynamically. I followed this tutorial, downloaded framework.jar frome this link, and added it to my class path in my eclipse project. Additionally, below is Activity class, which launches the framework and starts one bundle: package com.example.knopflerfish_android; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.util.Dictionary; import java.util.Hashtable;

'FirebaseAnalytics.Param.SIGN_UP_METHOD' is failing to save the 'value' along with 'Event name` in the console

非 Y 不嫁゛ 提交于 2019-12-25 08:38:16
问题 I'm using this code to analyse the sign_up method user is using: Bundle bundle = new Bundle(); bundle.putString(FirebaseAnalytics.Param.SIGN_UP_METHOD, "sign_up_method"); mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SIGN_UP, bundle); as soon as the user sign up, above given code is supposed to save the event in the Firebase console. The problem is that the event is getting created but the there's nothing under the value column, i.e., sign_up_method is not getting shown. Here's a