我爲自己的ListView製作了一個自定義適配器,跟在this tutorial之後。 但是,當我在我的設備上運行我的應用程序時,它會在啓動時發生錯誤。 MainActivity的onCreate()方法嘗試調用NotesDbHelper類的getData()方法時出現此錯誤。 你能幫我嗎? MainActivity.java public class MainActivity extends A
我使用共享首選項類來保存登錄後用戶的信息,以便以後更新我使用的信息保存在共享首選項類中,但當我更新用戶信息時,I必須從配置文件註銷,然後登錄查看更改。任何人都可以幫助我在更新用戶信息時如何更改SharedPrefManager類中的信息? Bellow是SharedPrefManager類和用戶更新類。 public class SharedPrefManager {
private
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
viewRoot = inflater.in