ã¢ãã¤ã«ãã¡ã¼ã¹ã室ã®å±±ä¸(@tomorrowkey)ã§ãã
Androidã¢ããªãéçºãã¦ãã¦ããµã¨ããæã«ä¸å
·åãè¦ã¤ããããã¾ãããã
ã¯ã©ãã·ã¥ã§ããã°DeploygateãCrashlyticsãªã©ã§ã¯ã©ãã·ã¥ã¬ãã¼ããéããã¨ãã§ãã¾ããã表示崩ããå ±åãããã«ã¯ã¹ã¯ãªã¼ã³ãã£ããã£ãæ®ã£ã¦ã¡ã¼ã«ã¢ããªãéããç»åãæ·»ä»ãã¦ãéä¿¡ãããã¨ãã£ãæé ãå¿
è¦ã§ãªããªãé¢åã§ã ã
ã¢ããªãéçºããå´ã¯ä¸å
·åã®ãã£ãã¹ã¯ãªã¼ã³ã·ã§ãããã»ãããä¸å
·åãå ±åãã人ã¯å ±åããæé ãããã©ãã¨ãã£ãã®ã£ããã解決ããããã®ã©ã¤ãã©ãªãä½ãã¾ããã®ã§ãç´¹ä»ãã¾ãã
ä¸å ·åå ±åããæ©è½ãä½ãã¾ãã
åé ã®ã¢ãã¡ã¼ã·ã§ã³gifã§ä¸éãã®æåãè¦ããã¨ãã§ãã¾ãã
ãã®ã©ã¤ãã©ãªã使ã£ã¦ããã¢ããªãéãã¨éç¥é åã«ãä¸å
·åãå ±åãããã¨ããé
ç®ãå¢ãã¾ãã
ä¸å
·åãè¦ã¤ããæã«ãã®éç¥ãé¸æããã¨ã¹ã¯ãªã¼ã³ã·ã§ãããæ®å½±ããã¡ã¼ã«ä½æç»é¢ãéãã¾ãã
ä¸å
·åãå ±åãã人ã¯ãã®ã¡ã¼ã«ãéãã ãã§è¡¨ç¤ºå´©ããªã©ã®ä¸å
·åãå ±åãããã¨ãã§ãã¾ãã
ã¡ã¼ã«ãå±ãã¾ã
å®éã«åä¿¡ããã¡ã¼ã«ããã¡ãã§ãã
ã¹ã¯ãªã¼ã³ã·ã§ãããæ·»ä»ããã¦ããã®ã§éãã¨è¡¨ç¤ºããã¾ã
ã¢ããªã®ã¹ã¯ãªã¼ã³ã·ã§ãããªã®ã§ãã¹ãã¼ã¿ã¹ãã¼ã表示ããã¾ããããä¸å ·åå ±åããã«ã¯ååãªãã®ãæ®ãã¾ãã
ãã®æ©è½ãã¢ããªã§ä½¿ãã«ã¯
ãã®æ©è½ã¯ã©ã¤ãã©ãªã¨ãã¦ä½ãã¾ããã
https://github.com/cookpad/issue-reporter-android
ä¸å
·åå ±åæ©è½ãã¤ãããActivityã«ãFragmentã追å ããå¦çãæ¸ã足ãã¾ãã
BaseActivity.java
ã¨ãã£ãåºåºã¯ã©ã¹ãããã°ãããã«æ¸ã足ãã ãã§ã¢ããªå
¨ä½ã«ãã®æ©è½ã追å ãããã¨ãã§ãã¾ãã
MainActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); String mailAddress = "[email protected]"; String subject = "Report an issue"; IssueReporterFragment.apply(this, mailAddress, subject); }
ç°¡åã«åçã説æããã¨ãActivityã®Rootã®Viewã§ããDecorViewãåå¾ãã¦ãæç»ããããã®ãã£ãã·ã¥(Bitmap)ãåå¾ãã¦ãããã¡ã¼ã«ã¢ããªã«Intentã§é£ã°ãã¦ããã ãã§ãã
ãªã«ãç¹æ®ãªãã¨ããã¦ããªããããPermissionã®è¿½å ãå¿
è¦ããã¾ããã
ã¾ã¨ã
ç´ æ©ãã¢ãã¤ã«ã¢ããªãéçºããããã«ã¯ãéçºã¨ãã¹ãã¨ãã£ã¼ãããã¯ã®ãµã¤ã¯ã«ãããã«æ©ãåãããéµã¨ãªãã¾ãã
ãã®ã©ã¤ãã©ãªã使ãã°ãã£ã¼ãããã¯æã®ã³ãã¥ã±ã¼ã·ã§ã³ã³ã¹ããå°ãæãããã¨ãã§ããããã«ãªãã¨æãã¾ãã
ãã²ãæ´»ç¨ãã ããã