6 package com.google.appinventor.components.runtime.util;
8 import java.util.ArrayList;
9 import java.util.Collections;
10 import java.util.List;
12 import android.content.Intent;
13 import android.os.Build;
14 import android.provider.Telephony.Sms.Intents;
15 import android.telephony.SmsMessage;
16 import android.widget.TextView;
37 List<SmsMessage> result =
new ArrayList<SmsMessage>();
38 SmsMessage[] messages = Intents.getMessagesFromIntent(intent);
39 if (messages !=
null && messages.length >= 0) {
40 Collections.addAll(result, messages);
52 if (Build.VERSION.SDK_INT >= 16) {
53 return view.getMinWidth();
55 return view.getWidth();
66 if (Build.VERSION.SDK_INT >= 16) {
67 return view.getMinHeight();
69 return view.getHeight();