Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将传入的短信保存到 android 中的字符串 ArrayList 中?我将短信放入广播接收器类,并希望将这些文本消息放入字符串 ArrayList 中,每次收到的消息都放入 ArrayList 的下一个索引中。
如果您能够将信息归结为您感兴趣的字符串表示形式,那么是什么阻止您在 android 中使用普通的 java 数组列表?
String test = "test"; List<String> list = new ArrayList<String>(); list.add(test); for(String s:list) { System.out.println(s); }