任何人都可以帮我实施AirPush横幅广告吗?我试图根据他们的文档这样做.但我认为文档不够好.因为我正在复制他们给出的相同代码.但我仍然无法收到任何横幅广告.虽然我可以收到通知和智能墙广告,但不能收到横幅广告.请帮我.这是他们的文档. http://manage.airpush.com/docs/index.php?title=Android_SDK_6.0_Documentation
Android Activityname.this()和thisAndroid 之间有什么区别吗?
我试图用对话框中的按钮打开同一活动的活动?我是getApplicationContext()故意使用的.在某些手机中,它可以正常工作,但在其他手机中却强行关闭?
之间ActivityName.this和这其中的一个,我应该使用和为什么?
我怎样才能禁用我的Android应用程序中的所有声音.应该运行其他应用程序的声音.我可以通过使用禁用声音,
AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE);
audioManager.setStreamMute(AudioManager.STREAM_MUSIC, false);
Run Code Online (Sandbox Code Playgroud)
但它会禁用整个手机/平板电脑的所有声音.我只想禁用我的应用程序的声音.
以下是libGDX中简单游戏的示例代码.当雨滴落入水桶时,分数应增加1.总分应显示在左上角.
如果错过3滴而不是显示GAME OVER.我知道要增加分数,但我不知道要显示它.谢谢.
public class Drop implements ApplicationListener {
Texture dropImage;
Texture bucketImage;
Sound dropSound;
Music rainMusic;
SpriteBatch batch;
OrthographicCamera camera;
Rectangle bucket;
Array<Rectangle> raindrops;
long lastDropTime;
@Override
public void create() {
// load the images for the droplet and the bucket, 64x64 pixels each
dropImage = new Texture(Gdx.files.internal("droplet.png"));
bucketImage = new Texture(Gdx.files.internal("bucket.png"));
// load the drop sound effect and the rain background "music"
dropSound = Gdx.audio.newSound(Gdx.files.internal("drop.wav"));
rainMusic = Gdx.audio.newMusic(Gdx.files.internal("rain.mp3"));
// start the playback of the background music immediately
rainMusic.setLooping(true); …Run Code Online (Sandbox Code Playgroud) 我有一个图像视图,当用户点击它时,它会打开一个包含一些结果的对话框.
但我希望在点击5秒后显示结果.
我想显示空白对话框直到5秒然后我想显示结果?我怎样才能做到这一点 ?非常感谢你.