Re: [android-developers] Re: problem with sending data from app by volley to mysqli

2016-04-20 Thread VISHAL TIKKU
Try from postman client and analyze the response.

On 20 April 2016 at 10:17, Nizzam Mohd  wrote:

> I also facing the same problem, I already debug and everything looks fine.
> Could it be a server response ?
>
> On Sunday, December 6, 2015 at 6:09:11 PM UTC+8, AbdulMajeed Mohammad
> wrote:
>>
>> Hi,
>>
>> I have problem with sending data from app to mysql by php file, I hope to
>> get some help
>> I don't know also if I did it in right way,
>>
>> contact.java
>>
>> public class Contact extends AppCompatActivity {
>>
>> EditText name,phone,email,subject;
>> Button add;
>> RequestQueue requestQueue;
>> String addUrl = "http://10.0.2.2/alruthea/contact/addcontact.php;;
>>
>> @Override
>> protected void onCreate(Bundle savedInstanceState) {
>> super.onCreate(savedInstanceState);
>> setContentView(R.layout.activity_contact);
>> getSupportActionBar().setDisplayShowCustomEnabled(true);
>> getSupportActionBar().setCustomView(R.layout.actionbar);
>>
>> name = (EditText) findViewById(R.id.contactname);
>> phone = (EditText) findViewById(R.id.contactphone);
>> email = (EditText) findViewById(R.id.contactemail);
>> subject = (EditText) findViewById(R.id.contactsubject);
>> add = (Button) findViewById(R.id.contactsend);
>>
>>
>> requestQueue = Volley.newRequestQueue(getApplicationContext());
>>
>>
>> add.setOnClickListener(new View.OnClickListener() {
>> @Override
>> public void onClick(View view) {
>> StringRequest request = new StringRequest(Request.Method.POST, 
>> addUrl, new Response.Listener() {
>> @Override
>> public void onResponse(String response) {
>>
>> }
>> }, new Response.ErrorListener() {
>> @Override
>> public void onErrorResponse(VolleyError error) {
>>
>> }
>> }) {
>> @Override
>> protected Map getParams() throws 
>> AuthFailureError {
>> Map parameters = new HashMap> String>();
>> parameters.put("name", name.getText().toString());
>> parameters.put("phone", phone.getText().toString());
>> parameters.put("email", email.getText().toString());
>> parameters.put("subject", subject.getText().toString());
>>
>> return parameters;
>> }
>> };
>> requestQueue.add(request);
>> }
>>
>> });
>>
>>
>> }
>>
>> }
>>
>>
>>
>> connection.php
>>
>> >
>> define('hostname','localhost');
>> define('user' , 'root');
>> define('password','');
>> define('databaseName','alruthea');
>>
>> $connect = mysqli_connect(hostname, user, password, databaseName);
>>
>> ?>
>>
>>
>>
>>
>>
>> addcontact.php
>>
>> >
>> if($_SERVER["REQUEST_METHOD"]=="POST"){
>>require 'alruthea/contact/connection.php';
>>createContact();
>>}
>>
>>function createcontact()
>>{
>>global $connect;
>>
>>$name = $_POST["name"];
>>$phone = $_POST["phone"];
>>$email = $_POST["email"];
>>$subject = $_POST["subject"];
>>
>>$query = "Insert into contact(name,phone,email,subject) values
>> ('$name;,'$phone','$email','$subject');";
>>
>>mysqli_query($connect, $query) or die (mysqli_error($connect));
>>mysqli_close($connect);
>>}
>>
>>?>
>>
>>
>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/ofI7CeDO9gM/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/ad591b4c-999c-4191-a1e5-2cd0b8ce4ca1%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 

[android-developers] Re: Lost Keystore and want to update apk

2015-12-24 Thread VISHAL TIKKU
There is no way you can update the apk with other keystore.
Did you created any keystore certificate or you used default certificate of 
android studio or eclipse? 
On Wednesday, December 23, 2015 at 3:37:03 PM UTC+5:30, sourabh wrote:
>
> Dear All,
>
> I have lost my Keystore, Now I want to update my APK.
>
> I tried lot of file recovery software but not able to get it. Now I dont 
> want to publish a new app due to large number of downloads.
>
> Please suggest any other way to update app.
>
> Regards,
> Sourabh
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a8bfe8c9-0753-4b8a-a79a-81610b68d586%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: SharedPreferences doesn't work for my app but other apps is ok.

2015-12-22 Thread VISHAL TIKKU
Can you share me the complete code of the class in which you have 
implemented this shared preference block

On Monday, December 21, 2015 at 4:08:28 PM UTC+5:30, Cihan KALOĞLU wrote:
>
> Hi,
>
> I tried all ways how many i know.
>
> That is my code block for test. (MainActivity.onCreate())
>
> String REMEMBERME_PREF_NAME = "rememberme";
> SharedPreferences sharedpreferences = 
> this.getSharedPreferences(REMEMBERME_PREF_NAME, Context.MODE_PRIVATE);
> if (sharedpreferences.getString("email", "").equals("")) {
> Log.d("SHARED PREF", "onCreate() returned: " + "CAN'T REMEMBER");
> SharedPreferences.Editor editor = sharedpreferences.edit();
> editor.clear();
> editor.putString("email", "REMEMBERED");
> editor.commit();
> }
> Log.d("SHARED PREF", "onCreate() returned: " + 
> sharedpreferences.getString("email", ":("));
>
>
>
>
> This code working for all new apps or other existing apps but it still 
> doesn't work for my app.
>
> What is wrong with my app?
>
> Could anybody help me?
>
> Thank you.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/1eae2e6c-3c7c-4208-915b-207bc0fecc4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: SharedPreferences doesn't work for my app but other apps is ok.

2015-12-22 Thread VISHAL TIKKU
Then there can only be one case that is preventing execution of the code ie
check for return statement or system.exit or if block is inside any loop
check for break..just dry run it put appropriate debug pointers...
On Dec 22, 2015 6:04 PM, "Cihan KALOĞLU" <attach...@gmail.com> wrote:

> Thank you.
> Tried completely same step.
>
> But it working with all other apps new or existing.
> Just not working with my app.
> 22 Ara 2015 14:14 tarihinde "VISHAL TIKKU" <tikku.vis...@gmail.com> yazdı:
>
>> Its okay no issues.Test case to test this functionality are as
>>  follows:
>> 1. In your code write an else block in which provide a toast message and
>> also in your if block provide a different toast message.
>> 2. Clear yours app's cache and data from settings of the phone.
>> 3. Run your code and see if toast comes from if block first.
>> 4. Close your app and run it again see if toast is coming from else block.
>>
>> if points 3 & 4 is achieved then there is no problem in your code, if
>> else block is getting executed when you run your app for the first time
>> find whether your shared preference "rememberme"  is been used in any
>> other class where shared preference is getting updated.
>>
>> See if it works.
>>
>> Happy Coding!
>>
>>
>>
>>
>> On 22 December 2015 at 16:24, VISHAL TIKKU <tikku.vis...@gmail.com>
>> wrote:
>>
>>> Can you share me the complete code of the class in which you have
>>> implemented this shared preference block
>>>
>>> On Monday, December 21, 2015 at 4:08:28 PM UTC+5:30, Cihan KALOĞLU wrote:
>>>>
>>>> Hi,
>>>>
>>>> I tried all ways how many i know.
>>>>
>>>> That is my code block for test. (MainActivity.onCreate())
>>>>
>>>> String REMEMBERME_PREF_NAME = "rememberme";
>>>> SharedPreferences sharedpreferences = 
>>>> this.getSharedPreferences(REMEMBERME_PREF_NAME, Context.MODE_PRIVATE);
>>>> if (sharedpreferences.getString("email", "").equals("")) {
>>>> Log.d("SHARED PREF", "onCreate() returned: " + "CAN'T REMEMBER");
>>>> SharedPreferences.Editor editor = sharedpreferences.edit();
>>>> editor.clear();
>>>> editor.putString("email", "REMEMBERED");
>>>> editor.commit();
>>>> }
>>>> Log.d("SHARED PREF", "onCreate() returned: " + 
>>>> sharedpreferences.getString("email", ":("));
>>>>
>>>>
>>>>
>>>>
>>>> This code working for all new apps or other existing apps but it still
>>>> doesn't work for my app.
>>>>
>>>> What is wrong with my app?
>>>>
>>>> Could anybody help me?
>>>>
>>>> Thank you.
>>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Android Developers" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/android-developers/mE6_1xjrmj8/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> android-developers+unsubscr...@googlegroups.com.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> .
>>> Visit this group at https://groups.google.com/group/android-developers.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/android-developers/1eae2e6c-3c7c-4208-915b-207bc0fecc4d%40googlegroups.com
>>> <https://groups.google.com/d/msgid/android-developers/1eae2e6c-3c7c-4208-915b-207bc0fecc4d%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Android Developers" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/android-developers/mE6_1xjrmj8/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> android-developers+unsubscr...@googlegroups.com.
>> To post to this group, send email to android-developers@googlegroups.com.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web

Re: [android-developers] Re: SharedPreferences doesn't work for my app but other apps is ok.

2015-12-22 Thread VISHAL TIKKU
Its okay no issues.Test case to test this functionality are as
 follows:
1. In your code write an else block in which provide a toast message and
also in your if block provide a different toast message.
2. Clear yours app's cache and data from settings of the phone.
3. Run your code and see if toast comes from if block first.
4. Close your app and run it again see if toast is coming from else block.

if points 3 & 4 is achieved then there is no problem in your code, if else
block is getting executed when you run your app for the first time find
whether your shared preference "rememberme"  is been used in any other
class where shared preference is getting updated.

See if it works.

Happy Coding!




On 22 December 2015 at 16:24, VISHAL TIKKU <tikku.vis...@gmail.com> wrote:

> Can you share me the complete code of the class in which you have
> implemented this shared preference block
>
> On Monday, December 21, 2015 at 4:08:28 PM UTC+5:30, Cihan KALOĞLU wrote:
>>
>> Hi,
>>
>> I tried all ways how many i know.
>>
>> That is my code block for test. (MainActivity.onCreate())
>>
>> String REMEMBERME_PREF_NAME = "rememberme";
>> SharedPreferences sharedpreferences = 
>> this.getSharedPreferences(REMEMBERME_PREF_NAME, Context.MODE_PRIVATE);
>> if (sharedpreferences.getString("email", "").equals("")) {
>> Log.d("SHARED PREF", "onCreate() returned: " + "CAN'T REMEMBER");
>> SharedPreferences.Editor editor = sharedpreferences.edit();
>> editor.clear();
>> editor.putString("email", "REMEMBERED");
>> editor.commit();
>> }
>> Log.d("SHARED PREF", "onCreate() returned: " + 
>> sharedpreferences.getString("email", ":("));
>>
>>
>>
>>
>> This code working for all new apps or other existing apps but it still
>> doesn't work for my app.
>>
>> What is wrong with my app?
>>
>> Could anybody help me?
>>
>> Thank you.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/mE6_1xjrmj8/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/1eae2e6c-3c7c-4208-915b-207bc0fecc4d%40googlegroups.com
> <https://groups.google.com/d/msgid/android-developers/1eae2e6c-3c7c-4208-915b-207bc0fecc4d%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAJK-5s_jvq_BF8ETYpLLjcpFu_-NjeoU0ohrsGW%2BQK9zwgCHXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: SharedPreferences doesn't work for my app but other apps is ok.

2015-12-21 Thread VISHAL TIKKU
Hi
Is it throwing any exception firstly please trace that and can you please 
elaborate a little about your problem. 

On Monday, December 21, 2015 at 4:08:28 PM UTC+5:30, Cihan KALOĞLU wrote:
>
> Hi,
>
> I tried all ways how many i know.
>
> That is my code block for test. (MainActivity.onCreate())
>
> String REMEMBERME_PREF_NAME = "rememberme";
> SharedPreferences sharedpreferences = 
> this.getSharedPreferences(REMEMBERME_PREF_NAME, Context.MODE_PRIVATE);
> if (sharedpreferences.getString("email", "").equals("")) {
> Log.d("SHARED PREF", "onCreate() returned: " + "CAN'T REMEMBER");
> SharedPreferences.Editor editor = sharedpreferences.edit();
> editor.clear();
> editor.putString("email", "REMEMBERED");
> editor.commit();
> }
> Log.d("SHARED PREF", "onCreate() returned: " + 
> sharedpreferences.getString("email", ":("));
>
>
>
>
> This code working for all new apps or other existing apps but it still 
> doesn't work for my app.
>
> What is wrong with my app?
>
> Could anybody help me?
>
> Thank you.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/543a3dde-a0f4-4ce8-9db2-4df9e1a4e2f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: WebView Slow Page Load

2015-12-21 Thread VISHAL TIKKU
Hi Parimal
Please try this

webview.getSettings().setRenderPriority(RenderPriority.HIGH);


On Monday, December 21, 2015 at 12:39:28 PM UTC+5:30, Parimal Muli wrote:
>
> Hi, 
> I am using a webview in my app. The problem is that it takes a lot of time 
> (10-25 
> secs) for the sites to render in the webview. Can you please suggest some 
> methods to improve the webview page load time?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/4ce1126c-cc8f-4156-9161-a81ea440f0a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: determining when users uninstall my app

2015-12-15 Thread VISHAL TIKKU
You can track it through yourself if you don't have standalone application 
ie if your app requires any server communication.Through server 
communication you can maintain the number of users that are using your 
application and sending time spent(use CountDownTimer) on each page to the 
server and maintaining in database with respect to the user can help you 
trace how much a user is exploring your application in the end the above 
solution will work if you are maintaining user records on your server.  



On Monday, December 14, 2015 at 2:47:20 PM UTC+5:30, techma...@yahoo.com 
wrote:
>
>   I have a 50% uninstall rate on my mobile app. I'm looking for some 
> insights. I'd like to know more details on how quickly users uninstall, how 
> deep users explored my 
>   app before they unstalled and the path they navigated through my app. 
> Through these metrics, I may be able to determine some patterns that could 
> help me improve 
>   my app. Is there a way through Google Analytics or the Development 
> Console to determine these metrics?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/f9e188b8-4ea1-47fb-b356-e758c11689cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: java code help

2015-12-15 Thread VISHAL TIKKU
Can you please elaborate.

On Monday, December 14, 2015 at 11:50:46 AM UTC+5:30, John Mmm wrote:
>
> how to make login form that connects to my website?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e50c9ef6-d0d2-40d2-87e8-794a01d0c1b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Make simple app UI

2015-12-09 Thread VISHAL TIKKU
You can go by creating layouts in XML also you would need to define size 
for layouts and would recommend doing dynamically from activity by taking 
device width and height, divide the view accordingly and it will make the 
view compatible with all the devices.
Also for tab widget you need to have png for curved line as depicted in 
image you shared and placing it accordingly with the tab view.For this type 
of UI go for RelativeLayout as you can place objects relative to a view 
easily.
Happy Coding!

On Wednesday, December 9, 2015 at 6:16:56 AM UTC+5:30, Vel Asta wrote:
>
> Hey folks, if any of you could show me some pointer that would be awesome 
> (SUPER new to this).
> I'm trying to build a UI for my app that looks like the attached image.
> - It needs to be smaller then the whole screen
> - Have tabs to the left and the content shown to the right (kind of like a 
> master/detail flow activity but it has to be the same for tablets and 
> phones)
> - Have smooth edges around and inside
> - Have the background layout transparent but the buttons (widgets) not be. 
>
> Where should I start and what activity and how to accomplish those things 
> :/ (just a pointer would be great)
>
> thank you so much folks for any comment :) 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/505527c2-1243-4d8f-b674-a0501b745f6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: problem with sending data from app by volley to mysqli

