[Solved] Android studio error in stack trace

[ad_1] It should be like this public class MainActivity extends AppCompatActivity { EditText number1, number2….. double ach1, ach2…. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); initializeUi(); …………….. ……………….. …………….. } private void initializeUi() { number1 = (EditText) findViewById(R.id.achieved1); number2 = (EditText) findViewById(R.id.achieved2); number3 = (EditText) findViewById(R.id.achieved3); number4 = (EditText) findViewById(R.id.achieved4); number5 = (EditText) findViewById(R.id.achieved5); … Read more

[Solved] The iPhone app closes immediately when I open the map [closed]

[ad_1] You need to add the google map API key on ios/Runner/AppDelegate.swift file import UIKit import Flutter import GoogleMaps @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { GMSServices.provideAPIKey(“GOOGLE_API_KEY”) GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } } 2 [ad_2] solved The iPhone app closes … Read more

[Solved] Hiding specific view in an activity

[ad_1] You can change the status of the views programmatically. You should use view.setVisibility(View.GONE) if you want to remove the view from the layout, and view.setVisibility(View.INVISIBLE) if you want to hide it. To put them back , use view.setVisibility(View.VISIBLE). [ad_2] solved Hiding specific view in an activity

[Solved] I need to create a Android activity that’s protected with a pin code [closed]

[ad_1] When Ok is pressed after the pin is entered you need to verify if the entered pin is the same as the saved pin, if yes you can open the activity you want to. You need to have an edittext to collect the pin. <EditText android:id=”@+id/passwordedittext” android:layout_width=”200dp” android:layout_height=”wrap_content” android:inputType=”textPassword”> <requestFocus /> An ok button … Read more