Click here to Skip to main content
15,898,134 members
Home / Discussions / Android
   

Android

 
QuestionRe: What data type is this? Pin
David Crow4-Sep-14 2:06
David Crow4-Sep-14 2:06 
AnswerRe: What data type is this? Pin
jorgesys9-Oct-14 8:52
jorgesys9-Oct-14 8:52 
Questionandroid: right to left gridview eclipse Pin
m_rafiei136223-Aug-14 9:03
m_rafiei136223-Aug-14 9:03 
AnswerRe: android: right to left gridview eclipse Pin
Richard MacCutchan23-Aug-14 22:45
mveRichard MacCutchan23-Aug-14 22:45 
AnswerRe: android: right to left gridview eclipse Pin
jorgesys9-Oct-14 8:53
jorgesys9-Oct-14 8:53 
Questionreleated to android Pin
Member 1069365822-Aug-14 19:15
Member 1069365822-Aug-14 19:15 
SuggestionRe: releated to android Pin
Richard MacCutchan22-Aug-14 21:19
mveRichard MacCutchan22-Aug-14 21:19 
GeneralRe: releated to android Pin
Member 1069365822-Aug-14 22:07
Member 1069365822-Aug-14 22:07 
****************this is my first java file of my application *****************





package com.collblockinandroid;



import java.lang.reflect.Method;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.TelephonyManager;
import android.util.Log;

public class CallblockinandroiddemoooActivity extends BroadcastReceiver {
Context context = null;
private static final String TAG = "Phone on Call";
private ITelephony telephony;

@Override
public void onReceive(Context context, Intent intent) {
Log.v(TAG, "Receving....");
TelephonyManager telephonymanager= (TelephonyManager)
context.getSystemService(Context.TELEPHONY_SERVICE);
try {
Class c = Class.forName(telephony.getClass().getName());
Method m = c.getDeclaredMethod("getITelephony");
m.setAccessible(true);
telephony = (ITelephony) m.invoke(telephonymanager);
telephony.silenceRinger();
telephony.endCall();
} catch (Exception e) {
e.printStackTrace();
}

}


}
********* After that i make a file of aIDL THAT IS GIVEN BY THE NAME ITtelephony************************
C#
package com.collblockinandroid;

public interface ITelephony {
    boolean endCall();

      void answerRingingCall();

      void silenceRinger();


}




********************** my menifest file is ********************************************



<manifest xmlns:android="http://schemas.android.com/apk/res/android"
="" package="com.collblockinandroid" android:versioncode="1" android:versionname="1.0">

<uses-sdk android:minsdkversion="8">

<application
android:icon="@drawable/ic_launcher"
="" android:label="@string/app_name">
<receiver android:name=".Blocker">
<intent-filter android:priority="100">
<action android:name="android.intent.action.PHONE_STATE">




<uses-sdk android:minsdkversion="5">
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE">
<uses-permission android:name="android.permission.CALL_PHONE">
<uses-permission android:name="android.permission.READ_PHONE_STATE">

<uses-sdk android:minsdkversion="8">

GeneralRe: releated to android Pin
Richard MacCutchan22-Aug-14 22:10
mveRichard MacCutchan22-Aug-14 22:10 
GeneralRe: releated to android Pin
Member 1069365822-Aug-14 23:29
Member 1069365822-Aug-14 23:29 
GeneralRe: releated to android Pin
Richard MacCutchan23-Aug-14 0:19
mveRichard MacCutchan23-Aug-14 0:19 
QuestionI would like help wiith an example I cannot get working Pin
turbosupramk321-Aug-14 10:20
turbosupramk321-Aug-14 10:20 
AnswerRe: I would like help wiith an example I cannot get working Pin
Ravi Bhavnani21-Aug-14 11:08
professionalRavi Bhavnani21-Aug-14 11:08 
GeneralRe: I would like help wiith an example I cannot get working Pin
turbosupramk322-Aug-14 2:03
turbosupramk322-Aug-14 2:03 
GeneralRe: I would like help wiith an example I cannot get working Pin
Ravi Bhavnani22-Aug-14 2:35
professionalRavi Bhavnani22-Aug-14 2:35 
GeneralRe: I would like help wiith an example I cannot get working Pin
turbosupramk322-Aug-14 2:40
turbosupramk322-Aug-14 2:40 
AnswerRe: I would like help wiith an example I cannot get working Pin
Ravi Bhavnani22-Aug-14 2:48
professionalRavi Bhavnani22-Aug-14 2:48 
GeneralRe: I would like help wiith an example I cannot get working Pin
turbosupramk322-Aug-14 3:00
turbosupramk322-Aug-14 3:00 
GeneralRe: I would like help wiith an example I cannot get working Pin
Ravi Bhavnani22-Aug-14 4:07
professionalRavi Bhavnani22-Aug-14 4:07 
GeneralRe: I would like help wiith an example I cannot get working Pin
Richard MacCutchan21-Aug-14 22:07
mveRichard MacCutchan21-Aug-14 22:07 
SuggestionRe: I would like help wiith an example I cannot get working Pin
Richard MacCutchan21-Aug-14 23:10
mveRichard MacCutchan21-Aug-14 23:10 
GeneralRe: I would like help wiith an example I cannot get working Pin
turbosupramk322-Aug-14 2:06
turbosupramk322-Aug-14 2:06 
GeneralRe: I would like help wiith an example I cannot get working Pin
Richard MacCutchan22-Aug-14 3:11
mveRichard MacCutchan22-Aug-14 3:11 
AnswerRe: I would like help wiith an example I cannot get working Pin
Dominic Burford15-Sep-14 2:30
professionalDominic Burford15-Sep-14 2:30 
Answerset receiver for Serversocket in android? Pin
Member 1102458520-Aug-14 2:54
Member 1102458520-Aug-14 2:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.