I would like to create an android app that will predict football result..i am planning to use neural networks behind to work in the app...how can i go about it..the difficult side is to apply the algorithm...am i going to code it or what should i do..
I used jdbc ("net.sourceforge.jtds.jdbc.Driver" -jtds-1.3.1.jar)for My Android Application:
String ip = "192.168.3.67";
String classs = "net.sourceforge.jtds.jdbc.Driver";
String db = "QLNV";
String un = "sa";
String password = "admin";
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
Connection conn = null;
String ConnURL = null;
ConnURL = "jdbc:jtds:sqlserver://" + ip + ";"
+ "databaseName=" + db + ";user=" + un + ";password="
+ password + ";";
conn = DriverManager.getConnection(ConnURL);...
I tested it on Android Emulator: it worked well but I tested it on my Android phone: it maybe not worked well. I don't know why? please help me, thanks much..
So..How can i do? I added :
So can help me? thanhs a lot!
Before worrying about permissions, I'd make sure the phone is connected to your LAN through wifi. The phone should show your network name and "Connected" at the top of the wifi list under settings. Until you get that set up, you have no hope of accessing your server.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
I have developed a recipe search application that obtains data from an API and it allows the user to view and save the data.
My android application uses multiple fragments within one activity. They share one container and when a new fragment is loaded it replaces the old fragment.
My application has the following fragments: Home, Search, Filters, RecipeView and more.
I am experiencing multiple issues with popping the fragment back stack once a search has been carried out or a favourite recipe has been displayed. The search fragment is a grid view that uses a custom adapter, and to perform a search the user uses a toolbar search view which executes code upon pressing the submit (return) button.
The home fragment is displayed first allowing a user to click a quick search button such as breakfast, clicking the button displays the search fragment with results from the API. The user can then click on an item which opens the RecipeView fragment, pressing the back button on these fragments does not cause an issue and a user can navigate back to the previous fragments including the home one that was displayed initially.
Additionally, a user can navigate to the search fragment using the navigation drawer. The search fragment allows the user to perform a search or click a filter via buttons on the toolbar. Clicking the search icon/button allows a user to enter text and once they press enter/return the search is perform and the grid view is populated.
Prior to performing a search or clicking the search button, pressing the filter button displays the filters fragment and from there, pressing the back button will allow a user to navigate back to the search view fragment.
If the user presses the search button which will open the search view menu item (allowing text input on the toolbar) and then presses the filters button, the filters activity is displayed. However, pressing the back button does not navigate to the previous fragment, it removes the focus from the toolbar. Pressing the back button again still does not navigate back and changes the toolbars text back to the search fragments specified title ("Recipe Search"). Pressing the back button again will then navigate back to the search fragment, removing the filters fragment from sight.
I have tried removing the focus from the toolbar so that pressing back is not removing toolbars focus and the app still requires three back button presses.
Furthermore, I am having another issue with fragments overlaying each other. From the home fragment that is loaded on create, if a user navigates using the side menu to the favourites fragment, a list of the saved favourites in a grid view are shown using the search fragment. Pressing the back button from the search fragment does not cause any issues and the app will navigate back to the home fragment; additionally, clicking a recipe will open the RecipeView fragment displaying a recipes information.
The issue arises from here. If the back button is pressed the app will navigate backwards loading the home fragment not the search fragment and the recipe fragment stays on screen causing both fragments to overlap. Pressing the back button again will remove the home fragment and leave the recipe fragment in the container; pressing the back button again will close the application (The search fragment is not shown and the order is incorrect).
1. I have tried implementing this ([Avoid fragments overlapping])
2. I have tried calling classes using a new instance method rather than creating new ones in the MainActivity
3. I have tried to add fragments rather than replace them
4. I have tried overriding the back button press
5. I have tried addToBackStack(null) & addToBackStack(FragmentTag)
6. I have tried to remove all views from the frame layout within my fragment handler method
I have created android application to stream online radio stations but when I click start button to play radio it won't start.In service I read ip address of file from url and add it to string.When user selects radio station I add port to string with ip address.
I created android application to stream online radio stations but it doesn't work.I want to read ip address from url and assign it to string and when user selects radio to listen I should add port to that string!!!
Depending on how long it takes your thread code to finish parsing http://audiophileradio.stream/Ip.txt, your preferences/append code is also accessing the text variable. What's the possibility of that happening out of order?
Have you tried hard-coding the value passed to setDataSource() to see if the reset of your player-related code is correct?
This is unrelated to the problem you are having, but the four if() tests are not as efficient as they could be. You are checking radio's value four more times than is necessary. Consider:
How to Develop Shopping cart in Android,With PHP MYSQL Database Connectivity,and After that it will redirect to the payment module.
As i am doing Payment with Instamojo the Payment app is ready as well as static Shopping Cart is ready...But How to Connect with Database...
Kindly Help Me,I am Working On this Project Since last two weeks but nothing is fruitful.
Last Visit: 31-Dec-99 18:00 Last Update: 24-Oct-21 9:13