Quantcast
Browsing all 42 articles
Browse latest View live

Component Listener

I have huawei phone and when I use foreground service on huawei its just stop the service.However, I found this solution ( https://stackoverflow.com/a/51726040/14446860 ).Because my app isn't enable in...

View Article


intent starts again after finish

I use a button to exit my app,however,when I am exit it and press the recent app button(picture below)and re-enter my app through the grey screen,instead of starting the app from the main activity,its...

View Article


Change Language Button

I am trying to create a button that changes the app language.I created the string file for the language and I tried this code for changing the default language but with no success:public void...

View Article

Answer by Mr.Goomer for Change Language Button

So I found this code that solved my problem in seconds:I created a new Java file name "MyContextWrapper" and inside I paste the following code: /** * Created by hosam azzam on 07/01/2017. * CopyRights...

View Article

Answer by Mr.Goomer for Fragment TextView Not Changed Back Locale

So after few hours,I figure out what the problem was.The problem was I extended FragmentActivity:public class MapsActivity extends **FragmentActivity** implements OnMapReadyCallback {And I should have...

View Article


Image may be NSFW.
Clik here to view.

Fragment TextView Not Changed Back Locale

I have very wierd problem when translate the app using translations editor.So I did like the following( https://stackoverflow.com/a/66483251/14446860 ) and it work,I have 3 activies,when I press the...

View Article

Notification text change only once

So I am translating my application but I am facing annoying problem.I have a service with foreground notification with 2 action buttons.When I select the language in the main activity,the app works...

View Article

Service Notification Text Uses System Language

My app support 2 languages,English and Hebrew. When I change the language to English and minimize the app, the service notification text showing in Hebrew instead of English.Besides of the...

View Article


Answer by Mr.Goomer for Translate Custom Notification String

SOLUTION:So after long research ,because I am using RemoteView for the custom notification I used setTextViewText and added the...

View Article


Answer by Mr.Goomer for Bitmap crash activity

Okay so finally I got it working.The picture I was trying to transfer through intent was too big and that was the reason some of the photos were fine and some of them crashed my app.To solve it I used...

View Article

Answer by Mr.Goomer for Getting Parse Row Wrong ObjectId

So I fix it by adding these 2 lines:The first:MyData Editdata = (MyData) adapter.getItem(position);ToMyData Editdata = (MyData) adapter.getItem(finalPosition);The second line I added is(I added it...

View Article

Getting Parse Row Wrong ObjectId

I have a listview that contains 4 objects in it.When I long press one of them ,a menu open with "Delete" option that I can delete the row.However,I am getting the wrong row objetId for some reason and...

View Article

Answer by Mr.Goomer for Google Places API crash after installing app from...

So it was the proguard,I had to include the library in "proguard-rules.pro" like the following:-keep class com.seatgeek.*{ *; }-keep class com.seatgeek.placesautocomplete**{ *; }-keep class...

View Article


Retrofit BaseUrl And API

I am learnng how to use retrofit library,however I come across a little problem.So I set everything and run my project but first I git this error:Caused by: java.lang.IllegalArgumentException: baseUrl...

View Article

Answer by Mr.Goomer for OnClick Fragment Transactions Does Nothing

So I notice that when I press the button and open the drawer,the fragment is showing but next to drawer item. So I changed R.id.navMemories to drawer_layout and now its displayingthe final code: //...

View Article


Image may be NSFW.
Clik here to view.

Delete FireBase Value Without Knowing The Key Name

So I am working on the memories Firebase app and there is a stage where the user can upload photos to his memory. Each photo has uniq name "ImgLink0","ImgLink1",etc..The function I am working on is to...

View Article

Comment by Mr.Goomer on Get SerializedName Values

I am trying to get: @SerializedName("url") values

View Article


Answer by Mr.Goomer for Get SerializedName Values

So I managed to do it by running a loop: for (i in 0 until responseObject.pageInformation.count) { Log.e("Data","" + responseObject.data[i].images.downsized.url) }

View Article

Answer by Mr.Goomer for Detect when user enter circle

So finally thanks to @Axiumin ,I did this:@Overridepublic void onLocationChanged(Location location) { userLocationMarker.setPosition(new LatLng(location.getLatitude(), location.getLongitude()));...

View Article

Display toast after startActivityForResult

I am trying to display a toast message after the user gets to the main intent.I try to accomplish that by doing this by the code below but with no success:On the second activity(MapsActivity) I did:...

View Article
Browsing all 42 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>