java - android studio mainactivity package name from template or resource value - Stack Overflow

I am trying to do something like this. or templating like in html but I could not find good documentati

I am trying to do something like this. or templating like in html but I could not find good documentation, maybe I searched wrong. I am also open for template suggestion.

Currently what I have is this

package com.mydomain.myapp
 
import android.annotation.SuppressLint;
import android.app.AlertDialog;

Instead of this I would like to get the package name from strings or elsewhere where I keep the other constants.

 package "myStringValue"
     
    import android.annotation.SuppressLint;
    import android.app.AlertDialog

Does anyone know how to achieve this? I have tried many methods but I am actually very unfamiliar to Java/Android Studio. Many thanks

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742354605a4428182.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信