1
I have an Fragment and need within it some Appcompatactivity functions, as I implement both in the same class?
It’s like this:
public class clientes extends Fragment {
I’ve tried to:
public class clientes extends Fragment implementes AppCompatActivity{
Or vise versa.
if it is not possible to do, as I do this check:
ConnectivityManager connMgr = (ConnectivityManager)
getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();
if (networkInfo != null && networkInfo.isConnected()) {
getSystemService turns red, and you can’t use it in Fragment Besides, I need to use the:
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View view =
act.getLayoutInflater().inflate(R.layout.lista_curso_personalizada,
parent, false);
getLayoutInflater() is also in red, it shows that it is not possible to use it in a Fragment
vlw man, thank you so much
– user98257