اذهب إلى المحتوى

حساوي قيمز

الأعضاء
  • المساهمات

    24
  • تاريخ الانضمام

  • تاريخ آخر زيارة

  • عدد الأيام التي تصدر بها

    1

أجوبة بواسطة حساوي قيمز

  1. جربت هذا السطر واول ما يفتح التطبيق يقفل ولا يعمل 

            try {
    
                String url  ;
                Document  dec =  Jsoup.connect( ".........com").get();
                dec.body();
             //   editText.setText( );
    
            } catch (IOException e) {
                e.printStackTrace();
            } 
    //اندرويد ستوديو 
       try {
    
             String url  ;
             Document  dec =  Jsoup.connect( ".........com").get();
           System.out.println( dec.body()); 
        
    
         } catch (IOException e) {
             e.printStackTrace();
         }
    اكلبس 
      
      

    جربت على الاندرويد ستوديو و اكلبس 

  2. بتاريخ On 3‏/8‏/2019 at 14:31 قال Entesar ElBanna:

    اهلا بك

    هذا الفيديو معد حديثا هذا العام 2019 باصدار اندرويد ستديو حديث ايضا.. لذلك انصحك بتجريبه

    https://youtu.be/lo2z7JJ0L9Y

    اذا تعرف وش حل هذه المشكلة كل ما اضغط ran تطلع لي ذي الرسالة

     

    التقاط.PNG

  3. جرب عدة اشياء منها اني احذفه وارجع احمله ولاكن ما صار شيء ابي استعمل البرنامج كأنه جديد ترجع الاعدادات زي ما هي عشان اتفاده الاخطاء الي صارت للبرنامج 

    مدري وش سويت انا بالاعدادات عشان كذا ودي اعيد كل شيء من جديد اتمنى مساعدتي واعطائي حلول حق ارجع الاعدادات الاولية 

  4. package com.example.android.lahga;
    
    import android.os.Bundle;
    import android.webkit.WebView;
    import androidx.appcompat.app.AppCompatActivity;
    import com.google.android.gms.ads.AdRequest;
    import com.google.android.gms.ads.AdView;
    import com.google.android.gms.ads.InterstitialAd;
    import com.google.android.gms.ads.MobileAds;
    
    public class MainActivity extends AppCompatActivity {
       InterstitialAd interstitialAd;
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
    
            AdView adView = (AdView) findViewById(R.id.bannerView);
    
    //اوامر فتح الاعلانات
            MobileAds.initialize( this,"ca-app-pub-4200825572816870~8543945136");
            AdRequest adRequest = new AdRequest.Builder().build();
            adView.loadAd(adRequest);
    
    
            interstitialAd = new InterstitialAd(this);
            interstitialAd.setAdUnitId("ca-app-pub-4200825572816870/3511110306");
            interstitialAd.loadAd(new AdRequest.Builder().build() );
            interstitialAd.show();
    
            
    
        }
    
    
    }

    احاول اني احط اعلان وسويت مثل احد مقاطع اليوتيوب ما اخذت شهر سويت مثله والان كل ما اعطيه run يفتح التطبيق ويسكر في نفس الوقت 

    ملف xml
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context=".MainActivity"
        android:orientation="vertical"
        >
    
        <com.google.android.gms.ads.doubleclick.PublisherAdView
            xmlns:ads="http://schemas.android.com/apk/res-auto"
            android:id="@+id/bannerView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
    
            ads:adSize="BANNER"
            ads:adUnitId="ca-app-pub-4200825572816870/9282311734">
    
        </com.google.android.gms.ads.doubleclick.PublisherAdView>
    
        <WebView
            android:id="@+id/wepView"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
    
    
        </WebView>
    </LinearLayout>
    ملف manifest
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.example.android.lahga">
    <uses-permission android:name="android.permission.INTERNET"></uses-permission>
        <application
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="لحظة"
            android:roundIcon="@mipmap/ic_launcher_round"
            android:supportsRtl="false"
            android:theme="@style/AppTheme">
            <activity android:name=".MainActivity">
                <meta-data
                    android:name="com.google.android.gms.ads.AD_MANAGER_APP"
                    android:value="true"/>
    
    
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
    
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
        </application>
    
    </manifest>
    //ملف app model
    apply plugin: 'com.android.application'
    
    android {
        compileSdkVersion 29
        buildToolsVersion "29.0.1"
        defaultConfig {
            applicationId "com.example.android.lahga"
            minSdkVersion 24
            targetSdkVersion 29
            versionCode 1
            versionName "1.0"
            testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        }
    
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            }
        }
    }
    
    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        implementation 'androidx.appcompat:appcompat:1.0.2'
        implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'androidx.test:runner:1.2.0'
        androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
        implementation 'com.google.android.gms:play-services-ads:18.1.1'
    }

    ورسالة الخطأ في debag  هي

    E/AndroidRuntime: FATAL EXCEPTION: main
        Process: com.example.android.lahga, PID: 27710
        java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException: 
        
        ******************************************************************************
        * The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers    *
        * should follow the instructions here:                                       *
        * https://googlemobileadssdk.page.link/admob-android-update-manifest         *
        * to add a valid App ID inside the AndroidManifest.                          *
        * Google Ad Manager publishers should follow instructions here:              *
        * https://googlemobileadssdk.page.link/ad-manager-android-update-manifest.   *
        ******************************************************************************
        
        
            at android.app.ActivityThread.installProvider(ActivityThread.java:7246)
            at android.app.ActivityThread.installContentProviders(ActivityThread.java:6781)
            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6672)
            at android.app.ActivityThread.access$2000(ActivityThread.java:273)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2011)
            at android.os.Handler.dispatchMessage(Handler.java:112)
            at android.os.Looper.loop(Looper.java:216)
            at android.app.ActivityThread.main(ActivityThread.java:7593)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
         Caused by: java.lang.IllegalStateException: 
        
        ******************************************************************************
        * The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers    *
        * should follow the instructions here:                                       *
        * https://googlemobileadssdk.page.link/admob-android-update-manifest         *
        * to add a valid App ID inside the AndroidManifest.                          *
        * Google Ad Manager publishers should follow instructions here:              *
        * https://googlemobileadssdk.page.link/ad-manager-android-update-manifest.   *
        ******************************************************************************
        
        
            at com.google.android.gms.internal.ads.zzxb.attachInfo(com.google.android.gms:play-services-ads-lite@@18.1.1:27)
            at com.google.android.gms.ads.MobileAdsInitProvider.attachInfo(com.google.android.gms:play-services-ads-lite@@18.1.1:3)
            at android.app.ActivityThread.installProvider(ActivityThread.java:7241)
            	... 10 more

     

  5. للحين ما علمتني على كيف اسوي get an post  في الاندريود لاستقبال بيانات الويب

    بتاريخ 27 دقائق مضت قال طارق جهاد:

    انت بحاجة لاستخدام Http Client لتتمكن من التواصل مع خدمات الويب. للاندرويد استخدم مكتبة Retrofit

    https://square.github.io/retrofit/

     

    الإشعارات المتزامنة: Push Notifications

    انت بحاجة لاستخدام GCM Google Cloud Messaging وهي خدمة سحابية. حيث ستقوم بإنشاء مشروع على هذه المنصة، ثم تقوم هي بإرشادك لضبط الإعدادات، ضمن الاندرويد.

    الفكرة ببساطة، انك ستقوم بتسجيل جهازك او Installation Id الخاص بجهازك على هذه المنصة، بالتالي يصبح جهازك قادر على استقبال الاشعارات. وعند استقبالك للاشعار ضمن اندرويد بإمكانك معالجته باكثر من طريقة.

     

    بالتوفيق،،،

    للحين ما علمتني على كيف اسوي get an post  في الاندريود لاستقبال بيانات الويب

    • أعجبني 1
  6. بتاريخ 27 دقائق مضت قال فواز العتل:

    ما فهمت عليها 

    حمل TeamViewer و طبق على لابتوبي

     

     

  7. بتاريخ 4 دقائق مضت قال فواز العتل:

    سطر 28 غير compile الى implementation

     

    التقاط.PNG

    التقاط.PNG

    بتاريخ 8 دقائق مضت قال فواز العتل:

    سطر 28 غير compile الى implementation

    حمل TeamViewer

    عشان تتحكم بجهازي

    وتحل المشكاة انت

×
×
  • أضف...