Android to Samsung (proof of concept)

This is general talk area for things that NOT RELATED WITH TV! Instead, about internal works like web site, forum, wiki, or talking, etc...

arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: Android to Samsung (proof of concept)

Post by arris69 »

leftysloft wrote:...
I am having great difficulty with the caller ID (lack of understanding).
...
works on emulator (don't forget permission android.permission.READ_CONTACTS and android.permission.READ_PHONE_STATE):

Code: Select all

                        } else if(intent.getAction().equals("android.intent.action.PHONE_STATE")){
                                // but just if RING?
                                Toast.makeText(context,"android.intent.action.PHONE_STATE", Toast.LENGTH_LONG).show();
                                String Num = intent.getStringExtra(EXTRA_INCOMING_NUMBER);
                                String Name = Num;
                                Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(Num));
                                Cursor cur = context.getContentResolver().query(uri,
                                                new String[] { PhoneLookup.DISPLAY_NAME },
                                                null, null, null );
                                if( cur.moveToFirst() ) {
                                        int nameIdx = cur.getColumnIndex(PhoneLookup.DISPLAY_NAME);
                                        Name = cur.getString(nameIdx);
                                }
                                Intent mSendToSamy = new Intent(context, SendToSamy.class);
                                mSendToSamy.putExtra("message_from", "Incoming Call");
                                mSendToSamy.putExtra("message", "Call from: " + Name + "(" + Num + ")");
                                mSendToSamy.putExtra("category", "Incoming Call");
                                context.sendBroadcast(mSendToSamy);
                        } else {
hth
arris
moras86
Official SamyGO Developer
Posts: 180
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

Android app for Samsung - TVCallNotifly

Post by moras86 »

This project is probably not development now. You can use alternative application with similar functionality - TVCallNotifly.
Image . Image
TV LCD: Samsung LE40B651T3W (CI) | Internet@TV | fw: 2005 (patched: SamyGO v0.24 + GMT2, ArFIX2, ADFIX) | matrix: SQ04
BluRay: Samsung BD-D5300-ZF | SamsungApps | fw: 1013
Android-Box: Zidoo X8 | Realtek RTD1295 64bit (QuadCore), Mali-T820 GPU, 2 GB RAM, HDMI IN record, Android 6.0 | ZDMC 17.1
my projects: Remote LAN Control - Desktop app (v0.8) | Signal checker for DVB-T (v0.3)

Post Reply

Return to “General”