|
jojoba20 wrote: it needs wifi printer but mine is only connected to PC I don't think there is a lot that we can do to help with that.
|
|
|
|
|
thanks for reply
do u have any example for what i wanna do?
forget what i have searched!
thnaks in advanced
|
|
|
|
|
|
|
how can i change to vibrate mode when screen is on and change to general when screen is on...
android
|
|
|
|
|
|
Have you tried something like:
AudioManager am = (AudioManager) getSystemService(AUDIO_SERVICE);
am.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
|
how to make an player jump in forward direction with on touchlistern
|
|
|
|
|
Hello everyone,
0xFFFF0000
btn.setBackgroundColor(0xFFFF0000);
I want to put that color in an array but don't know what datatype I will put to that
that does't mean that I can't do it
|
|
|
|
|
|
hansoctantan wrote: I want to put that color in an array but don't know what datatype I will put to that Have you considered an int or a long ?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
must be an int, read the reference of setBackgroundColor method:
void android.view.View.setBackgroundColor(int color)
|
|
|
|
|
how to right to left gridview in android ?
please help me
|
|
|
|
|
|
Hi, be more specific with your question and post some code.
|
|
|
|
|
i am trying to block call in aur application . in which i want that this application run in background while application is closed for this i am using broadcastreciver but this application cannnot work plz help me to build my apps
|
|
|
|
|
You need to provide some better detail about your code and what is not working.
|
|
|
|
|
****************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************************
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">
|
|
|
|
|
Please edit the above entry and format it properly between the appropriate <pre> tags so we can read it. Also explain whaere it is failing and what error codes or messages you see.
|
|
|
|
|
Sir no error is shown in my application code but problem is that while we run this app then it gives Application not responding Error to the emulator . i cannot reconize that where is problem ..
|
|
|
|
|
Member 10693658 wrote: i cannot reconize that where is problem . I'm afraid we cannot either. You need to use your debugger to try and find out what is happening in your program.
|
|
|
|
|
The example is here
http://www.tutorialspoint.com/android/android_audiomanager.htm[^]
In Eclipse I cannot resolve for R. in MainActivity.Java and since I'm brand new to Android, I have no idea how to resolve this. Please help and if I wasn't as descriptive as necessary due to my newbness, ask and I will do my best to answer.
|
|
|
|
|
See the answer on this[^] page. In Xamarin, R is replaced by the less cryptic identifier Resource .
/ravi
|
|
|
|
|
Wow! So with Xamarin, I can write in C#, and it will compile to Android native code? Or even IOS code? And I can write in Visual Studio? If this is correct, sign me up!
|
|
|
|