`
zhouxiaoli521
  • 浏览: 562563 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

is your activity running?

阅读更多

http://www.cnblogs.com/sober/archive/2011/03/21/1990814.html

和这个人遇到问题差不多 我也是使用TabHost,需要在子界面中弹出提示框

直接this会出问题 所以换成getParent() 就可以了

 final ProgressDialog dialog = ProgressDialog.show(getParent(), "",
          "正在获取数据,请稍等 …", true, false);

 

分享到:
评论
1 楼 kedongjun 2012-06-20  
非常感谢!!!

相关推荐

    android dialog与popwindow之间的简单运用

    PopupWindow顾名思义为弹出式菜单,不同... is your activity running? 总结: PopupWindow必须在某个事件中显示或者是开启一个新线程去调用,不能直接在onCreate方法中显示一个Popupwindow,否则永远会有以上的错误。

    Activity isFinishing()判断Activity的状态实例

    因此,`isDestroyed()`可以用于确认`onDestroy()`是否已经被调用,但这通常并不常用,因为如果Activity能正确地遵循生命周期,`onDestroy()`应该会在Activity完全销毁前被调用。 在处理Activity的生命周期时,需要...

    log的方法分析

    is your activity running? ``` **解决方法**: - 确保在Activity生命周期的正确阶段执行UI操作。 - 避免在非主线程中直接更新UI,而是使用`runOnUiThread()`方法。 - 检查Activity是否已经销毁或暂停状态。 #### ...

    Android开发解决popupWindow重叠报错问题

    在popupWindow里面再弹出popupWindow的时候会报... is your activity running? 报错的意思大概就是说依赖的Activity没了。 解决方法1 不要在当前的popupWindow里面继续show一个popupWindow,应该写一个接口回调到Ac

    Android Rreact Native 常见错误总结

    is your activity running? 这个错误属于安卓 Native 的错误。该错误通常是因为 Activity 不存在或者已经销毁所导致的。如果我们在 React Native 中调用了原生控件,那么我们需要创建控件时引用 `...

    Android BSearchEdit 搜索结果选择框的实例代码

    在实际使用中,需要注意避免在Activity未创建时就调用`showPopup()`,因为这可能导致"Is your activity running?"的错误。确保在正确的生命周期方法(如`onCreate()`)中进行初始化和数据绑定。 总的来说,Android ...

    微软内部资料-SQL性能优化2

    A reference to an invalid page (a page that is not in your working set) is referred to as a page fault. Assuming the page reference does not result in an access violation, a page fault can be either ...

    一本android的好书beginning android 2 和 源码

    Building and Running the Activity ■Chapter 4: Using XML-Based Layouts What Is an XML-Based Layout? Why Use XML-Based Layouts? OK, So What Does It Look Like? What’s with the @ Signs? And How Do We...

    528helloword

    * Whether or not the activity is in two-pane mode, i.e. running on a tablet * device. */ private boolean mTwoPane; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate...

    七年级下复习学案unit6.doc

    例如:"The boy is running (run) with his father." 和 "Some children are lying (lie) on the grass."。 此外,学案中还提到了一些基本的英语交际用语,如询问他人当前活动的问句"What are you doing?"及回答"I...

    BURNINTEST--硬件检测工具

    - Changes to trace logging to reduce activity when trace logging is not turned on. - Note: We have seen a report of the Video Playback failing (crash) due to a faulty video codec, ffdshow.ax. If ...

    Commview V6.5

    CommView is a program for monitoring Internet and Local Area Network (LAN) activity capable of capturing and analyzing network packets. It gathers information about data passing through your dial-up ...

    Android原生方式实现夜间模式

    -- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary <item name="colorPrimaryDark">@color/colorPrimaryDark <item name="colorAccent">@color/colorAccent <!-- res/values-...

    微软内部资料-SQL性能优化3

    For example, if you defer constraint checking, it is your responsibility to ensure that the database is consistent. Isolation Concurrent transactions are isolated from the updates of other incomplete...

    Android代码-Dexter

    Dexter Dexter is an Android library that simplifies the process of requesting ...The official API is heavily coupled with the Activity class. Dexter frees your permission code from your activities and

    最新人版]七年级下英语(全册)知识点归纳与6_12单元复习重点.doc

    例如:“The boy is running with his father.”在这个结构中,“be”动词和动词的现在分词(Ving形式)是不可或缺的。 2. **疑问句询问当前动作**:问对方正在做什么,可以用"What are you doing?",回答时可使用...

    微软内部资料-SQL性能优化5

    As we’ll see, the clustered key is duplicated in every nonclustered index row, so keeping your clustered key small will allow you to have more index fit per page in all your indexes. Note The ...

    Diskeeper 2008 v12.0.759.0

    Diskeeper is designed to operate without your intervention. Simply install Diskeeper, then sit back and let it take care of the details. Of course, you can also run Diskeeper manually. (But you ...

Global site tag (gtag.js) - Google Analytics