Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!

Saad Zahoor

Ranch Hand
+ Follow
since Dec 18, 2016
Saad likes ...
Android
Interested in Java and developing games .And love to learn code and nothing :P
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
24
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Saad Zahoor

Thank you Randy Tong I will look into ConstraintLayout
1 month ago
1 month ago
I have an issue using scroll view below are the cases

**CASE 1**

when i don't use scrollview i get the layout like [this][1] and this is the layout i need.
Problem with this approach is when the device resolution is low 412 x 732 or below i cant see the whole content of the layout for that reason **i need scrollview**

**CASE 2**

if i use scroll view i get the view like this [this][2] and [this][3] this which is perfect and what i need for 412 x 732 or below but the problem occur when i see the layout in higher resolution 1080x1920 i get [this][4]

what is need is in **CASE 2** for higher resolution device the PROCEED button should touch the bottom with bottomPadding=20dp just like **CASE 1** image

I Really appreciate if someone give me suggestion to acquire the layout that work for both the devices having high and low resolution



**Layout**

in layout i removed the scrollview and i get the layout that is good for high resolution device but with the low resolution i do not get the whole content to see because i need to scroll down


 [1]: https://i.stack.imgur.com/lFrNY.png
 [2]: https://i.stack.imgur.com/OIkFd.png
 [3]: https://i.stack.imgur.com/JPRHe.png
 [4]: https://i.stack.imgur.com/21OMe.png
1 month ago
Thank you for your time @tim mores

q1:

Yes I need it programmatically

q2:

Thanks for clarification
3 months ago
I have 2 questions

Question1 :

I have a file which is named as 3242349d9id.jpg and I want to convert the file name as saadzahoor.jpg
I really appreciate if someone helps me how can I edit the filename



Question2 :

If I make an app for someone and the app itself is not generating any money, I mean he or client cannot generate any money from the app it is just for the business purpose to see the activity of his (my client) clients!! Will the app considered for commercial use?
As a developer, i am getting paid for developing the app.

Will the app get the tag as commercial use?

3 months ago
Thanks for the reply

Backendless actually is a website that deals with the backend process like firebase
4 months ago
Hi there, i really appreciate if anyone tell me how login-register and save data to specific user

I mean i do not have issue in login and register user to backendless but wanna understand how things work

things :

let's say

user1 login into his account and save some information related to his phone number some description and hobbies etc

now

user2 login and do the same thing

what question comes in mind while  all the data saved in database then all the data will be mixed how do i know which user has what name
i mean i wanna specify user data to specific user  

i mean how can i link the data that i saved from user1

i mean how this thing work

I know that this sound is confusing but i really need to understand
4 months ago
Hi There I have one question if anyone helps me to understand or provide me some kind of link

ContentValues cv = new ContentValues() ;

I have the idea what this line of code is doing but I am confused in this line

FingerprintManager fm = (FingerprintManager) getSystemService(SERVICE_FINGERPRINT);

I wanna know where we use (FingerprintManager) or other objects

if anyone explains to me why we use (OBJECT) int bracket to instantiate the object.

Thanks
5 months ago
I am capturing the view of the scroll view and create the bimap object and then saving the image into the device

while doing so i am facing error

Caused by: java.lang.IllegalArgumentException: width and height must be > 0

can anyone fix the issue ! what i am doing wrong






1 year ago
Hey guyz .. i wanna ask can i install munt over kali ?
1 year ago
O i understand. We cannot just invoke the non static method into static method directly .. First we have to create the object then we can declare it ..

where as there is no need to create the object while calling the static method into static method

well thanks for the help
1 year ago
so is it wise while coding in android or when developing android app ... When ever i declare variable .. should i declare it static ? or same with the method ..
1 year ago
Since we cannot create use non-static into static but what when we instantiate the class in static method , the class is not static then why our code is still working ??
1 year ago
this is my code and i get no error . When i press the button i hear nothing

image link

i think its not reading the sound file .. its mp3 format

1 year ago

I dont know whats wrong my app craches every time ...


Java




XML




Manifest






catLog

1 year ago