2015-12-07 Thread VISHAL TIKKU
Hi Abdul
Firstly check whether your controller is getting the request if yes then go 
through your log to check if there is some syntax error in query while 
inserting into table.

On Monday, December 7, 2015 at 4:41:14 PM UTC+5:30, AbdulMajeed Mohammad 
wrote:
>
> any help please

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/78b42273-5860-4a1c-9b19-d6256aa2da15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Help: Android Studio continually crashing Windows 10

2015-12-02 Thread VISHAL TIKKU
As my understanding its not the windows issue, try to assess your systems 
BIOS settings.

On Tuesday, December 1, 2015 at 1:58:52 PM UTC+5:30, Joshua Springer wrote:
>
> Hi, I've been developing an Android app for one of my classes. I am 
> familiar with programming and using computers in general, but not 
> virtualization software. I am trying to get Android Studio on my computer, 
> but having some serious problems. I installed Android Studio on my computer 
> the first time, and whenever I would run it, it would freeze Windows (10) 
> completely, with this error 
> .
>  
> I reinstalled Windows, and then reinstalled Android Studio, and it worked 
> fine for a day. Now I come back today and the same error is happening. I 
> don't feel like installing Windows again. What should I do? I've tried 
> running it in compatibility mode for 8.1, 7, and running as administrator, 
> as well. And I have two other machines, both Macs, which run Android Studio 
> and the emulators without a problem, although they are slower. Please help!
>
>
> Also, I should note that I'm using an i7 4790K @4.00GHz on a Gigabyte 
> Z97N-Gaming 5 motherboard with 16GB of RAM. Also I have a GTX 970 and 
> naturally the NVIDIA drivers, but I feel like this definitely wouldn't 
> affect the performance of Android Studio.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/58e22429-1533-4f0f-886b-9a7518266043%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.