android

Delphi firemonkey 程序附带文件的发布方法

女生的网名这么多〃 提交于 2021-02-19 17:05:08
Delphi firemonkey 程序附带文件的发布方法 打开工程后: 菜单:Project -> Deployment打开的界面中,选择 configuration, 在部署界面 【不要】选择 All configurations - 某某某 platform 必须使用 Debug configurations - 某某某 platforms 和 Release configurations - 某某某 platform 添加,否则没有效果 在这个状态下 增加 或 删除 随程序要发布文件。 系统已经存在的别动。 Debug Release 【各加】一次。 选择 Platforms 列,点 ... 弹出对话框,去掉你不需要的平台,例如只留下Android和IOS。 对勾或【打勾】对所有平台有效。如果你不希望发布某些项目,可以去掉对勾,例如可以去掉 x86 版本的 so 的发布,这是有好处的哦。 必须对新增的文件指定发布路径。 分别选择每个 platform (Debug Release 也要分别选择)然后编辑 RemotePath 列。 注意各个平台的路径都是不同的 在安卓下 .\ 或者 \ 或者 直接是目录名开头 都是无法访问的。 安卓下的: 内置路径必须是 assets\internal 下面的路径。例如 assets\internal\a.png,assets

Encrypt chat messages stored in Firebase Database

不打扰是莪最后的温柔 提交于 2021-02-19 14:02:53
问题 I am making an application in which chatting is also a feature for which I am using firebase realtime database. Though all the data stored in firebase is via SSL but I want that even the administration is not able to see that messages. I thought of implementing the end-to-end encryption by using the public and private key architecture, but storing the private key on device won't be good as a new private key will be created when the phone is uninstalled or even when the app is used in another

PHP对接淘宝客api完成APP引流优惠券

我的梦境 提交于 2021-02-19 09:18:44
淘宝客现在对多数人来说已经耳熟能详了,属于CPS(Cost Per Sale),一种网络广告收费标准,以实际销售产品数量来换算广告刊登金额。其他收费标准还有常见的CPC(Cost Per Click 按点击次数收费),和按周期展示收费,周期过后下架等。以前接触这方面也比较少,这里就不详细介绍了,下面开始进入如何从懵圈到把接口对接到APP通过应用的流量实现佣金收入。 注册账号 首先在没有对接api前需要去注册一个阿里几个平台的账号,也可以直接用个人/企业 淘宝账号直接登录。 1.淘宝联盟: https://pub.alimama.com/ 2.淘宝开放平台: http://open.taobao.com/ 申请推广位 登录进淘宝联盟,点击“活动推广”,然后选择“推广管理”,这里看你要做的是什么,是web就选择网站管理,app就选择APP管理。不过不管是网站还是APP都是要有雏形已经上线,网站需要内容足够丰富且有备案,APP需要在某应用市场上架,最后就是新建推广填写表单提交审核即可。 ​ 记录key和Secret和下载SDK 提交完成大概一到三个工作日会有结果,成功后点击“查看权限”这时候就可以把App key记录下来,安卓和苹果是分开的,也就是后面调用接口要按系统传入不同的key和secret了。然后点击“查看”就会进入到淘宝开放平台指定的应用详情

Delphi Android READ_PHONE_STATE not triggering

最后都变了- 提交于 2021-02-19 08:57:25
问题 I manage to get runtime permission for READ_PHONE_STATE but app doesn't react to phone state changes at all. I have also in manifest file READ_PHONE_STATE enabled. Have tried with 3 Android phones but all fail to track state changes. With iOS i manage to get READ_PHONE_STATE working with same code as i have tried with Android, but in iOS Apple has deprecated showing caller phone number. uses System.Permissions; {$R *.fmx} constructor TForm1.Create(AOwner: TComponent); const

adb: CreateFileW 'null' failed: The system cannot find the specified file

牧云@^-^@ 提交于 2021-02-19 08:45:19
问题 I installed Android Studio 3.0.1 in Windows 10 and it turns out that I can not launch any emulator, as much as you create these emulators, these are not displayed and I get the following error: I have verified that the ADB is not running and that other processes also listen to port 5037 as other users indicate. The strange thing isadb: CreateFileW 'nul' failed: 回答1: This problem also appeared on my computer, but after reinstalling the Windows system and Android Studio, the problem is no

Firebase Crashlytics crash reports are not de-obfuscated after publishing app as a app bundle

做~自己de王妃 提交于 2021-02-19 08:43:05
问题 I recently publish my app to play store as a app bundle and everything is working fine except for above mentioned issue. I have added bellow pro-guard rules in my app and it was working fine with my old builds. #CrashLitics -keepattributes SourceFile,LineNumberTable -keep public class * extends java.lang.Exception Is there any addition pro-guard rules to include when publishing as a app bundle? 回答1: I contacted the Firebase team. Their reply was to add :app:crashlyticsUploadDeobsRelease (or

Returning value from Javascript *reliably* to Webview

北慕城南 提交于 2021-02-19 08:38:17
问题 There is a way to call javascript function from webview and then let it call a method in Java to return the result. Like described in How to get return value from javascript in webview of android? Now, the javascript function can fail (say due to a typo in javascript file). In that case, I would like to carry out some failover code in Java. What is a good way to do that? My current code looks like this: In Java: private boolean eventHandled = false; @Override public void onEvent() {

EventBus comunication between activity and service

有些话、适合烂在心里 提交于 2021-02-19 08:30:06
问题 I'm working on an Android application with EventBus library. I have an activity and a service. I want to to fire an event from activity and receive it on service. The activity is: public class MainActivity extends AppCompatActivity { public static final String TAG="ACTIVITY"; @Subscribe(threadMode = ThreadMode.MAIN) public void onMessageEvent(StartEvent event) { Log.d(TAG, "Received message"); Snackbar.make(fab, "Stop task", Snackbar.LENGTH_LONG).show(); txtMessage.setText(event.message); };

Google Translate API: Requests from this client application <empty> are blocked

有些话、适合烂在心里 提交于 2021-02-19 08:27:24
问题 I've been getting error 403 - Requests from this Android client application are blocked using paid Google Cloud Platform Translation API. Works great when restrictions are set to none. There are a few threads around reporting similar issue, but none answered. I've seen in some examples, there's a version which had .setApplicationName(), I think that might help, but I can't find which version would that be. Code used is:` private void translate(String textToTranslate, String targetLanguage,

<Input type=“file”> not working in my WebView

…衆ロ難τιáo~ 提交于 2021-02-19 08:21:53
问题 I develop Fragment WebView Application. I use upload code in Fragment WebView. When I click <input type="file"> it is active nothing. logcat show only this warning 05-22 15:59:39.749 31611-31611/kr.nubiz.comn W/cr_Ime: updateState: type [0->0], flags [0], show [false], How can I solve this problem? WebView - Fragment private void initLayout() { handler = new Handler(); webView = (android.webkit.WebView) rootView.findViewById(R.id.webview); webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);