我在请求打电话的时候,提示报错 No Activity found to handle Intent

因为我要获取listView中item某个控件的点击拨打电话,我在Adapter中写了一个接口,在activity中通过回调接口的获取数据来实现拨打电话的功能,但当我运行项目后,提示我No Activity found to handle intent,代码如下:图片说明

隐式intent权限我也给了,如下:图片说明
求大神指教!

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Android打电话出现No Activity found to handle Intent
用了android官方BLE的demo可以成功接收Arduino101板子传入的数据; 在原来的程序中直接加入打电话的代码,可以成功拨打电话 ``` public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.gatt_services_characteristics); final Intent intent = getIntent(); mDeviceName = intent.getStringExtra(EXTRAS_DEVICE_NAME); mDeviceAddress = intent.getStringExtra(EXTRAS_DEVICE_ADDRESS); // Sets up UI references. ((TextView) findViewById(R.id.device_address)).setText(mDeviceAddress); mGattServicesList = (ExpandableListView) findViewById(R.id.gatt_services_list);//characteristics列表 mGattServicesList.setOnChildClickListener(servicesListClickListner); mConnectionState = (TextView) findViewById(R.id.connection_state); mDataDisplay = (TextView) findViewById(R.id.data_value); getActionBar().setTitle(mDeviceName); getActionBar().setDisplayHomeAsUpEnabled(true); Intent gattServiceIntent = new Intent(this, BluetoothLeService.class); bindService(gattServiceIntent, mServiceConnection, BIND_AUTO_CREATE); button = (Button) findViewById(R.id.button); button.setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:000000")); } } }); } ``` 但如果改成根据数据的不同,拨打不同电话,就会停止工作,并且报错No Activity found to handle Intent { act=android.intent.action.CALL } ``` public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.gatt_services_characteristics); final Intent intent = getIntent(); mDeviceName = intent.getStringExtra(EXTRAS_DEVICE_NAME); mDeviceAddress = intent.getStringExtra(EXTRAS_DEVICE_ADDRESS); // Sets up UI references. ((TextView) findViewById(R.id.device_address)).setText(mDeviceAddress); mGattServicesList = (ExpandableListView) findViewById(R.id.gatt_services_list);//characteristics列表 mGattServicesList.setOnChildClickListener(servicesListClickListner); mConnectionState = (TextView) findViewById(R.id.connection_state); mDataDisplay = (TextView) findViewById(R.id.data_value); getActionBar().setTitle(mDeviceName); getActionBar().setDisplayHomeAsUpEnabled(true); Intent gattServiceIntent = new Intent(this, BluetoothLeService.class); bindService(gattServiceIntent, mServiceConnection, BIND_AUTO_CREATE); button = (Button) findViewById(R.id.button); button.setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { Intent callIntent = new Intent(Intent.ACTION_CALL); if (number == "00") { callIntent.setData(Uri.parse("tel:000000")); startActivity(callIntent); }else if (number == "01") { callIntent.setData(Uri.parse("tel:000001")); startActivity(callIntent); }else if (number == "02") { callIntent.setData(Uri.parse("tel:000002")); startActivity(callIntent); }else if (number == "03") { callIntent.setData(Uri.parse("tel:000003")); startActivity(callIntent); }else if (number == "04") { callIntent.setData(Uri.parse("tel:000004")); startActivity(callIntent); }else if (number == "05") { callIntent.setData(Uri.parse("tel:000005")); startActivity(callIntent); } } }); } ``` 麻烦各位大神帮忙看一下!!!谢谢!!!
No Activity found android.intent.action.CALL
Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.CALL dat=tel:xxxxx } at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1727) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1511) at android.app.Activity.startActivityForResult(Activity.java:3424) at android.app.Activity.startActivityForResult(Activity.java:3385) at com.hw.sotv.home.main.activity.call.VipActivity.joinOnClick(VipActivity.java:101) ... 15 more ![图片说明](https://img-ask.csdn.net/upload/201503/18/1426645804_817260.png)
在网络请求的时候出现以下报错
遇到了这么个问题,用的Retrofit+rxjava+Okhttp,求解答 ``` Process: com.example.tidus.ristrat, PID: 7166 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tidus.ristrat/com.example.tidus.ristrat.activity.RiskAssessmentActivity}: java.lang.IllegalArgumentException: Unable to create converter for class com.example.tidus.ristrat.bean.RiskAssessmentBean for method IRetrofitServer.doRiskTableListGet at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3260) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3396) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2009) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7319) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934) Caused by: java.lang.IllegalArgumentException: Unable to create converter for class com.example.tidus.ristrat.bean.RiskAssessmentBean for method IRetrofitServer.doRiskTableListGet at retrofit2.ServiceMethod$Builder.methodError(ServiceMethod.java:755) at retrofit2.ServiceMethod$Builder.createResponseConverter(ServiceMethod.java:741) at retrofit2.ServiceMethod$Builder.build(ServiceMethod.java:172) at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:170) at retrofit2.Retrofit$1.invoke(Retrofit.java:147) at java.lang.reflect.Proxy.invoke(Proxy.java:1006) at $Proxy3.doRiskTableListGet(Unknown Source) at com.example.tidus.ristrat.mvp.model.RiskAssessmentModel.getRiskAssessment(RiskAssessmentModel.java:25) at com.example.tidus.ristrat.mvp.presenter.RiskAssessmentPresenter.getRiskAssessment(RiskAssessmentPresenter.java:16) at com.example.tidus.ristrat.activity.RiskAssessmentActivity.initPresenterData(RiskAssessmentActivity.java:183) at com.example.tidus.ristrat.activity.RiskAssessmentActivity.initData(RiskAssessmentActivity.java:158) at com.example.lib_core.base.BaseActivity.onCreate(BaseActivity.java:44) at android.app.Activity.performCreate(Activity.java:7783) at android.app.Activity.performCreate(Activity.java:7772) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3235) ... 11 more Caused by: java.lang.SecurityException: Can not make a java.lang.reflect.Method constructor accessible at java.lang.reflect.AccessibleObject.setAccessible0(AccessibleObject.java:153) at java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:132) at com.google.gson.internal.reflect.PreJava9ReflectionAccessor.makeAccessible(PreJava9ReflectionAccessor.java:31) at com.google.gson.internal.ConstructorConstructor.newDefaultConstructor(ConstructorConstructor.java:103) at com.google.gson.internal.ConstructorConstructor.get(ConstructorConstructor.java:85) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:101) at com.google.gson.Gson.getAdapter(Gson.java:458) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102) at com.google.gson.Gson.getAdapter(Gson.java:458) at com.google.gson.internal.bind.ArrayTypeAdapter$1.create(ArrayTypeAdapter.java:48) at com.google.gson.Gson.getAdapter(Gson.java:458) 2019-09-04 13:57:04.536 7166-7166/com.example.tidus.ristrat E/AndroidRuntime: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102) at com.google.gson.Gson.getAdapter(Gson.java:458) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102) at com.google.gson.Gson.getAdapter(Gson.java:458) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102) at com.google.gson.Gson.getAdapter(Gson.java:458) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102) at com.google.gson.Gson.getAdapter(Gson.java:458) at com.google.gson.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:53) at com.google.gson.Gson.getAdapter(Gson.java:458) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102) at com.google.gson.Gson.getAdapter(Gson.java:458) at com.google.gson.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:53) at com.google.gson.Gson.getAdapter(Gson.java:458) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102) at com.google.gson.Gson.getAdapter(Gson.java:458) at com.google.gson.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:53) at com.google.gson.Gson.getAdapter(Gson.java:458) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102) at com.google.gson.Gson.getAdapter(Gson.java:458) at com.google.gson.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:53) at com.google.gson.Gson.getAdapter(Gson.java:458) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102) at com.google.gson.Gson.getAdapter(Gson.java:458) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:117) 2019-09-04 13:57:04.537 7166-7166/com.example.tidus.ristrat E/AndroidRuntime: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:166) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:102) at com.google.gson.Gson.getAdapter(Gson.java:458) at retrofit2.converter.gson.GsonConverterFactory.responseBodyConverter(GsonConverterFactory.java:64) at retrofit2.Retrofit.nextResponseBodyConverter(Retrofit.java:330) at retrofit2.Retrofit.responseBodyConverter(Retrofit.java:313) at retrofit2.ServiceMethod$Builder.createResponseConverter(ServiceMethod.java:739) ... 25 more ``` Bean类 ``` package com.example.tidus.ristrat.bean; import android.view.View; import java.io.Serializable; import java.util.List; public class RiskAssessmentBean implements Serializable { private String code; private String message; private String server_code; private ServerParamsBean server_params; public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public String getServer_code() { return server_code; } public void setServer_code(String server_code) { this.server_code = server_code; } public ServerParamsBean getServer_params() { return server_params; } public void setServer_params(ServerParamsBean server_params) { this.server_params = server_params; } public static class ServerParamsBean implements Serializable { private String PATIENT_ID; private Object DOCTOR_NAME; private Object REPORT_CODE; private Object REPORT_ID; private String IN_DEPT_CODE; private String IN_DEPT_NAME; private String PATIENT_NAME; private String BIRTHDAY; private String PATIENT_SEX; private String MEDICAL_REC_NUMBER; private String VISIT_SQ_NO; private String BED_NUMBER; private List<WENJUANNAMEBean> WENJUANNAME; public String getPATIENT_ID() { return PATIENT_ID; } public void setPATIENT_ID(String PATIENT_ID) { this.PATIENT_ID = PATIENT_ID; } public Object getDOCTOR_NAME() { return DOCTOR_NAME; } public void setDOCTOR_NAME(Object DOCTOR_NAME) { this.DOCTOR_NAME = DOCTOR_NAME; } public Object getREPORT_CODE() { return REPORT_CODE; } public void setREPORT_CODE(Object REPORT_CODE) { this.REPORT_CODE = REPORT_CODE; } public Object getREPORT_ID() { return REPORT_ID; } public void setREPORT_ID(Object REPORT_ID) { this.REPORT_ID = REPORT_ID; } public String getIN_DEPT_CODE() { return IN_DEPT_CODE; } public void setIN_DEPT_CODE(String IN_DEPT_CODE) { this.IN_DEPT_CODE = IN_DEPT_CODE; } public String getIN_DEPT_NAME() { return IN_DEPT_NAME; } public void setIN_DEPT_NAME(String IN_DEPT_NAME) { this.IN_DEPT_NAME = IN_DEPT_NAME; } public String getPATIENT_NAME() { return PATIENT_NAME; } public void setPATIENT_NAME(String PATIENT_NAME) { this.PATIENT_NAME = PATIENT_NAME; } public String getBIRTHDAY() { return BIRTHDAY; } public void setBIRTHDAY(String BIRTHDAY) { this.BIRTHDAY = BIRTHDAY; } public String getPATIENT_SEX() { return PATIENT_SEX; } public void setPATIENT_SEX(String PATIENT_SEX) { this.PATIENT_SEX = PATIENT_SEX; } public String getMEDICAL_REC_NUMBER() { return MEDICAL_REC_NUMBER; } public void setMEDICAL_REC_NUMBER(String MEDICAL_REC_NUMBER) { this.MEDICAL_REC_NUMBER = MEDICAL_REC_NUMBER; } public String getVISIT_SQ_NO() { return VISIT_SQ_NO; } public void setVISIT_SQ_NO(String VISIT_SQ_NO) { this.VISIT_SQ_NO = VISIT_SQ_NO; } public String getBED_NUMBER() { return BED_NUMBER; } public void setBED_NUMBER(String BED_NUMBER) { this.BED_NUMBER = BED_NUMBER; } public List<WENJUANNAMEBean> getWENJUANNAME() { return WENJUANNAME; } public void setWENJUANNAME(List<WENJUANNAMEBean> WENJUANNAME) { this.WENJUANNAME = WENJUANNAME; } public static class WENJUANNAMEBean implements Serializable { private int MERCHANT_ID; private int SITE_ID; private int DEPARTMENT; private int FORM_ID; private String FORM_NAME; private int FORM_TYPE; private int FORM_SEQ; private String BUSINESS_CLASS; private List<XUANXIANGBean> XUANXIANG; private boolean che_color; private int form_id; public int getForm_id() { return form_id; } public void setForm_id(int form_id) { this.form_id = form_id; } public boolean isChe_color() { return che_color; } public void setChe_color(boolean che_color) { this.che_color = che_color; } public int getMERCHANT_ID() { return MERCHANT_ID; } public void setMERCHANT_ID(int MERCHANT_ID) { this.MERCHANT_ID = MERCHANT_ID; } public int getSITE_ID() { return SITE_ID; } public void setSITE_ID(int SITE_ID) { this.SITE_ID = SITE_ID; } public int getDEPARTMENT() { return DEPARTMENT; } public void setDEPARTMENT(int DEPARTMENT) { this.DEPARTMENT = DEPARTMENT; } public int getFORM_ID() { return FORM_ID; } public void setFORM_ID(int FORM_ID) { this.FORM_ID = FORM_ID; } public String getFORM_NAME() { return FORM_NAME; } public void setFORM_NAME(String FORM_NAME) { this.FORM_NAME = FORM_NAME; } public int getFORM_TYPE() { return FORM_TYPE; } public void setFORM_TYPE(int FORM_TYPE) { this.FORM_TYPE = FORM_TYPE; } public int getFORM_SEQ() { return FORM_SEQ; } public void setFORM_SEQ(int FORM_SEQ) { this.FORM_SEQ = FORM_SEQ; } public String getBUSINESS_CLASS() { return BUSINESS_CLASS; } public void setBUSINESS_CLASS(String BUSINESS_CLASS) { this.BUSINESS_CLASS = BUSINESS_CLASS; } public List<XUANXIANGBean> getXUANXIANG() { return XUANXIANG; } public void setXUANXIANG(List<XUANXIANGBean> XUANXIANG) { this.XUANXIANG = XUANXIANG; } public static class XUANXIANGBean implements Serializable { private String GROUP_TAB; private int GROUP_TAB_ID; private List<WENJUANBean> WENJUAN; public String getGROUP_TAB() { return GROUP_TAB; } public void setGROUP_TAB(String GROUP_TAB) { this.GROUP_TAB = GROUP_TAB; } public int getGROUP_TAB_ID() { return GROUP_TAB_ID; } public void setGROUP_TAB_ID(int GROUP_TAB_ID) { this.GROUP_TAB_ID = GROUP_TAB_ID; } public List<WENJUANBean> getWENJUAN() { return WENJUAN; } public void setWENJUAN(List<WENJUANBean> WENJUAN) { this.WENJUAN = WENJUAN; } public static class WENJUANBean implements Serializable { private int FACTOR_GROUP_SEQ; private String FACTOR_GROUP_ID; private String FACTOR_GROUP_NAME; private List<SublistBean> sublist; public int getFACTOR_GROUP_SEQ() { return FACTOR_GROUP_SEQ; } public void setFACTOR_GROUP_SEQ(int FACTOR_GROUP_SEQ) { this.FACTOR_GROUP_SEQ = FACTOR_GROUP_SEQ; } public String getFACTOR_GROUP_ID() { return FACTOR_GROUP_ID; } public void setFACTOR_GROUP_ID(String FACTOR_GROUP_ID) { this.FACTOR_GROUP_ID = FACTOR_GROUP_ID; } public String getFACTOR_GROUP_NAME() { return FACTOR_GROUP_NAME; } public void setFACTOR_GROUP_NAME(String FACTOR_GROUP_NAME) { this.FACTOR_GROUP_NAME = FACTOR_GROUP_NAME; } public List<SublistBean> getSublist() { return sublist; } public void setSublist(List<SublistBean> sublist) { this.sublist = sublist; } public static class SublistBean implements Serializable { private int FACTOR_GROUP_ID; private String FACTOR_GROUP_NAME; private String FACTOR_GROUP_DESC; private int FACTOR_GROUP_SEQ; private Object GROUP_SHOW_LAYOUT; private int RISK_FACTOR_ID; private String RISK_FACTOR_NAME; private int SCORE_SHOW_TYPE; private int MUTEX_GROUP; private String isslect; private String ANALYSIS_SOURCE_STR; private String CURRENT_DESC; private List<OptionListBean> optionList; private View shuruValue; private boolean checked; public boolean isChecked() { return checked; } public void setChecked(boolean checked) { this.checked = checked; } public View getShuruValue() { return shuruValue; } public void setShuruValue(View shuruValue) { this.shuruValue = shuruValue; } public int getFACTOR_GROUP_ID() { return FACTOR_GROUP_ID; } public void setFACTOR_GROUP_ID(int FACTOR_GROUP_ID) { this.FACTOR_GROUP_ID = FACTOR_GROUP_ID; } public String getFACTOR_GROUP_NAME() { return FACTOR_GROUP_NAME; } public void setFACTOR_GROUP_NAME(String FACTOR_GROUP_NAME) { this.FACTOR_GROUP_NAME = FACTOR_GROUP_NAME; } public String getFACTOR_GROUP_DESC() { return FACTOR_GROUP_DESC; } public void setFACTOR_GROUP_DESC(String FACTOR_GROUP_DESC) { this.FACTOR_GROUP_DESC = FACTOR_GROUP_DESC; } public int getFACTOR_GROUP_SEQ() { return FACTOR_GROUP_SEQ; } public void setFACTOR_GROUP_SEQ(int FACTOR_GROUP_SEQ) { this.FACTOR_GROUP_SEQ = FACTOR_GROUP_SEQ; } public Object getGROUP_SHOW_LAYOUT() { return GROUP_SHOW_LAYOUT; } public void setGROUP_SHOW_LAYOUT(Object GROUP_SHOW_LAYOUT) { this.GROUP_SHOW_LAYOUT = GROUP_SHOW_LAYOUT; } public int getRISK_FACTOR_ID() { return RISK_FACTOR_ID; } public void setRISK_FACTOR_ID(int RISK_FACTOR_ID) { this.RISK_FACTOR_ID = RISK_FACTOR_ID; } public String getRISK_FACTOR_NAME() { return RISK_FACTOR_NAME; } public void setRISK_FACTOR_NAME(String RISK_FACTOR_NAME) { this.RISK_FACTOR_NAME = RISK_FACTOR_NAME; } public int getSCORE_SHOW_TYPE() { return SCORE_SHOW_TYPE; } public void setSCORE_SHOW_TYPE(int SCORE_SHOW_TYPE) { this.SCORE_SHOW_TYPE = SCORE_SHOW_TYPE; } public int getMUTEX_GROUP() { return MUTEX_GROUP; } public void setMUTEX_GROUP(int MUTEX_GROUP) { this.MUTEX_GROUP = MUTEX_GROUP; } public String getIsslect() { return isslect; } public void setIsslect(String isslect) { this.isslect = isslect; } public String getANALYSIS_SOURCE_STR() { return ANALYSIS_SOURCE_STR; } public void setANALYSIS_SOURCE_STR(String ANALYSIS_SOURCE_STR) { this.ANALYSIS_SOURCE_STR = ANALYSIS_SOURCE_STR; } public String getCURRENT_DESC() { return CURRENT_DESC; } public void setCURRENT_DESC(String CURRENT_DESC) { this.CURRENT_DESC = CURRENT_DESC; } public List<OptionListBean> getOptionList() { return optionList; } public void setOptionList(List<OptionListBean> optionList) { this.optionList = optionList; } public static class OptionListBean implements Serializable { private int RISK_FACTOR_ID; private int FACTOR_OPTION_ID; private String FACTOR_OPTION; private String OPTION_TYPE; private Object VALUE_START; private Object VALUE_END; private Object SEX; private int AGE_BEGIN; private int AGE_END; private int RISK_SCORE; private int CHANGE_FLAG; private Object RISK_SCORE_CHANGE; private int RISK_LEVEL; private Object DISEASE_CODE; private Object BAD_HABITS; private Object BAD_HABITS_DESC; private Object BAD_HABITS_IMPROVE; private boolean itemChecked; public boolean isItemChecked() { return itemChecked; } public void setItemChecked(boolean itemChecked) { this.itemChecked = itemChecked; } public int getRISK_FACTOR_ID() { return RISK_FACTOR_ID; } public void setRISK_FACTOR_ID(int RISK_FACTOR_ID) { this.RISK_FACTOR_ID = RISK_FACTOR_ID; } public int getFACTOR_OPTION_ID() { return FACTOR_OPTION_ID; } public void setFACTOR_OPTION_ID(int FACTOR_OPTION_ID) { this.FACTOR_OPTION_ID = FACTOR_OPTION_ID; } public String getFACTOR_OPTION() { return FACTOR_OPTION; } public void setFACTOR_OPTION(String FACTOR_OPTION) { this.FACTOR_OPTION = FACTOR_OPTION; } public String getOPTION_TYPE() { return OPTION_TYPE; } public void setOPTION_TYPE(String OPTION_TYPE) { this.OPTION_TYPE = OPTION_TYPE; } public Object getVALUE_START() { return VALUE_START; } public void setVALUE_START(Object VALUE_START) { this.VALUE_START = VALUE_START; } public Object getVALUE_END() { return VALUE_END; } public void setVALUE_END(Object VALUE_END) { this.VALUE_END = VALUE_END; } public Object getSEX() { return SEX; } public void setSEX(Object SEX) { this.SEX = SEX; } public int getAGE_BEGIN() { return AGE_BEGIN; } public void setAGE_BEGIN(int AGE_BEGIN) { this.AGE_BEGIN = AGE_BEGIN; } public int getAGE_END() { return AGE_END; } public void setAGE_END(int AGE_END) { this.AGE_END = AGE_END; } public int getRISK_SCORE() { return RISK_SCORE; } public void setRISK_SCORE(int RISK_SCORE) { this.RISK_SCORE = RISK_SCORE; } public int getCHANGE_FLAG() { return CHANGE_FLAG; } public void setCHANGE_FLAG(int CHANGE_FLAG) { this.CHANGE_FLAG = CHANGE_FLAG; } public Object getRISK_SCORE_CHANGE() { return RISK_SCORE_CHANGE; } public void setRISK_SCORE_CHANGE(Object RISK_SCORE_CHANGE) { this.RISK_SCORE_CHANGE = RISK_SCORE_CHANGE; } public int getRISK_LEVEL() { return RISK_LEVEL; } public void setRISK_LEVEL(int RISK_LEVEL) { this.RISK_LEVEL = RISK_LEVEL; } public Object getDISEASE_CODE() { return DISEASE_CODE; } public void setDISEASE_CODE(Object DISEASE_CODE) { this.DISEASE_CODE = DISEASE_CODE; } public Object getBAD_HABITS() { return BAD_HABITS; } public void setBAD_HABITS(Object BAD_HABITS) { this.BAD_HABITS = BAD_HABITS; } public Object getBAD_HABITS_DESC() { return BAD_HABITS_DESC; } public void setBAD_HABITS_DESC(Object BAD_HABITS_DESC) { this.BAD_HABITS_DESC = BAD_HABITS_DESC; } public Object getBAD_HABITS_IMPROVE() { return BAD_HABITS_IMPROVE; } public void setBAD_HABITS_IMPROVE(Object BAD_HABITS_IMPROVE) { this.BAD_HABITS_IMPROVE = BAD_HABITS_IMPROVE; } } } } } } } } ``` 网络请求的时候 doRiskTableListGet()这个方法报错 ``` public class RiskAssessmentModel implements IRiskAssessmentContart.IRiskAssessmentModel { @SuppressLint("CheckResult") @Override public void getRiskAssessment(HashMap<String, Object> params, final IRequestCallback iRequestCallback) { RetrofitUtils.getInstance().createService(IRetrofitServer.class) .doRiskTableListGet(ApiService.RISK_TABLE_LIST, params) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(new Consumer<RiskAssessmentBean>() { @Override public void accept(RiskAssessmentBean riskAssessmentBean) throws Exception { if (iRequestCallback != null) { iRequestCallback.onSuccess(riskAssessmentBean); } } }, new Consumer<Throwable>() { @Override public void accept(Throwable throwable) throws Exception { if (iRequestCallback != null) { iRequestCallback.onFailed(throwable); } } }); } ``` 这是我进到doRiskTableListGet()方法内的代码 ``` @GET Observable<RiskAssessmentBean> doRiskTableListGet(@Url String apiUrl, @QueryMap HashMap<String, Object> params); ```
Android新手: No Activity found to handle Intent
manifest.xml中的配置: ``` <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <!-- 配置mainactivity --> <activity android:name="com.ahut.newactivity.MainActivity" android:label="这个是第一个页面" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <!-- 配置testactivity --> <activity android:name="com.ahut.newactivity.TestActivity" android:label="这个是第二个页面" > <intent-filter> <action android:name="com.ahut.test1" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> ``` 在mainactivity中的代码: ``` public void click2(View v) { Intent intent2 = new Intent(); intent2.setAction("com.ahut.test1"); intent2.addCategory("android.intent.category.LAUNCHER"); startActivity(intent2); } ``` 其他的都是照着视频抄的代码,运行出现: 01-02 10:56:46.773: E/AndroidRuntime(7882): Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.ahut.test1 cat=[android.intent.category.LAUNCHER] } 求大神帮忙看看!
Android studio 点击登录,提示停止运行,代码无报错
就只有点击按钮跳转activity功能,之前成功跳转,然后今天在跳转后的 界面添加了fragment功能,实现导航栏,然后就跳转不成功了,代码业务错误 点击按钮就停止运行 bt.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent1=new Intent(MainActivity.this,actionActivity.class); startActivity(intent1); } }); 上面是点击跳转 下面是跳转后的界面代码 package com.example.denglujiemian; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentTransaction; import android.os.Bundle; import android.view.View; import android.widget.FrameLayout; import android.widget.ImageView; import java.io.FileInputStream; public class actionActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_action); ImageView imageView1=(ImageView) findViewById(R.id.xl); ImageView imageView2=(ImageView) findViewById(R.id.lt); ImageView imageView3=(ImageView) findViewById(R.id.hy); ImageView imageView4=(ImageView) findViewById(R.id.wd); imageView1.setOnClickListener(l); imageView2.setOnClickListener(l); imageView3.setOnClickListener(l); imageView4.setOnClickListener(l); } View.OnClickListener l=new View.OnClickListener() { @Override public void onClick(View v) { FragmentManager fragmentManager=getSupportFragmentManager(); FragmentTransaction fragmentTransaction=fragmentManager.beginTransaction(); Fragment fxian=null; switch (v.getId()){ case R.id.xl: fxian=new keep_Fragment(); break; case R.id.lt: fxian=new liaotianfrag_Fragment(); break; case R.id.hy: fxian=new haoyou_Fragment(); break; case R.id.wd: fxian=new shezhi_Fragment(); break; default: break; } fragmentTransaction.replace(R.id.frameyongqi,fxian); fragmentTransaction.commit(); } };
appium真机报错:Could not parse activity from dumpsys
链接安卓10报错 ``` SessionNotCreatedException: A new session could not be created. (Original error: Could not parse activity from dumpsys) ``` 6就没事
Picnic Cows 的实现的计算
Problem Description It’s summer vocation now. After tedious milking, cows are tired and wish to take a holiday. So Farmer Carolina considers having a picnic beside the river. But there is a problem, not all the cows consider it’s a good idea! Some cows like to swim in West Lake, some prefer to have a dinner in Shangri-la ,and others want to do something different. But in order to manage expediently, Carolina coerces all cows to have a picnic! Farmer Carolina takes her N (1<N≤400000) cows to the destination, but she finds every cow’s degree of interest in this activity is so different that they all loss their interests. So she has to group them to different teams to make sure that every cow can go to a satisfied team. Considering about the security, she demands that there must be no less than T(1<T≤N)cows in every team. As every cow has its own interest degree of this picnic, we measure this interest degree’s unit as “Moo~”. Cows in the same team should reduce their Moo~ to the one who has the lowest Moo~ in this team——It’s not a democratical action! So Carolina wishes to minimize the TOTAL reduced Moo~s and groups N cows into several teams. For example, Carolina has 7 cows to picnic and their Moo~ are ‘8 5 6 2 1 7 6’ and at least 3 cows in every team. So the best solution is that cow No.2,4,5 in a team (reduce (2-1)+(5-1) Moo~)and cow No.1,3,6,7 in a team (reduce ((7-6)+(8-6)) Moo~),the answer is 8. Input The input contains multiple cases. For each test case, the first line has two integer N, T indicates the number of cows and amount of Safe-base line. Following n numbers, describe the Moo~ of N cows , 1st is cow 1 , 2nd is cow 2, and so on. Output One line for each test case, containing one integer means the minimum of the TOTAL reduced Moo~s to group N cows to several teams. Sample Input 7 3 8 5 6 2 1 7 6 Sample Output 8
AndroidManifest.xml怎么写?No Launcher activity found!
运行时出现错误提示: No Launcher activity found! The launch will only sync the application package on the device! 然后才知道还需要修改AndroidManifest.xml文件。 但是有4个.Java文件,如下图,BluetoothCar.java是主Activity(初学,不知道表述的对不对) ![CSDN移动问答][1] [1]: http://d.hiphotos.baidu.com/zhidao/pic/item/f7246b600c33874498fcce47520fd9f9d72aa0d4.jpg 请问在<application></application>中只加上如下代码:为什么还是有错误提示?和原来提示的一样 <activity android:name=".BluetoothCar" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> 是不是其他文件也要写进来?谢谢
安卓调用百度地图sdk,可是返回坐标值一直是4.9E-324
我发现手机端使用正常,就是在使用夜神模拟器的时候出现的这样的问题。 打开夜神模拟器设置,发现我的软件有这个位置权限(手机端申请了动态权限) 但就是返回4.9E-324,location.getLocType()的返回值是167.我看文档说是没有获取到位置权限。 我现在就有一点迷惑了,动态的也申请了,也在AndroidManifest里面写了权限。 真心不知道这个bug咋解决。 以下是我mainactivity里面所有的代码: ``` package com.example.ppgo; import android.Manifest; import android.content.pm.PackageManager; import android.os.Bundle; import android.util.Log; import android.widget.TextView; import android.widget.Toast; import com.baidu.location.BDLocation; import com.baidu.location.BDLocationListener; import com.baidu.location.LocationClient; import com.baidu.location.LocationClientOption; import java.util.ArrayList; import java.util.List; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; public class MainActivity extends AppCompatActivity { public LocationClient mLocationClient; private TextView positionText; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mLocationClient=new LocationClient(getApplicationContext()); mLocationClient.registerLocationListener(new MyLocationListener()); setContentView(R.layout.activity_main); positionText=(TextView)findViewById(R.id.position_text_view); List<String> permissionList=new ArrayList<>(); if(ContextCompat.checkSelfPermission(MainActivity.this, Manifest. permission.ACCESS_FINE_LOCATION)!=PackageManager.PERMISSION_GRANTED){ permissionList.add(Manifest.permission.ACCESS_FINE_LOCATION); } if(ContextCompat.checkSelfPermission(MainActivity.this, Manifest. permission.READ_PHONE_STATE)!=PackageManager.PERMISSION_GRANTED){ permissionList.add(Manifest.permission.READ_PHONE_STATE); } if(ContextCompat.checkSelfPermission(MainActivity.this, Manifest. permission.WRITE_EXTERNAL_STORAGE)!=PackageManager.PERMISSION_GRANTED){ permissionList.add(Manifest.permission.WRITE_EXTERNAL_STORAGE); } if(!permissionList.isEmpty()){ String[]permissions=permissionList.toArray(new String[permissionList.size()]); ActivityCompat.requestPermissions(MainActivity.this,permissions,1); }else { requestLocation(); } } private void requestLocation(){ initLocation(); mLocationClient.start(); } private void initLocation(){ LocationClientOption option =new LocationClientOption(); option.setScanSpan(5000); mLocationClient.setLocOption(option); } @Override protected void onDestroy() { super.onDestroy(); mLocationClient.stop(); } @Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { super.onRequestPermissionsResult(requestCode, permissions, grantResults); Log.e("Tag","执行了onRequestPermissionsResult函数"); switch (requestCode){ case 1: if (grantResults.length>0){ for(int result:grantResults){ if(result!=PackageManager.PERMISSION_GRANTED){ Toast.makeText(this,"必须同意所有权限才能使用本程序", Toast.LENGTH_SHORT).show(); finish(); return; } } requestLocation(); }else { Toast.makeText(this,"发生未知错误",Toast.LENGTH_SHORT).show(); finish(); } break; default: } } public class MyLocationListener implements BDLocationListener { @Override public void onReceiveLocation(BDLocation location){ StringBuilder currentPosition=new StringBuilder(); currentPosition.append("纬度:").append(location.getLatitude()).append("\n"); currentPosition.append("经线:").append(location.getLongitude()).append("\n"); currentPosition.append("国家:").append(location.getCountry()).append("\n"); currentPosition.append("省:").append(location.getProvince()).append("\n"); currentPosition.append("市:").append(location.getCity()).append("\n"); currentPosition.append("区:").append(location.getDistrict()).append("\n"); currentPosition.append("街道:").append(location.getStreet()).append("\n"); currentPosition.append("定位方式:"); if (location.getLocType() == BDLocation.TypeGpsLocation) { currentPosition.append("GPS"); } else if (location.getLocType() == BDLocation.TypeNetWorkLocation) { currentPosition.append("网络"); currentPosition.append(" 错误代码:"+location.getLocType()); } else if (location.getLocType() == BDLocation.TypeOffLineLocation){ currentPosition.append("离线定位成功,离线定位结果也是有效的"); } else if (location.getLocType() == BDLocation.TypeServerError){ currentPosition.append("服务端网络定位失败"); currentPosition.append(" 错误代码:"+location.getLocType()); } else if (location.getLocType() == BDLocation.TypeNetWorkException){ currentPosition.append("网络不同导致定位失败,请检查网络是否通畅"); } else if (location.getLocType() == BDLocation.TypeCriteriaException){ currentPosition.append("无法获取有效定位依据导致定位失败"); currentPosition.append(" 错误代码:"+location.getLocType()); } else { currentPosition.append(location.getLocType()); //这里打印出来location.getLocType()是162 currentPosition.append("老子也不知道是啥原因!!!"); } positionText.setText(currentPosition); } } } ``` 以下是我AndroidManifest里面的代码: ``` <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.ppgo"> <!-- 这个权限用于进行网络定位 --> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <!-- 这个权限用于访问GPS定位 --> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <!-- 用于访问wifi网络信息,wifi信息会用于进行网络定位 --> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <!-- 获取网络状态,根据网络状态切换进行数据请求网络转换 --> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <!-- 写外置存储。如果开发者使用了离线地图,并且数据写在外置存储区域,则需要申请该权限 --> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <!-- 读取外置存储。如果开发者使用了so动态加载功能并且把so文件放在了外置存储区域,则需要申请该权限,否则不需要 --> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <!-- 访问网络,进行地图相关业务数据请求,包括地图数据,路线规划,POI检索等 --> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <meta-data android:name="com.baidu.lbsapi.API_KEY" android:value="mvxMsdG1homIlK4UjAWYP2itjxo09Dyy" /> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <service android:name="com.baidu.location.f" android:enabled="true" android:process=":remote" /> </application> </manifest> ```
Jboss启动项目报错 以下是错误信息:
13:34:38,808 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'extensionClasses=org.codehaus.groovy.jsr223.ScriptExtensions,org.codehaus.groovy.runtime.NioGroovyMethods,org.codehaus.groovy.runtime.SqlGroovyMethods,org.codehaus.groovy.runtime.SwingGroovyMethods,org.codehaus.groovy.runtime.XmlGroovyMethods' for service type 'org.codehaus.groovy.runtime.ExtensionModule' 13:34:38,808 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'staticExtensionClasses=org.codehaus.groovy.jsr223.ScriptStaticExtensions' for service type 'org.codehaus.groovy.runtime.ExtensionModule' 13:34:39,098 WARN [org.jboss.as.ee] (MSC service thread 1-15) JBAS011006: Not installing optional component org.springframework.http.server.ServletServerHttpAsyncRequestControl due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.springframework.http.server.ServletServerHttpAsyncRequestControl at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:607) [jboss-as-ee-7.2.0.Final.jar:7.2.0.Final] at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:80) [jboss-as-ee-7.2.0.Final.jar:7.2.0.Final] at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79] 13:34:39,100 WARN [org.jboss.as.ee] (MSC service thread 1-15) JBAS011006: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.springframework.web.context.request.async.StandardServletAsyncWebRequest at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:607) [jboss-as-ee-7.2.0.Final.jar:7.2.0.Final] at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:80) [jboss-as-ee-7.2.0.Final.jar:7.2.0.Final] at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79] 13:34:39,155 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-15) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3) 13:34:39,185 INFO [org.jboss.web] (ServerService Thread Pool -- 74) JBAS018210: Register web context: /test.activity 13:34:39,193 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/test.activity]] (ServerService Thread Pool -- 74) No Spring WebApplicationInitializer types detected on classpath 13:34:39,664 WARNING [org.apache.myfaces.webapp.AbstractFacesInitializer] (ServerService Thread Pool -- 74) No mappings of FacesServlet found. Abort initializing MyFaces. 谢谢诸位.
请问android如何实现类似cube escape几个activity相互跳转,并保证activity数据的存储
# 问题 学习android以来,接触的都是activity单向的 跳转和数据传输 很想明白像cube escape这样多个activity之间相互跳转并保存执行过的操作是怎么实现的
从activity返回到fragment时listview不显示
Fragment代码如下: ``` public class TodolistFragment extends Fragment { private List<Todo> todos = new ArrayList<>(); //NotificationManager notificationManager; SimpleAdapter adapter; ListView listView; View view; Button button; private int uid; private String date; @Override public void onAttach(Context context) { super.onAttach(context); uid = ((HomePage)context).user_id; date = ((HomePage)context).date; //buttonClickListener = (OnItemButtonClickListener) context; } @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); button = (Button)getActivity().findViewById(R.id.add_list); button.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v){ showDialog(); } }); LocalBroadcastManager broadcastManager = LocalBroadcastManager.getInstance(getActivity()); IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction("android.intent.action.CART_BROADCAST"); BroadcastReceiver mItemViewListClickReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { String msg = intent.getStringExtra("data"); if("refresh".equals(msg)) init(); } }; broadcastManager.registerReceiver(mItemViewListClickReceiver, intentFilter); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { view = inflater.inflate(R.layout.activity_todolist_fragment, container, false); init(); listView = (ListView)view.findViewById(R.id.list); return view; } /*public interface OnItemButtonClickListener{ void onItemViewClick(View v); }*/ @Override public void onResume(){ System.out.println("todolist onresume!"); super.onResume(); //init(); } private void init(){ listView = (ListView)view.findViewById(R.id.list); MySqliteDB mydb = new MySqliteDB(view.getContext(),"MyDB", null, 1); SQLiteDatabase db = mydb.getReadableDatabase(); Cursor cursor; cursor = db.query("todolist",new String[]{"list_id","title","total_time","complete_time"},"user_id="+uid,null,null,null,null); ArrayList<Map<String, String>> list = new ArrayList<Map<String, String>>(); while (cursor.moveToNext()) { //数据存入map Map<String, String> map = new HashMap<String, String>(); final int t = cursor.getInt(cursor.getColumnIndex("total_time"))-cursor.getInt(cursor.getColumnIndex("complete_time")); if(t > 0) { final int list_id = cursor.getInt(cursor.getColumnIndex("list_id")); map.put("title", cursor.getString(cursor.getColumnIndex("title"))); map.put("time", t + "分钟"); //map添加到集合list中 list.add(map); listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Intent intent = new Intent(); Bundle bundle = new Bundle(); bundle.putInt("list_id", list_id); bundle.putInt("user_id", uid); bundle.putInt("time", t); bundle.putString("date", date); intent.putExtras(bundle); intent.setClass(getActivity(), Timing.class); getActivity().startActivity(intent); } }); } } adapter=new SimpleAdapter(getContext(),list,R.layout.todolist_item, new String[]{"title","time"},new int[]{R.id.todolist_title,R.id.todolist_time}); listView.setAdapter(adapter); } private void showDialog() { //此处省略了 } } ```
No Launcher activity found 解决方案好像没用
<?xml version="1.0" encoding="UTF-8"?> -<manifest android:versionName="1.0" android:versionCode="1" package="com.ty.weather" xmlns:android="http://schemas.android.com/apk/res/android"> -<application android:label="@string/app_name" android:icon="@drawable/weather"> -<receiver android:label="@string/app_name" android:icon="@drawable/weather" android:name="ForecastWidget"> -<intent-filter> <action android:name="android.appwidget.action.APPWIDGET_UPDATE"> </action> </intent-filter> <meta-data android:name="android.appwidget.provider" android:resource="@xml/weatherwidget"> </meta-data> </receiver> -<activity android:label="@string/app_name" android:icon="@drawable/weather" android:name="ConfigureActivity"> -<intent-filter> <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"> </action> </intent-filter> </activity> <activity android:name="DetailForecastActivity" android:excludeFromRecents="true"> </activity> <service android:name="ForecastService"> </service> <provider android:name="ForecastProvider" android:authorities="com.ty.weather"> </provider> <service android:name="ForecastTimeService"> </service> </application> <uses-sdk android:minSdkVersion="8"/> <uses-permission android:name="android.permission.INTERNET"> </uses-permission> </manifest>
Heroes Arrangement 的程序设计
Problem Description There are N heroes in the Kingdom of Heroes, each hero has a special range of activity, this “range” is a delta-shaped region (triangle region including the boundary; it is guaranteed that all triangles will neither degenerate into a segment nor a point on the King’s angle of view), and heroes can appear in any point in his activity range. The king, standing at the Origin (0, 0, 0), is observing the heroes. No range of activity will contain the king’s position. You may assume that no hero could meet others, that means these “range” have no common point. Your task is to find number K, indicating that the king can choose at most K heroes such that no pairs of chosen heroes cause one may block the king’s view line to observe another. In other words, no hero can appear on the segment between another hero and the King. Input There are multiple test cases, the number of them, T, is given in the very first line of the input, followed by T cases. For each test case: First line contains an integer N, the number of heroes, 1≤N≤40. Then N lines follow, each line contains nine integers x1 y1 z1 x2 y2 z2 x3 y3 z3, denoting the coordinates of the delta-shaped regions’ vertex respectively, -100≤x1, y1, z1, x2, y2, z2, x3, y3, z3≤100. Output Output a single line with a number K with case number, the maximum number of heroes that king can choose. Sample Input 2 2 0 0 1 1 2 1 -1 2 1 0 0 2 1 -2 2 -1 -2 2 2 0 0 1 1 2 1 -1 2 1 0 0 -1 1 -2 -1 -1 -2 -1 Sample Output Case #1: 1 Case #2: 2
公司开发的app在特定机型上无法升级,解决思路是怎样的?
刚入门android studio,目前只懂一些基础的控件、layout和activity的互动、数据库读写查询相关方面的内容。结果公司原程序员只有1个,我一上来就被分配了一个大问题:公司开发的app在oppo和vivo上无法升级(而在其他平台可以)。我对如何解决这个问题完全没有头绪,希望老手提供一下思路,谢谢。另外,我自己的思路是先去找oppo的安装包,但安装包下载来后是ozip格式的,我该如何在android studio上的模拟器上模拟运行呢?
python + Appium运行时,报错: A session is either terminated or not started 如何解决?
![图片说明](https://img-ask.csdn.net/upload/201911/30/1575119283_374195.png) # 代码如下: from appium import webdriver import time # #appium服务监听地址 server = 'http://localhost:4723/wd/hub' # localhost为本机;4723为端口(默认);/wd/hub可以看成是规定的默认地址 # #app启动参数 desired_caps = { "platformName": "Android", # platformName:使用哪个移动操作系统平台;iOS,Android或FirefoxOS # "platformVersion":"5", "deviceName": "127.0.0.1:62001", # deviceName:使用的移动设备或模拟器 "appPackage": "com.xcy.zj", # appPackage:填写包名 "appActivity": ".ui.activity.SplashActivity", # 要从包中启动的Android活动的活动名称 "newCommandTimeout" : 6000, "unicodeKeyboard" : True, "resetKeyboard" : True, "noReset": True } # #驱动 driver = webdriver.Remote(server, desired_caps) driver.implicitly_wait(10) ##点击我的 driver.find_element_by_id("com.xcy.zj:id/act_main_my_text").click() # 报错信息如下: Traceback (most recent call last): File "D:/ceshi/Pycharm/pycharm projects/init_/exercise/test20191130.py", line 19, in <module> driver.implicitly_wait(10) File "D:\ceshi\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 912, in implicitly_wait 'implicit': int(float(time_to_wait) * 1000)}) File "D:\ceshi\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "D:\ceshi\Python\lib\site-packages\appium\webdriver\errorhandler.py", line 29, in check_response raise wde File "D:\ceshi\Python\lib\site-packages\appium\webdriver\errorhandler.py", line 24, in check_response super(MobileErrorHandler, self).check_response(response) File "D:\ceshi\Python\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.InvalidSessionIdException: Message: A session is either terminated or not started
安卓运行报错android.content.ActivityNotFoundException: Unable to find explicit activity class
以下是报错信息: ``` android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.helloworld/android.widget.TextView}; have you declared this activity in your AndroidManifest.xml? ``` 然后我搜索了一下得到的解决方案是没有将activity在mainfest.xml中注册,但是我已经注册过了,以下是xml中的代码 ``` <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.helloworld"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".TextViewActivity" android:label=""></activity>//注册第二个活动 <activity android:name=".MainActivity"> //前面的点是包名省略, <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> ``` 以下是第二个活动的代码 ``` package com.example.helloworld; import androidx.appcompat.app.AppCompatActivity; import android.graphics.Paint; import android.os.Bundle; import android.widget.TextView; public class TextViewActivity extends AppCompatActivity { private TextView tv2; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_text_view); tv2 = findViewById(R.id.tv2); tv2.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG);//加入划线 tv2.getPaint().setAntiAlias(true);//去除锯齿 } } ``` 以下是第二个活动的xml代码 ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizontal" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/tv_test1" android:textColor="#000000" android:textSize="30sp" />//在strings.xml中编辑好后,在这里调用 //最大行数为一,且显示不下时出现省略号 <TextView android:layout_width="100dp" android:layout_height="wrap_content" android:maxLines="1" android:ellipsize="end" android:id="@+id/t2" android:text="哎哟不错哦!" android:textColor="#000000" android:textSize="30sp"/> //有额外选项或者下拉框(大致这个意思) <TextView android:layout_width="match_parent" android:layout_height="50dp" android:drawableRight="@drawable/arrow3" android:text="for you and me" android:textColor="#000000" android:textSize="30sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="xxx" android:id="@+id/tv2" android:textColor="#000000" android:textSize="30sp" /> </LinearLayout> ``` 以下是mainactivity的代码(之后补充的) ``` public class MainActivity extends AppCompatActivity { private Button btntv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);//设置内容视图 btntv = findViewById(R.id.bt_tv1); btntv.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { //跳转到TextView演示界面 Intent intent = new Intent(MainActivity.this, TextView.class); startActivity(intent); } }); } } ```
建立了连接池后还是出现内存溢出提示
android应用程序在第一个activity中调用连接池中的连接可以正常访问数据库,访问后也将连接归还到连接池中了,在第二个activity中再次调用连接池中的连接,就出现错误提示。图![图片说明](https://img-ask.csdn.net/upload/201912/13/1576208213_135041.jpg)
Android 锁屏状态下跳转Activity会闪现锁屏界面
如题,项目中碰到一个问题 锁屏状态下打开相机(Activity A) 录制视频结束后需要跳转到另外一个Activity B进行预览,Activity A是竖屏 B为横屏 跳转过程有时会闪现一下锁屏界面 然后出现 竖屏的Activity B 然后 再转为横屏 有大佬知道怎么解决吗。
相见恨晚的超实用网站
搞学习 知乎:www.zhihu.com 简答题:http://www.jiandati.com/ 网易公开课:https://open.163.com/ted/ 网易云课堂:https://study.163.com/ 中国大学MOOC:www.icourse163.org 网易云课堂:study.163.com 哔哩哔哩弹幕网:www.bilibili.com 我要自学网:www.51zxw
花了20分钟,给女朋友们写了一个web版群聊程序
参考博客 [1]https://www.byteslounge.com/tutorials/java-ee-html5-websocket-example
爬虫福利二 之 妹子图网MM批量下载
爬虫福利一:27报网MM批量下载    点击 看了本文,相信大家对爬虫一定会产生强烈的兴趣,激励自己去学习爬虫,在这里提前祝:大家学有所成! 目标网站:妹子图网 环境:Python3.x 相关第三方模块:requests、beautifulsoup4 Re:各位在测试时只需要将代码里的变量 path 指定为你当前系统要保存的路径,使用 python xxx.py 或IDE运行即可。
字节跳动视频编解码面经
引言 本文主要是记录一下面试字节跳动的经历。 三四月份投了字节跳动的实习(图形图像岗位),然后hr打电话过来问了一下会不会opengl,c++,shador,当时只会一点c++,其他两个都不会,也就直接被拒了。 七月初内推了字节跳动的提前批,因为内推没有具体的岗位,hr又打电话问要不要考虑一下图形图像岗,我说实习投过这个岗位不合适,不会opengl和shador,然后hr就说秋招更看重基础。我当时
开源一个功能完整的SpringBoot项目框架
福利来了,给大家带来一个福利。 最近想了解一下有关Spring Boot的开源项目,看了很多开源的框架,大多是一些demo或者是一个未成形的项目,基本功能都不完整,尤其是用户权限和菜单方面几乎没有完整的。 想到我之前做的框架,里面通用模块有:用户模块,权限模块,菜单模块,功能模块也齐全了,每一个功能都是完整的。 打算把这个框架分享出来,供大家使用和学习。 为什么用框架? 框架可以学习整体
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
Python——画一棵漂亮的樱花树(不同种樱花+玫瑰+圣诞树喔)
最近翻到一篇知乎,上面有不少用Python(大多是turtle库)绘制的树图,感觉很漂亮,我整理了一下,挑了一些我觉得不错的代码分享给大家(这些我都测试过,确实可以生成喔~) one 樱花树 动态生成樱花 效果图(这个是动态的): 实现代码 import turtle as T import random import time # 画樱花的躯干(60,t) def Tree(branch
深深的码丨Java HashMap 透析
HashMap 相关概念 HashTab、HashMap、TreeMap 均以键值对像是存储或操作数据元素。HashTab继承自Dictionary,HashMap、TreeMap继承自AbstractMap,三者均实现Map接口 **HashTab:**同步哈希表,不支持null键或值,因为同步导致性能影响,很少被使用 **HashMap:**应用较多的非同步哈希表,支持null键或值,是键值对...
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 顺便拉下票,我在参加csdn博客之星竞选,欢迎投票支持,每个QQ或者微信每天都可以投5票,扫二维码即可,http://m234140.nofollow.ax.
Python 基础(一):入门必备知识
目录1 标识符2 关键字3 引号4 编码5 输入输出6 缩进7 多行8 注释9 数据类型10 运算符10.1 常用运算符10.2 运算符优先级 1 标识符 标识符是编程时使用的名字,用于给变量、函数、语句块等命名,Python 中标识符由字母、数字、下划线组成,不能以数字开头,区分大小写。 以下划线开头的标识符有特殊含义,单下划线开头的标识符,如:_xxx ,表示不能直接访问的类属性,需通过类提供
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 欢迎 改进 留言。 演示地点跳到演示地点 html代码如下`&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;music&lt;/title&gt; &lt;meta charset="utf-8"&gt
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。 1. for - else 什么?不是 if 和 else 才
数据库优化 - SQL优化
前面一篇文章从实例的角度进行数据库优化,通过配置一些参数让数据库性能达到最优。但是一些“不好”的SQL也会导致数据库查询变慢,影响业务流程。本文从SQL角度进行数据库优化,提升SQL运行效率。 判断问题SQL 判断SQL是否有问题时可以通过两个表象进行判断: 系统级别表象 CPU消耗严重 IO等待严重 页面响应时间过长
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 c/c++ 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7
通俗易懂地给女朋友讲:线程池的内部原理
餐厅的约会 餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”我楞了一下,心里想女朋友今天是怎么了,怎么突然问出这么专业的问题,但做为一个专业人士在女朋友面前也不能露怯啊,想了一下便说:“我先给你讲讲我前同事老王的故事吧!” 大龄程序员老王 老王是一个已经北漂十多年的程序员,岁数大了,加班加不动了,升迁也无望,于是拿着手里
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹
面试官:你连RESTful都不知道我怎么敢要你?
面试官:了解RESTful吗? 我:听说过。 面试官:那什么是RESTful? 我:就是用起来很规范,挺好的 面试官:是RESTful挺好的,还是自我感觉挺好的 我:都挺好的。 面试官:… 把门关上。 我:… 要干嘛?先关上再说。 面试官:我说出去把门关上。 我:what ?,夺门而去 文章目录01 前言02 RESTful的来源03 RESTful6大原则1. C-S架构2. 无状态3.统一的接
JDK12 Collectors.teeing 你真的需要了解一下
前言 在 Java 12 里面有个非常好用但在官方 JEP 没有公布的功能,因为它只是 Collector 中的一个小改动,它的作用是 merge 两个 collector 的结果,这句话显得很抽象,老规矩,我们先来看个图(这真是一个不和谐的图????): 管道改造经常会用这个小东西,通常我们叫它「三通」,它的主要作用就是将 downstream1 和 downstre...
为啥国人偏爱Mybatis,而老外喜欢Hibernate/JPA呢?
关于SQL和ORM的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行了一番讨论,感触还是有一些,于是就有了今天这篇文。 声明:本文不会下关于Mybatis和JPA两个持久层框架哪个更好这样的结论。只是摆事实,讲道理,所以,请各位看官勿喷。 一、事件起因 关于Mybatis和JPA孰优孰劣的问题,争论已经很多年了。一直也没有结论,毕竟每个人的喜好和习惯是大不相同的。我也看
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
致 Python 初学者
欢迎来到“Python进阶”专栏!来到这里的每一位同学,应该大致上学习了很多 Python 的基础知识,正在努力成长的过程中。在此期间,一定遇到了很多的困惑,对未来的学习方向感到迷茫。我非常理解你们所面临的处境。我从2007年开始接触 python 这门编程语言,从2009年开始单一使用 python 应对所有的开发工作,直至今天。回顾自己的学习过程,也曾经遇到过无数的困难,也曾经迷茫过、困惑过。开办这个专栏,正是为了帮助像我当年一样困惑的 Python 初学者走出困境、快速成长。希望我的经验能真正帮到你
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员...
相关热词 c# clr dll c# 如何orm c# 固定大小的字符数组 c#框架设计 c# 删除数据库 c# 中文文字 图片转 c# 成员属性 接口 c#如何将程序封装 16进制负数转换 c# c#练手项目
立即提问