Click here to Skip to main content
15,116,653 members
Home / Discussions / Android
   

Android

 
QuestionRe: What data type is this? Pin
David Crow4-Sep-14 3:06
MemberDavid Crow4-Sep-14 3:06 
AnswerRe: What data type is this? Pin
jorgesys9-Oct-14 9:52
Memberjorgesys9-Oct-14 9:52 
Questionandroid: right to left gridview eclipse Pin
m_rafiei136223-Aug-14 10:03
Memberm_rafiei136223-Aug-14 10:03 
AnswerRe: android: right to left gridview eclipse Pin
Richard MacCutchan23-Aug-14 23:45
mveRichard MacCutchan23-Aug-14 23:45 
AnswerRe: android: right to left gridview eclipse Pin
jorgesys9-Oct-14 9:53
Memberjorgesys9-Oct-14 9:53 
Questionreleated to android Pin
Member 1069365822-Aug-14 20:15
MemberMember 1069365822-Aug-14 20:15 
SuggestionRe: releated to android Pin
Richard MacCutchan22-Aug-14 22:19
mveRichard MacCutchan22-Aug-14 22:19 
GeneralRe: releated to android Pin
Member 1069365822-Aug-14 23:07
MemberMember 1069365822-Aug-14 23: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 23:10
mveRichard MacCutchan22-Aug-14 23:10 
GeneralRe: releated to android Pin
Member 1069365823-Aug-14 0:29
MemberMember 1069365823-Aug-14 0:29 
GeneralRe: releated to android Pin
Richard MacCutchan23-Aug-14 1:19
mveRichard MacCutchan23-Aug-14 1:19 
QuestionI would like help wiith an example I cannot get working Pin
turbosupramk321-Aug-14 11:20
Memberturbosupramk321-Aug-14 11:20 
AnswerRe: I would like help wiith an example I cannot get working Pin
Ravi Bhavnani21-Aug-14 12:08
professionalRavi Bhavnani21-Aug-14 12:08 
GeneralRe: I would like help wiith an example I cannot get working Pin
turbosupramk322-Aug-14 3:03
Memberturbosupramk322-Aug-14 3:03 
GeneralRe: I would like help wiith an example I cannot get working Pin
Ravi Bhavnani22-Aug-14 3:35
professionalRavi Bhavnani22-Aug-14 3:35 
GeneralRe: I would like help wiith an example I cannot get working Pin
turbosupramk322-Aug-14 3:40
Memberturbosupramk322-Aug-14 3:40 
AnswerRe: I would like help wiith an example I cannot get working Pin
Ravi Bhavnani22-Aug-14 3:48
professionalRavi Bhavnani22-Aug-14 3:48 
GeneralRe: I would like help wiith an example I cannot get working Pin
turbosupramk322-Aug-14 4:00
Memberturbosupramk322-Aug-14 4:00 
GeneralRe: I would like help wiith an example I cannot get working Pin
Ravi Bhavnani22-Aug-14 5:07
professionalRavi Bhavnani22-Aug-14 5:07 
GeneralRe: I would like help wiith an example I cannot get working Pin
Richard MacCutchan21-Aug-14 23:07
mveRichard MacCutchan21-Aug-14 23:07 
SuggestionRe: I would like help wiith an example I cannot get working Pin
Richard MacCutchan22-Aug-14 0:10
mveRichard MacCutchan22-Aug-14 0:10 
GeneralRe: I would like help wiith an example I cannot get working Pin
turbosupramk322-Aug-14 3:06
Memberturbosupramk322-Aug-14 3:06 
GeneralRe: I would like help wiith an example I cannot get working Pin
Richard MacCutchan22-Aug-14 4:11
mveRichard MacCutchan22-Aug-14 4:11 
AnswerRe: I would like help wiith an example I cannot get working Pin
Dominic Burford15-Sep-14 3:30
professionalDominic Burford15-Sep-14 3:30 
Answerset receiver for Serversocket in android? Pin
Member 1102458520-Aug-14 3:54
MemberMember 1102458520-Aug-14 3: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.