Articles

Affichage des articles du septembre, 2016

odules:ty:compileJavaWARNING

modules:ty:compileJava WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by worker.org.gradle.internal.reflect.JavaMethod (file:/Users/---/.gradle/caches/3.0/workerMain/gradle-worker.jar) to method java.lang.ClassLoader.getPackages() WARNING: Please consider reporting this to the maintainers of worker.org.gradle.internal.reflect.JavaMethod WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release

Device 'CLVE8DB2C70' not found

I wanna add data to Tableview javafx without erase the old ones !

use this  productTable . getItems (). clear (); productTable . getItems (). addAll ( data ); instead of this productTable . setItems ( data );

Caused by: android.os.NetworkOnMainThreadException

public ArrayList<InetAddress> getConnectedDevices(String YourPhoneIPAddress) { ArrayList<InetAddress> ret = new ArrayList<InetAddress>(); int LoopCurrentIP = 0 ; String IPAddress = "" ; String[] myIPArray = YourPhoneIPAddress.split( " \\ ." ); InetAddress currentPingAddr; for ( int i = 0 ; i <= 255 ; i++) { try { // build the next IP address currentPingAddr = InetAddress.getByName(myIPArray[ 0 ] + "." + myIPArray[ 1 ] + "." + myIPArray[ 2 ] + "." + Integer.toString(LoopCurrentIP)); String ad = currentPingAddr.toString(); ///////////////// Log.d( "MyApp" ,ad); ////////////// // 50ms Timeout for the "ping" if (currentPingAddr.isReachable( 50 )) { ret. add (currentPingAddr); ad = cur

what does this mean “java.lang.IllegalStateException”?

this simple code ! package itawfik . com . wifi ; import android . os . Bundle ; import android . support . v7 . app . AppCompatActivity ; import android . view . View ; import android . widget . AdapterView ; import android . widget . ArrayAdapter ; import android . widget . ListView ; import android . widget . Toast ; /** * Created by Emin01 on 03/09/2016. */ public class ListWifi extends AppCompatActivity { ListView list ; @Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ); setContentView ( R . layout . listwifi ); list = ( ListView ) findViewById ( R . id . listId ); MyTawfik . setUpListView ( list ); String [] values = new String []{ "Android List View" , "Adapter implementation" , "Simple List View In Android" , "Create List View Android"

Activity is not assigned to Android.app.Activity

Just make sure , you extends the same activity . Firstly, you only declare activities in manifest file, not fragments. So remove this line from manifest file < activity android : name = ".FeedbackMain" android : label = "@string/title_activity_feedback_main" > </ activity > Secondly, if you want to use actionbar, you class should extend ActionBarActivity not FragmentActivity. so change your mainactivity from public class MainActivity extends FragmentActivity { to public class MainActivity extends ActionBarActivity { details : http://stackoverflow.com/questions/30486389/activity-is-not-assigned-to-android-app-activity-manifest-xml

Error:svn: E175011

Error:svn: E175011: Repository moved temporarily; please relocate svn: E175002: OPTIONS request failed on '/Alrazihi_Towfik/wifi'

What Makes you a great programmer !

I ask this question on quora.com   , I resume the answers I can make changes safely, and know where to make them. A good programmer also maintains comments in his code to help the other programmer understand easily after him. Striving to learn new things, and repeatedly put myself in situations where I am almost out of my depth Be get strong in one language get deep learning all the concepts in the language give full involvement to this language.

what does this mean (W/ActivityManager: No content provider found for permission revoke: file:///data/local/tmp/...)?

The best response to this : This message may be an indication of insufficient internal storage on the device. There is a certain level at which Android starts complaining and won't install new apps. I saw "No content provider found for permission revoke" accompanied by errors like "insufficient space", or "Installation error code: -20", or "INSTALL_FAILED_MEDIA_UNAVAILABLE", or "Package install status for is -20" -- all meaning the same thing. In my case, the solution was to free up some storage (clear cache/data, uninstall some apps). Add some memory to your Virtual Device and uninstall your app. Reinstall, and voilà! It worked for me, and I wasnt even using storage on my app.