activity

Activity has leaked IntentReceiver android.widget.ViewFlipper

匿名 (未验证) 提交于 2019-12-03 00:50:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm adding a ViewFlipper inflated from a layout resource into a ListView as a Footer . Here's my flipper layout (Details omitted for brevity): <?xml version="1.0" encoding="utf-8"?> <ViewFlipper ...> <Button /> <LinearLayout ... > <ProgressBar ... /> <TextView ... /> </LinearLayout> </ViewFlipper> I add it to my ListView using : mListView.addFooterView(mLoadMoreFlipper); When my activity is destroyed I see the following message, followed by a call stack, in LogCat: Activity com.gk.ItemListActivity has leaked IntentReceiver android.widget

MySQL the right syntax to use near '' at line 1 error

匿名 (未验证) 提交于 2019-12-03 00:48:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: hello i have a run a query using php it give error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 but when i echo the query and run manually using sqlyog software it runs fine. can anyone say whats the problem on here this is my generated query INSERT INTO wp_bp_activity ( user_id , component , `type` , `action` , content , primary_link , item_id , secondary_item_id , date_recorded , hide_sitewide , mptt_left , mptt_right ) VALUES (

Android Activity.getParent() always returning null

匿名 (未验证) 提交于 2019-12-03 00:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have this little function here: public Activity getRootActivity() { Activity a = this; while (a.getParent() != null) a = a.getParent(); return a; } But a.getParent() always returns null. It doesn't seem to matter how deep into my UI I go, it will always return null. Anybody have any idea as to why? EDIT Here is how I am starting Activities (within other activities) startActivity(new Intent(this, activityname.class)); Apparently that means I'm not 'embedding' them? How does one 'embed' them? 回答1: Documentation says: public final Activity

How restart Fragment in my Activity - Android

匿名 (未验证) 提交于 2019-12-03 00:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have an activity that have 3 fragment inside. I need restart a first fragment in my activity with click on Button. ViewPagerAdapter adapter = new ViewPagerAdapter ( getSupportFragmentManager ()); adapter . addFrag ( new HomeFragment (), "Home" ); adapter . addFrag ( new CategoryFragment (), "Category" ); adapter . addFrag ( new FilterFragment (), "Filter" ); viewPager . setAdapter ( adapter ); I test the following way but doesn't work and show error: refresh fragment at reload java . lang . NullPointerException : Attempt to

Confused in Activity diagram notation

匿名 (未验证) 提交于 2019-12-03 00:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have made an activity diagram for gym management, but i am facing a problem how will i connect Receptionist with Admin, According to requirement activity between Admin and receptionist takes place only through notification and i have made a signal and receptor for notification. Please also check if every notation is right and suggest me for modification? 回答1: I am sorry for not answering at once - several times had I looked at your picture, and, frightened, retreated. You really tried and did something. It is good. But... You have put Use

Sinch conference call error

匿名 (未验证) 提交于 2019-12-03 00:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to start a conference call from my android app but it doesn't work, what I tried is: Intent intent1 = new Intent(CreateGroupCallActivity.this,SinchClientService.class); intent1.setAction(SinchClientService.ACTION_GROUP_CALL); String id = String.valueOf(uid) + "-" + call_id.getText().toString(); intent1.putExtra(SinchClientService.INTENT_EXTRA_ID,id); startService(intent1); and in my SinchClientService : if(intent.getAction().equals(ACTION_GROUP_CALL)) { String id = intent.getStringExtra(INTENT_EXTRA_ID); if(id != null) groupCall

custom Listview Start new activity

匿名 (未验证) 提交于 2019-12-03 00:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hi i have problem with custom listview with listactivity i want when i click item from listview then new activity will started. Entitiy package com.custom.listview; public class EntitasRestoran { String namaresto = ""; String alamatresto = ""; int pic; public String getNamaResto() { return namaresto; } public void setNamaResto(String n) { this.namaresto = n; } public String getAlamatResto() { return alamatresto; } public void setAlamatResto(String a) { this.alamatresto = a; } public int getPicResto() { return pic; } public void setPicResto

Multiple Listviews in single Activity in Android?

匿名 (未验证) 提交于 2019-12-03 00:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to have multiple listviews in single activity. But only one listview should be displayed at one time. The listviews will be loaded dynamically. So, how can I fill all the four listviews at the same time and display only one? 回答1: Instead of using all that code to flip between listviews why not put all your listviews inside a ViewFlipper? It the easiest way an required almost 1 line of code! :) -Moto 回答2: You can do one thing for your problem. The reason you will only see the one list view, may be because one list will have the fill

Android源码分析(十三)ActivityManagerService服务分析

匿名 (未验证) 提交于 2019-12-03 00:43:02
一.ActivityManagerService(AMS) 启动过程分析 在SystemServer启动ActivityManagerService 如果想了解SystemServer启动过程可以看这篇文章: Android 源码分析(六) SystemServer 进程 frameworks\ base \services\java\com\android\server\SystemServer.java // Activity manager runs the show. traceBeginAndSlog( " StartActivityManager " ); mActivityManagerService = mSystemServiceManager.startService( ActivityManagerService.Lifecycle. class ).getService(); mActivityManagerService.setSystemServiceManager(mSystemServiceManager); mActivityManagerService.setInstaller(installer); frameworks\base\services\core\java\com\android\server\am

Android开发之查看应用包名package和入口activity名称的方法

瘦欲@ 提交于 2019-12-03 00:40:47
使用android自动化测试工具monkeyrunner启动应用时,需要填写被测程序的包名和启动的Activity,以下有两种查看应用包名package和入口activity名称的方法: 方法一:使用aapt //aapt是sdk自带的一个工具,在sdk\builds-tools\目录下 1.以ES文件浏览器为例,命令行中切换到aapt.exe目录执行:aapt dump badging E:\apk\es3.apk 2.运行后的结果中以下两行分别是应用包名package和入口activity名称 package: name=’com.estrongs.android.pop’ launchable-activity: name=’com.estrongs.android.pop.view.FileExplorerActivity’ 注:在android sdk目录搜索可以找到aapt.exe,如果没有可以下载apktool。 方法二:查看AndroidManifest.xml 1.使用apktool反编译app:apktool.bat d es3.apk E:\apk\es 2.打开AndroidManifest.xml manifest节点的package属性值是应用的包名:<manifest package=”com.estrongs.android.pop”>