This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package Challegne; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.Scanner; | |
| public class ArrangeTheString { | |
| private static List<String> word; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.helloworld; | |
| import android.app.Activity; | |
| import android.os.Bundle; | |
| import android.view.ViewGroup; | |
| import android.widget.LinearLayout; | |
| import android.widget.ScrollView; | |
| import android.widget.TextView; | |
| public class MainActivity extends Activity { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.charfaoui.tpevaluation; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.util.Log; | |
| import android.view.Menu; | |
| import android.view.MenuItem; | |
| import android.view.ViewGroup; | |
| import android.widget.Button; | |
| import android.widget.EditText; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.introsliders | |
| import android.content.Intent | |
| import android.os.Bundle | |
| import android.util.Log | |
| import androidx.fragment.app.Fragment | |
| import com.github.paolorotolo.appintro.AppIntro | |
| import com.github.paolorotolo.appintro.AppIntro2Fragment | |
| import com.github.paolorotolo.appintro.model.SliderPage | |
| import com.github.paolorotolo.appintro.model.SliderPagerBuilder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.introsliders | |
| import android.annotation.SuppressLint | |
| import android.content.Context | |
| import android.content.SharedPreferences | |
| class PreferencesManager @SuppressLint("CommitPrefEdits") | |
| constructor(context: Context) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (!SpeechRecognizer.isRecognitionAvailable(this)) { | |
| Toast.makeText( | |
| this, | |
| R.string.no_recognition_available, | |
| Toast.LENGTH_LONG | |
| ).show() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private fun askSpeechInput() { | |
| val intent = Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH) | |
| intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM) | |
| intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE,Locale.getDefault()) | |
| intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Hi speak something"); | |
| startActivityForResult(intent, REQ_CODE_SPEECH_INPUT); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { | |
| super.onActivityResult(requestCode, resultCode, data) | |
| if (requestCode == REQUEST_SPEECH_RECOGNIZER && resultCode == Activity.RESULT_OK) { | |
| val results = data?.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS) | |
| Log.d("TAG-R", results?.toString()) | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| override fun onReadyForSpeech(params: Bundle?) { | |
| Log.d(TAG, "onReadyForSpeech") | |
| } | |
| override fun onRmsChanged(rmsdB: Float) { | |
| Log.d(TAG, "onRmsChanged") | |
| } | |
| override fun onBufferReceived(buffer: ByteArray?) { | |
| Log.d(TAG, "onBufferReceived") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <uses-permission android:name="android.permission.INTERNET"/> | |
| <uses-permission android:name="android.permission.RECORD_AUDIO"/> |
OlderNewer