小编akh*_*ala的帖子

facebook广告中的安装历史记录不足

我们发现1错误.安装历史记录不足:您的帐户没有足够的安装历史记录来开始使用移动应用安装广告的结算事件.请访问https://developers.facebook.com/docs/reference/ads-api/cost-per-action-ads/了解更多信息.

我在facebook广告页面上面出现上述错误.我是新来的,请帮助我.Thnxx

android facebook facebook-ads-api

15
推荐指数
1
解决办法
3396
查看次数

使用HttpURLConnection上传多个图像文件

我想使用HttpURLConnection上传多个图像文件,并且图像数量没有固定到从android上传多少个文件.

请不要发送MultiPartEntity的链接.我只想使用HttpURLConnection完成此操作,并且不希望使用任何其他外部库来上传文件.

我想使用HTTPUrlConnection上传文件,例如请参阅此链接

http://www.17od.com/2010/02/18/multipart-form-upload-on-android/

这是我希望上传多个单个文件上传代码

请以php脚本为例.

php android

8
推荐指数
1
解决办法
8728
查看次数

通过主题设置状态栏颜色。?

我将通过 更改状态栏颜色styles.xml但无法设置状态栏颜色。我不想通过编码设置状态栏的颜色,我只想通过theme/style.

活动.xml

<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true"
    tools:context="eazitouk.eazitoclient.mainclasses.TestActivity">

    <android.support.design.widget.AppBarLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:theme="@style/AppTheme.AppBarOverlay">

        <android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:background="?attr/colorPrimary"
            app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
            app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>

    </android.support.design.widget.AppBarLayout>

    <include layout="@layout/content_test" />

    <android.support.design.widget.FloatingActionButton
        android:id="@+id/fab"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|end"
        android:layout_margin="@dimen/fab_margin"
        android:src="@android:drawable/ic_dialog_email" />

</android.support.design.widget.CoordinatorLayout>
Run Code Online (Sandbox Code Playgroud)

清单文件

<application
        android:name="eazitouk.eazitoclient.miscs.AppController"
        android:icon="@drawable/ic_launchicon"
        android:label="@string/app_name"
        android:theme="@style/AppTheme">
        <activity
            android:name=".TestActivity"
            android:label="@string/title_activity_test"
            android:theme="@style/AppTheme1">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
Run Code Online (Sandbox Code Playgroud)

颜色文件

<?xml version="1.0" encoding="utf-8"?>
<resources>

    <color name="ColorPrimary">#df4a43</color>
    <color name="ColorPrimaryDark">#c8423c</color>

    <color name="ColorPrimary1">#FFCF3B</color>
    <color name="ColorPrimaryLight">#F3A2A0</color>
    <color name="ColorPrimaryLightShade">#e56e66</color>

</resources>
Run Code Online (Sandbox Code Playgroud)

样式文件

<resources> …
Run Code Online (Sandbox Code Playgroud)

android styles colors statusbar android-layout

1
推荐指数
1
解决办法
6143
查看次数