Why android.os.IServiceManager in Android not resolving - android

I am coding for DialerDemo, But import android.os.IServiceManager;import android.os.ServiceManagerNative; import android.telephony.IPhone; are not resolving
CODE:
package com.umesh.umeshfilereadwritedemo1;
import android.app.Activity;
import android.os.Bundle;
import android.os.DeadObjectException;
import android.os.IServiceManager;
import android.os.ServiceManagerNative;
import android.telephony.IPhone;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class DialerDemo extends Activity
{
...
...
}

These are all internal classes of the SDK, and are not available publicly.
You cannot build source.android.com applications on their own. They can only be built as part of a firmware image. Please follow the instructions to build the entire firmware. While you can use Eclipse to edit the firmware source, you will still use make to build the firmware.

Related

what is difference between import by package and import direct code in flutter

what is the difference between importing files by `package
import 'package:fileName/colorFile.dart';
and direct import
import 'fileName/colorFile.dart';

Function in Android Studio programs worked fine before, but then this problem shows up

I tried to check all the code I write, edit some of it and some are fixed, but this problem still unfixed.
i expect the program could run
Can not extract resource from com.android.aaptcompiler.ParsedResource#796f578a.,Can not extract resource from com.android.aaptcompiler.ParsedResource#7d50cc7f.,Can not extract resource from com.android.aaptcompiler.ParsedResource#38525db1.,Can not extract resource from com.android.aaptcompiler.ParsedResource#af0056b.
package com.example.inorasmart;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.VideoView;
public class MainActivity extends AppCompatActivity {
}

cannot resolve symbol R.raw

In the above screenshot you can clearly see that I have created a raw folder with two files but when I do R.raw it says "cannot resolve raw".
here's all of my import statements:
package com.raunak.alarmdemo4.Activities;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.content.ContentValues;
import android.content.pm.ActivityInfo;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;
import com.arbelkilani.clock.Clock;
import com.ebanx.swipebtn.OnStateChangeListener;
import com.ebanx.swipebtn.SwipeButton;
import com.raunak.alarmdemo4.HelperClasses.AlarmsDBhelperClass;
import com.raunak.alarmdemo4.R;
import java.io.IOException;
import java.util.Calendar;
import static com.raunak.alarmdemo4.R.*;
Try cleaning your project and building again. If this not work :
Remove the import for the R.symbol, because probably you have imported R.class in your file, then click on the imported file and press ALT + Enter.
If this also doesn't work then access it like this : your.project.package.R.raw .file_name
Also try to remove the capital letter from the name of your audio.
Just make sure you have imported correct Resource
import your.package.name.R
not like or similar
import android.R
After that
Clean & build

an equivalent to matheclipse in android studio

I am working with Android Studio and i want to use the library matheclipse.
Please, is there any library in Android Studio equivalent to "matheclipse" ?
import org.matheclipse.core.convert.AST2Expr;
import org.matheclipse.core.interfaces.IExpr;
import org.matheclipse.parser.client.Parser;
import org.matheclipse.parser.client.ast.ASTNode;
import org.matheclipse.parser.client.ast.FloatNode;
import org.matheclipse.parser.client.ast.FractionNode;
import org.matheclipse.parser.client.ast.FunctionNode;
import org.matheclipse.parser.client.ast.IntegerNode;
import org.matheclipse.parser.client.ast.StringNode;

files.get and .getRequestFactory cannot be resolved

I'm trying to get the metadata of a file in my Google Drive through the fileID but I'm running into some problems using files().get and getRequestFactory().
Specifically I'm looking at this and on the sample it shows the line
File file = service.files().get(fileID).execute(); and
HttpResponse resp = service.getRequestFactory().buildGetRequest(new GenericUrl(file.getDownloadUrl())).execute();
I used these:
import com.google.api.client.http.GenericUrl;
import com.google.api.client.http.HttpResponse;
import com.google.api.services.drive.model.File;
as stated in the sample and loaded the com.google.apis:google-api-services-drive:v2-rev168-1.20.0 dependency. But it's still resulting in Cannot resolve method files() and Cannot resolve method getRequestFactory(),
Can anyone shed some light on this?
I have recently run my project with these imports / dependencies without problems, try to double-check your situation
import com.google.api.client.extensions.android.http.AndroidHttp;
import com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential;
import com.google.api.client.googleapis.extensions.android.gms.auth.UserRecoverableAuthIOException;
import com.google.api.client.googleapis.json.GoogleJsonResponseException;
import com.google.api.client.http.FileContent;
import com.google.api.client.http.GenericUrl;
import com.google.api.client.json.gson.GsonFactory;
import com.google.api.services.drive.Drive;
import com.google.api.services.drive.DriveScopes;
import com.google.api.services.drive.model.File;
import com.google.api.services.drive.model.FileList;
import com.google.api.services.drive.model.ParentReference;
com.google.api.services.drive NEEDS
com.google.apis:google-api-services-drive:v2-rev105-1.17.0-rc
com.google.api.client NEEDS
com.google.api-client:google-api-client-android:1.20.0
com.google.api.client.json.gson NEEDS
com.google.http-client:google-http-client-gson:1.20.0
The chunk above is pulled from this GitHub test / demo. You're welcome to use it (replace the GDAA referencies in MainActivity with 'REST').
Good Luck

Categories

Resources