我尝试做什么
大家好,我正在尝试为我的应用程序创建一些应用内商品,用于捐赠.因为我赠送了我朋友的免费音乐 - 他饶舌.无论如何,我在我的开发者帐户上创建了5个应用内商品:
这是我在那里生成的参考密钥.它们被保存并发布.现在,如果在本教程中编写了In-App-Service:In-App Easy Tutorial.代码似乎工作得很完美,没有错误,当我编译它可以运行的演示代码时.但是当我尝试它时,我总是得到这个错误:
12-06 14:23:49.400: E/BillingService(4719): BillingHelper not fully instantiated
Run Code Online (Sandbox Code Playgroud)
题
那么我需要更改用户可以选择不同的应用内产品?我需要在某个地方宣布它们吗?另外,如果你有一个很棒的教程,这些东西都很好地描述和完全工作,请告诉我.
这是我用于In-app-service的类:
de.stepforward
de.stepforward.billing
de.stepforward.billing.util
目前我将为您提供我的BillingHelper和Activity的代码,如果您需要更多代码,请告诉我.
码
AppMainTest.class
package de.stepforward.billing;
import de.stepforward.R;
import de.stepforward.R.id;
import de.stepforward.R.layout;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
public class AppMainTest extends Activity implements OnClickListener{
private static final …Run Code Online (Sandbox Code Playgroud) 在我的应用程序中,我有许多图片,我已经分组在res/drawable下的文件夹中.但Android不允许我通过"R"访问它们.有没有办法访问这些文件夹.
这是我正在使用的代码.
ImageView iv = new ImageView(conext);
iv.setImageResource(R.drawable.**smiley.666**);
Run Code Online (Sandbox Code Playgroud)
我标记了我无法访问的部分.
Thx提前
苹果浏览器
我正在创建一个Optionsmenu,因为我使用了Android Icon-Resource.但我无法访问它们,我做错了什么.我需要改变什么?
这是我的menu.xml的代码
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/Videos"
android:icon="@android/drawable/ic_menu_view"
android:title="Videos" />
<item android:id="@+id/Bio"
android:icon="@android/drawable/ic_menu_friendlist"
android:title="Biographie" />
<item android:id="@+id/Support"
android:icon="@android/drawable/ic_menu_star"
android:title="Support" />
</menu>
Run Code Online (Sandbox Code Playgroud)
谢谢你的帮助!
我想将我的json-array转换为我创建的界面,并希望在浏览器中显示它.我认为我的界面可能有问题,但我无法弄明白...... 我需要更改什么来让我的代码运行?
接口:
export interface Video {
id: number;
name: string;
description: string;
createdAt: string;
}
Run Code Online (Sandbox Code Playgroud)
app.ts
import {JSONP_PROVIDERS, Jsonp} from '@angular/http';
import {Observable} from '../../../node_modules/rxjs';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/share';
import {Video} from './networking/api';
private videoData: Observable<Video[]>;
ngOnInit() {
this.displayNewstVideo(10);
}
private displayNewstVideo(count: number) {
this.videoData = this.jsonp
.get('localhost:8080/video/newst/' + count + '?jsonp=JSONP_CALLBACK')
.map(res => (res.json() as Video[]));
alert(this.videoData.count);
}
Run Code Online (Sandbox Code Playgroud)
app.html
<div class="container">
<div class="video" style="font-family:sans-serif" *ngFor="#entry of videoData | async; #i = index">
<br *ngIf="i > 0" />
<span …Run Code Online (Sandbox Code Playgroud) 我试过的
大家好,我首先创建了一个数据库,我已经填充了3个Collumns,RowID,imageID,text.之后我创建了一个GridView,如果填充在我的数据库中.现在我已经创建了一个onItemClickListner,我想在其中获取imageID.发生这种情况后,我在此imageID之后搜索我的DB-Table,以获取文本.这个东西我需要保存在我的另一个表中.问题是我认为,我没有得到imageID,并且喜欢这个serach for not not in the DB,如果你看一下Logcat,你会发现它是null,所以它可能没有得到imageID或者我在我的DBAdapter中搜索不像我应该的那样.
题
IMPORTRANT: 我终于将View thx的ID提供给FuzzialLogic,但仍然存在问题,我无法将Row放在我的Cursor上.请看一下!
<------------------------------------------------- - - 作品 - - - - - - - - - - - - - - - - - - - - - - - ------------------->我需要在我的代码中更改,我可以获取用户点击的图像的ID.之后我想用我的图像ID搜索我的数据库,以获取我用图像存储的文本.之后这个东西进入我的另一个表.
在这里,您可以看到Code和LogCat-Log.如果有人需要,我还添加了我的DatabaseAdapter.感谢您提前帮助!
码
SFilterConfigActivity.class:
package de.retowaelchli.filterit;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.EditText;
import android.widget.GridView;
import android.widget.Toast;
import android.*;
import de.retowaelchli.filterit.database.SmileyDBAdapter;
import de.retowaelchli.filterit.database.SFilterDBAdapter;
import …Run Code Online (Sandbox Code Playgroud) 我做了什么
Hello Guys,我正在创建一个SMS广播接收器,我刚刚用本教程构建了一个:Broadcasttutorial.在我完成代码之后,我更新了我的Manifest.之后我将短信从我的另一部手机发送到我的手机,但它没有用.我没有得到任何输出.
题
我需要改变什么,我可以收到这些短信.请给我一个详细的anwser,我可以学习它,一个好的教程也会很棒!
码
SMSBroadcastReceiver(在包.services中)
package de.retowaelchli.filterit.services;
import de.retowaelchli.filterit.R;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.SmsMessage;
import android.util.Log;
import android.widget.Toast;
public class SmileySmsReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent)
{
//---get the SMS message passed in---
Log.d("SmileySmsReceiver", "Yes it calls the onReceive");
Bundle bundle = intent.getExtras();
SmsMessage[] msgs = null;
String str = "";
if (bundle != null)
{
//---retrieve the SMS message …Run Code Online (Sandbox Code Playgroud) 题
我有一点问题,看看我的服务中发生了什么.我没有得到它的任何日志.所以首先我想我可能不会启动我的服务,但这不是问题所在.当我在我的设备上转到Running-Apps时,服务就会列在那里.
现在让我们来看看代码:
的Manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.ivocore"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="14" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.IVOCore"
android:debuggable="true">
<service android:name=".service.DataHandlerService" />
<!-- android:enabled="true"
android:icon="@drawable/ic_launcher"/>
android:process=":DataHandler" -->
<activity
android:label="@string/app_name"
android:name=".LoginActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<action android:name="de.ivocore.LOGINCHECK"/>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"></activity>
</application>
<!-- Definieren welche Permission's die Applikation besitzt -->
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
Run Code Online (Sandbox Code Playgroud)
MainActivity.class
我在onCreate()中启动服务.
package de.ivocore;
import de.ivocore.service.DataHandlerService;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
public class MainActivity extends …Run Code Online (Sandbox Code Playgroud) 我尝试做什么
我正在尝试为我的应用程序创建一个Backgroud-Shape.为此,我创建了一个渐变女巫从中间开始,但我希望它从右侧开始.你可以想象你这就像渐变来自右侧.
题
我需要更改我的形状或渐变这是否有效?
码
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:gravity="right" android:type="radial" android:gradientRadius="280"
android:startColor="#FFFFFF" android:endColor="#CBCBCB" /><!-- #e0dede" -->
</shape>
Run Code Online (Sandbox Code Playgroud)
图片
这就是它当下的样子!

就像你看到渐变在中间,我希望这个渐变从右侧开始到屏幕中间.
我很快就要做一个演示,为此,我需要同时向10个人展示应用程序.为此,我想在计算机上显示我的Android 4.0手机(Galaxy Nexus)的屏幕,所有这些都在现场!
为此,我尝试了droid vnc beta - 它是一个测试版,所以它没有用......它只在我的计算机上显示了一个黑色的情景.
有没有其他方法,我可以在我的电脑上显示我的设备的屏幕.顺便说一下我用win7.
请提前帮助你!
最好的祝福
苹果浏览器
我想做什么
如果开始创建我的应用程序 我有一个NavigationController我的rootViewController.当应用程序启动时,它将打开我的LoginViewController.Login-Procedure如果一切都很好,我会在那里做.我会开始我的ECSlidingViewController.其中有一个Menu(UITableView)和一个MainView(UITableView).
直到这里一切正常.我可以刷卡,它显示我的菜单.现在问题出现了.当我按下菜单项时,它会完美地启动我的新ViewController并显示内容.但它仍然显示相同NavigationBar- 就像在ECSlidingViewController.所以我没有可能告诉用户他在看什么,我也需要向他展示他的新选项NavigationBar.
题
我该如何解决这个问题?我总是喜欢展示NavigationBar我实际使用的特定ViewController.如果你的家伙有一些Codesnippets或一个好主意如何处理这个问题.请在下面发表评论.
如果你需要codenippets或其他东西,告诉我我会上传它!先感谢您!
码
这就是我启动ECSlidingMenu的方式:
[self performSegueWithIdentifier:@"loginPush" sender:self.view];
Run Code Online (Sandbox Code Playgroud)
这就是我将如何启动一个新的ViewController:
UIViewController *newTopViewController = [self.storyboard instantiateViewControllerWithIdentifier:identifier];
Run Code Online (Sandbox Code Playgroud)
图片*

objective-c uinavigationbar ios slidingmenu ecslidingviewcontroller
android ×8
angular ×1
cursor ×1
drawable ×1
gridview ×1
icons ×1
ios ×1
java ×1
jsonp ×1
layout ×1
logging ×1
objective-c ×1
observable ×1
rxjs ×1
service ×1
shape ×1
slidingmenu ×1
sms ×1
typescript ×1
vnc ×1
vnc-server ×1
xml ×1