最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论