Yeah I've seen and tried it already...
The problem is that, it doesn't work on android 2.3.7 or up
On 31 Jan 2013 17:32, "Kristopher Micinski" <krismicinski@gmail.com> wrote:
-- A google search on "android stop call programmatically" gives this:
http://stackoverflow.com/questions/1083527/how-to-block-calls-in-android
kris
On Thu, Jan 31, 2013 at 3:05 PM, Lucas Diego <diegolucasb@gmail.com> wrote:
> Ok, so...
> what I did to avoid (or at least try to) user send sms, was to show users a
> message by the moment they send the sms. Basically, the messagem says that
> it is aganist the company's rules and they (users) are not suppose to do
> that. Well.. I think it is gonna decrease the amount of sms which is sent
> nowadays by them.
>
> Kris, what about incoming calls? It follows the same rules of SMS?
> am I able to programmatically answer and finish them?
>
> Thank you guys.
>
>
>
>
> On Wed, Jan 30, 2013 at 6:03 PM, Nobu Games <dev.nobu.games@gmail.com>
> wrote:
>>
>> On top of what Kristopher says: a custom launcher also does not prevent a
>> user from installing another launcher or restore the default launcher. It's
>> a bit hackish to enforce these company policies based on a user space app.
>>
>>
>> You either need to create your custom firmware, which isn't that bad of an
>> option because you are developing for a closed, controlled environment. And
>> / or your client should negotiate with the mobile phone service provider and
>> tell them not to accept text messages from these phones.
>>
>> On Wednesday, January 30, 2013 1:01:46 PM UTC-6, Lucas Diego wrote:
>>>
>>> Hi everybody,
>>>
>>> I have been developping a launcher for a company in order to prevent
>>> users (from this company of course) from doing some actions on the phone,
>>> like send sms text for example.
>>> So, I'd like to know how can I prevent user from sending sms text.
>>> After seaching it, all I have found is people saying that it is not
>>> possible. Well, I refuse to believe that. I think it's gotta be a way to do
>>> this;
>>>
>>> til now, all I'm getting is information about users' sms, using a
>>> extended class from ContentObserver, like this:
>>>
>>> public class SMSObserver extends ContentObserver {
>>>
>>> private Handler handle = null;
>>> private Context context;
>>>
>>> public SMSObserver(Handler handler, Context context) {
>>> super(handler);
>>> this.handle = handler;
>>> this.context = context;
>>> }
>>>
>>> @Override
>>> public void onChange(boolean selfChange) {
>>> super.onChange(selfChange);
>>>
>>> Uri uriSMS = Uri.parse("content://sms/sent");
>>> // Uri uriSMS = Uri.parse("content://sms/out");
>>> // Uri uriSMS = Uri.parse("content://sms/");
>>> Cursor cur =
>>> context.getApplicationContext().getContentResolver().query(uriSMS, null,
>>> null, null, null);
>>>
>>> if (cur.moveToNext()) {
>>> String[] nomes = cur.getColumnNames();
>>>
>>> for (String string : nomes) {
>>> Log.i("LAUNCHER", string);
>>> }
>>>
>>> Log.i("LAUNCHER",
>>> cur.getString(cur.getColumnIndex("address")));
>>> Log.i("LAUNCHER",
>>> cur.getString(cur.getColumnIndex("callback_number")));
>>> Log.i("LAUNCHER", cur.getString(cur.getColumnIndex("read")));
>>> Log.i("LAUNCHER", cur.getString(cur.getColumnIndex("type")));
>>> Log.i("LAUNCHER", cur.getString(cur.getColumnIndex("body")));
>>> }
>>> }
>>> }
>>>
>>>
>>>
>>> does anybody knows how to do it?
>>> any help would be really great.
>>>
>>> thanks.
>>>
>>> Lucas Diego
>>>
>>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscribe@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to android-developers+unsubscribe@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment