728x90 ๐จ๐ผ๐ป๊ฐ๋ฐ/์๋๋ก์ด๋ ์คํ๋์ค16 ์๋๋ก์ด๋ ์คํ๋์ค - ๋ฐฑ๊ทธ๋ผ์ด๋ ์คํ(์๋น์ค) ๊ด๋ จ ์์ ์ฝ๋ Create a service public class YourService extends Service { @Nullable @Override public IBinder onBind(Intent intent) { return null; } @Override public int onStartCommand(Intent intent, int flags, int startId) { // do your jobs here return super.onStartCommand(intent, flags, startId); }} Create an Application class and start your service public class Ap.. 2024. 10. 13. ์๋๋ก์ด๋ ์คํ๋์ค - ํ๋ฉด ์ผ์ง ์ํ ์ ์ง public class MyActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); }} 2024. 10. 10. ์๋๋ก์ด๋ ์คํ๋์ค - ์น๋ทฐ(WebView) ์๋ฐ์คํฌ๋ฆฝํธ ์กฐ์ private Boolean isLoadingFinished = false; ... WebView webView = findViewById(R.id.webView); webView.setWebViewClient(new WebViewClient(){ @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { super.onPageStarted(view, url, favicon); Toast.makeText(getApplicationContext(), "ํ์ด์ง ๋ก๋ ์ค...", Toast.LENGTH_LONG).show(); isLoadingFinished = false; } @Override public void onPag.. 2023. 8. 23. ์๋๋ก์ด๋ ์คํ๋์ค - ์ค์์ดํ ๋ฆฌ์คํธ ๋ฉ๋ด ๊ตฌํ SwipeMenuListView: https://github.com/baoyongzhang/SwipeMenuListView GitHub - baoyongzhang/SwipeMenuListView: [DEPRECATED] A swipe menu for ListView. [DEPRECATED] A swipe menu for ListView. Contribute to baoyongzhang/SwipeMenuListView development by creating an account on GitHub. github.com ListView ์กฐ์ ๋ธ๋ก๊ทธ: https://lktprogrammer.tistory.com/163 [Android] ์๋๋ก์ด๋ - ๋ฆฌ์คํธ๋ทฐ(ListView) ๊ตฌํ ๋ฆฌ์คํธ๋ทฐ(ListView)๋.. 2022. 4. 7. ์๋๋ก์ด๋ ์คํ๋์ค - HTTP ํต์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ(Volley) [build.gradle] implementation 'com.android.volley:volley:๋ฒ์ ' [AndroidManifest.xml] usesCleartextTraffic๋ก https ์ฌ์ฉ ์ง์ ํ์ฑํ [mainActivity.java] String url ="https://www.google.com"; RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext()); StringRequest stringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener() { @Override public void onResponse(String res.. 2022. 4. 5. ์๋๋ก์ด๋ ์คํ๋์ค - RecyclerView(๋ฆฌ์ฌ์ดํด๋ฌ๋ทฐ) ์กฐ์ ์ด 5๊ฐ์ง์ ์์ ์ด ํ์, ๊ฐ๊ฐ activity_main.xml, ์์ดํ .xml, ๋ฐ์ดํฐ.java, ๋ฆฌ์ฌ์ดํด๋ฌ_์ด๋ํฐ.java, MainActivity.java [activity_main.xml] ๋ํ์ง ์ญํ ์ ํด์ค activity_main.xml์ RecyclerView๋ฅผ ๋ฃ์ [item.xml] ๋ฆฌ์คํธ์ ๋ค์ด๊ฐ ์์ดํ ๋ค์ ๊พธ๋ฉฐ์ค [Data.java] package com.app.listapp; public class Data { private String name; private String phone; public Data(String name, String phone){ this.name = name; this.phone = phone; } public String getName(){ return.. 2022. 3. 30. ์๋๋ก์ด๋ ์คํ๋์ค - notification Intent ์งํํ๊ณ ์๋ MainActivity๋ก ๋ค์ ์ด๋ํ๊ธฐ ํด๊ฒฐ Intent notificationIntent = new Intent(getApplicationContext(), MainActivity.class); notificationIntent.setAction(Intent.ACTION_MAIN); notificationIntent.addCategory(Intent.CATEGORY_LAUNCHER); notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); ์งํํ๊ณ ์๋ MainActivity๋ก ๋ค์ ์ด๋์ ํ๊ณ ์ถ์ ๊ฒฝ์ฐ. ์ถ์ฒ: https://like-tomato.tistory.com/156 [Notification] ์๋๋ก์ด๋ ์ฑ ์ค๋ณต ์คํ ๋ฌธ์ ์๋ฒฝ ํด๊ฒฐ ๋ฐฉ๋ฒ ์๋๋ก์ด๋ ์ ํ๋ฆฌ์ผ์ด์ ์ ๊ฐ๋ฐํ๋ค ๋ณด๋ฉด ๋๋ถ๋ถ.. 2022. 3. 22. ์๋๋ก์ด๋ ์คํ๋์ค - ์ฑ ์์ด์ฝ ์จ๊ธฐ๊ธฐ/๋ณด์ด๊ธฐ [์จ๊ธฐ๊ธฐ] PackageManager p = getPackageManager(); ComponentName componentName = new ComponentName(this, com.apps.MainActivity.class); // activity which is first time open in manifiest file which is declare as p.setComponentEnabledSetting(componentName,PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP); [๋ณด์ด๊ธฐ] PackageManager p = getPackageManager(); ComponentName componentN.. 2021. 12. 19. ์๋๋ก์ด๋ ์คํ๋์ค - ๋ถํ ์ ์๋ ์คํ [AndroidManifest.xml] [StartActivityOnBootReceiver.java] package com.codinginflow.onbootreceiverexample; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class StartActivityOnBootReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAct.. 2021. 12. 19. ์๋๋ก์ด๋ ์คํ๋์ค - ๋ฐฑ๊ทธ๋ผ์ด๋ ์๋น์ค ์คํ ์ถ์ฒ: https://stackoverflow.com/questions/46716069/how-to-make-background-process-in-android-studio How To Make Background Process in Android Studio hi guys thank you for answering my question,i have made an android app in android studio i want to make funtion when i close the app the function start automatically in background is there any way ... stackoverflow.com [์กํฐ๋นํฐ] public class App extends .. 2021. 12. 19. ์๋๋ก์ด๋ ์คํ๋์ค - The minCompileSdk (31) specified in adependency's... ์ค๋ฅ ํด๊ฒฐ build.gradle๋ก ๋ค์ด๊ฐ์ compileSdkVersion์ 31๋ก ์์ ์ถ์ฒ: https://ardmos.tistory.com/entry/The-minCompileSdk-31-specified-in-adependencys-AAR-metadata [์ค๋ฅ ํด๊ฒฐ] The minCompileSdk (31) specified in adependency's AAR metadata ... ์ด์ ์๋ก ๋ง๋ ํ๋ก์ ํธ๋ฅผ ๋น๋ํ๋ ค๋ ๋์ค The minCompileSdk (31) specified in a dependency's AAR metadata ... ๋ผ๋ ๋ด์ฉ์ ์ค๋ฅ๊ฐ ๋ฐ์ํ๋ค. - ํด๊ฒฐ ๋ฐฉ๋ฒ! bulid.gradle (Module) ํ์ผ์ compileSdk์ targ.. ardmos.tistory.com 2021. 11. 24. ์๋๋ก์ด๋ ์คํ๋์ค - fragment ์กฐ์ํ๊ธฐ ์กํฐ๋นํฐ์ ๊ธฐ๋ณธ ๋ ์ด์์์ LinearLayout์ผ๋ก ๋ณ๊ฒฝ ๊ธฐ๋ณธ horizontal๋ฅผ vertical์ผ๋ก ๋ณ๊ฒฝ LinearLayout ์์์ ๋ ๊ฐ ๋ฃ์ด์ฃผ๊ธฐ ๊ฐ๊ฐ fragment ๋ทฐ์ด, fragment ์ ํ ์ญํ ์ ํ ๊ฑฐ์ ์ฒซ ๋ฒ์งธ ์์ LinearLayout์ id๋ฅผ Container๋ก ์์ ๋ ๋ฒ์งธ์ ์์ LinearLayout์ button๋ค์ ๋ฃ์ด์ค ๊ทธ๋ฐ๋ฐ ๋ฏธ๋ฆฌ๋ณด๊ธฐ์ button๋ค์ด ๋ณด์ด์ง ์๋ ๊ฒ์ ๋ณผ ์ ์๋๋ฐ, ์ด๋ Container๊ฐ ๋ถ๋ชจ์ ํฌ๊ธฐ๋งํผ ์ค์ ์ด ๋์ด์์ด์ ๋ฒํผ์ ๋ ์ด์์์ด ๋ฐ๋ ค๋ ๊ฒ์ Container์ layout_weight ์์ฑ ๊ฐ์ผ๋ก 1์ ์ค๋ค. ๋ฒํผ ๋ ์ด์์์ layout_height๋ฅผ wrap_content๋ก ๋ณ๊ฒฝํด์ค๋ค. ๊ทธ๋ผ ๋ฒํผ๋ค์ด ์ ๋๋ก ๋์ค๋ ๊ฒ์ ๋ณผ ์ ์๋ค.. 2021. 11. 23. ์ด์ 1 2 ๋ค์ 728x90