简体   繁体   English

从第一个活动拨打电话后,第二个活动没有通话

[英]2nd Activity doesn't call after calling from 1st Activity

if(dialog.getProgress()==dialog.getMax())
 {    
      Intent i = new Intent(this, ShowMyDialog.class);
         startActivity(i);
 }  

I have written this code in my 1st activity.but 2nd activity not get called after progress bar value reached to max. 我已经在第一个活动中编写了此代码。但是在进度条值达到最大值后,第二个活动没有被调用。 so,please help me......how can i solve this. 所以,请帮助我……我该如何解决。

That if statement is only evaluated once - wherever it is declared. 该if语句仅被评估一次-无论在何处声明。 In order for that check to be called continuously, you'll need to put it in the same method that updates your dialog box. 为了使该支票被连续调用,您需要将其置于与更新对话框相同的方法中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从第二活动到第一活动获取数据 - How to get data from 2nd Activity to 1st Activity 从Android中的第一个应用程序开始第二个应用程序的活动 - Start Activity of 2nd app from 1st app in android 除非通过第二个Java活动向后提示,否则我在第一个Java活动中的动画无法正常工作 - My animation in my 1st Java Activity doesn't work unless prompted backwards via the 2nd Java Activity 尝试从第一类活动中调用方法,并在第二类活动中保留相同的参数(android studio) - Trying to call a method from 1st class activity and keep the same argument in a 2nd class activity (android studio) 从第一个活动的 Edittext 发送字符串到第二个活动的 Edittext - Send String from Edittext on 1st Activity to the Edittext on the 2nd Activity 当我返回到第一个活动时,第二个活动未调用第二个活动的onCreate()函数 - When I return back to 1st Activity the onCreate() function of 2nd Activity is not called in 2nd time 如何从第一个活动到第二个活动检索插入数据库中的图片? - How to retrieve a picture inserted in the database from 1st to 2nd activity? Android - 在第一个活动中使用第二个活动的字符串列表 - Android - Use String from 2nd Activities for List on 1st activity 在不丢失更新数据的情况下将第二个活动的价值保存到第一个活动 - Saving value from 2nd activity to 1st without losing the updated data 如何通过从第1类调用第2类的方法来调用第3类的方法 - How to call a method of a 3rd class by calling the method of the 2nd class from the 1st class
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM